summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-07-14 16:36:13 -0400
committerJakob Kaivo <jkk@ung.org>2020-07-14 16:36:13 -0400
commitc494561b43b264223b7a8f800221b7e87dbb67eb (patch)
treee069e36a4b51c0065cfae489f722708ee1401081 /Makefile
parent527e45ab5cc919caea9bfee9af1cf3da83028420 (diff)
split tty specific stuff out to tty.c
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..cd954dc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+.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)
+
+all: $(BINDIR)/more
+
+clean:
+ rm -f $(BINDIR)/more $(OBJDIR)/*.o
+
+$(BINDIR)/more: $(OBJDIR)/more.o
+$(OBJDIR)/more.o: $(SRCDIR)/more.c
+ $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/more.c
+
+$(BINDIR)/more: $(OBJDIR)/tty.o
+$(OBJDIR)/tty.o: $(SRCDIR)/more.h
+$(OBJDIR)/tty.o: $(SRCDIR)/tty.c
+ $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/tty.c
+
+$(BINDIR)/more:
+ $(LD) $(LDFLAGS) -o $@ $(OBJDIR)/*.o $(LDLIBS)