From c494561b43b264223b7a8f800221b7e87dbb67eb Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 14 Jul 2020 16:36:13 -0400 Subject: split tty specific stuff out to tty.c --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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) -- cgit v1.2.1