.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)/xsnap clean: rm -f $(BINDIR)/xsnap $(OBJDIR)/*.o install: $(BINDIR)/xsnap mkdir -p $(DESTDIR)/bin cp $(BINDIR)/xsnap $(DESTDIR)/bin $(BINDIR)/xsnap: $(OBJDIR)/xsnap.o $(OBJDIR)/xsnap.o: $(SRCDIR)/xsnap.c @mkdir -p $(@D) $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/xsnap.c $(BINDIR)/xsnap: @mkdir -p $(@D) $(LD) $(LDFLAGS) -o $@ $(OBJDIR)/*.o $(LDLIBS)