summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)