summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
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