summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-05-09 23:00:43 -0400
committerJakob Kaivo <jkk@ung.org>2022-05-09 23:00:43 -0400
commit7f598bac4639258ec66cbb572a625f85cfa1c77e (patch)
treeddccc2bd04cd2f17e1060acac451204303803cc4 /Makefile
initial commitHEADxsnap
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..032c251
--- /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)/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)