From fe5a38fc526c373c5cabad4f963fbd99ffb712e9 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 14 Jul 2020 17:00:49 -0400 Subject: split i/o stuff out to io.c --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cd954dc..382ed04 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,13 @@ all: $(BINDIR)/more clean: rm -f $(BINDIR)/more $(OBJDIR)/*.o +$(BINDIR)/more: $(OBJDIR)/io.o +$(OBJDIR)/io.o: $(SRCDIR)/more.h +$(OBJDIR)/io.o: $(SRCDIR)/io.c + $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/io.c + $(BINDIR)/more: $(OBJDIR)/more.o +$(OBJDIR)/more.o: $(SRCDIR)/more.h $(OBJDIR)/more.o: $(SRCDIR)/more.c $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/more.c -- cgit v1.2.1