diff options
author | Jakob Kaivo <jkk@ung.org> | 2022-04-26 16:24:00 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2022-04-26 16:24:00 -0400 |
commit | fc8f01587cafa361e97abc30234094859b262307 (patch) | |
tree | 6dca103e6ecfb36d63c14b4c7deaae0a3edd1499 /Makefile |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d73399a --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +.POSIX: + +# This Makefile was generated by maje +# See https://src.kaivo.net/dev/maje/ for more information +# Do not edit this Makefile by hand + +CC=c99 +LD=$(CC) +CFLAGS=-Wall -Wextra -Wpedantic -Werror -g +LDFLAGS= +LDLIBS= -lX11 +SRCDIR=. +OBJDIR=. +BINDIR=$(OBJDIR) +LIBDIR=$(OBJDIR) +DESTDIR=/usr/local + +all: $(BINDIR)/xbar + +clean: + rm -f $(BINDIR)/xbar $(OBJDIR)/*.o + +install: $(BINDIR)/xbar + mkdir -p $(DESTDIR)/bin + cp $(BINDIR)/xbar $(DESTDIR)/bin + +$(BINDIR)/xbar: $(OBJDIR)/xbar.o +$(OBJDIR)/xbar.o: $(SRCDIR)/xbar.c + @mkdir -p $(@D) + $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/xbar.c + +$(BINDIR)/xbar: + @mkdir -p $(@D) + $(LD) $(LDFLAGS) -o $@ $(OBJDIR)/*.o $(LDLIBS) |