diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 36 |
1 files changed, 34 insertions, 2 deletions
@@ -1,2 +1,34 @@ -LDLIBS=-lXrandr -lX11 -lXi -autorotate: autorotate.c +.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= -lXrandr +SRCDIR=. +OBJDIR=. +BINDIR=$(OBJDIR) +LIBDIR=$(OBJDIR) +DESTDIR=/usr/local + +all: $(BINDIR)/autorotate + +clean: + rm -f $(BINDIR)/autorotate $(OBJDIR)/*.o + +install: $(BINDIR)/autorotate + mkdir -p $(DESTDIR)/bin + cp $(BINDIR)/autorotate $(DESTDIR)/bin + +$(BINDIR)/autorotate: $(OBJDIR)/autorotate.o +$(OBJDIR)/autorotate.o: $(SRCDIR)/autorotate.c + @mkdir -p $(@D) + $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/autorotate.c + +$(BINDIR)/autorotate: + @mkdir -p $(@D) + $(LD) $(LDFLAGS) -o $@ $(OBJDIR)/*.o $(LDLIBS) |