From fc8f01587cafa361e97abc30234094859b262307 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 26 Apr 2022 16:24:00 -0400 Subject: initial commit --- Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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) -- cgit v1.2.1