summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-03-13 13:41:01 -0400
committerJakob Kaivo <jkk@ung.org>2022-03-13 13:41:01 -0400
commit9af2c490ad435ddb61b9d79174ffa7c05a1399dd (patch)
tree030e346284f25dd85ddaf430199e58438e560fb1 /Makefile
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1951f71
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,30 @@
+.POSIX:
+
+# This Makefile was generated by maje
+# See https://gitlab.com/jkaivo/maje/ for more information
+# Do not edit this Makefile by hand
+
+CC=c99
+LD=$(CC)
+CFLAGS=-Wall -Wextra -Wpedantic -Werror -g
+LDFLAGS=
+LDLIBS=
+SRCDIR=.
+OBJDIR=.
+BINDIR=$(OBJDIR)
+DESTDIR=/usr/local
+
+all: $(BINDIR)/touch
+
+clean:
+ rm -f $(BINDIR)/touch $(OBJDIR)/*.o
+
+install: $(BINDIR)/touch
+ cp $(BINDIR)/touch $(DESTDIR)/bin
+
+$(BINDIR)/touch: $(OBJDIR)/touch.o
+$(OBJDIR)/touch.o: $(SRCDIR)/touch.c
+ $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/touch.c
+
+$(BINDIR)/touch:
+ $(LD) $(LDFLAGS) -o $@ $(OBJDIR)/*.o $(LDLIBS)