summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3a86a7c..b7bd5e7 100644
--- a/Makefile
+++ b/Makefile
@@ -8,5 +8,8 @@ all: main
clean:
rm main
-main: main.c
- $(CC) -o $@ $< $(CFLAGS) $(LDLIBS)
+%.o: %.c %.h
+ $(CC) -c -o $@ $< $(CFLAGS) $(LDLIBS)
+
+main: main.c util.o history.o link.o
+ $(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)