aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 18 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8df6369..4500736 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,21 @@
-pingu: pingu.c
- $(CC) -o $@ $^
+TARGETS = pingu mtu
+CFLAGS ?= -g
+
+pingu_OBJS = \
+ pingu.o \
+ log.o
+
+mtu_OBJS = \
+ mtu.o
+
+ALL_OBJS= $(pingu_OBJS) $(mtu_OBJS)
+
+all: $(TARGETS)
+
+pingu: $(pingu_OBJS)
+
+mtu: $(mtu_OBJS)
clean:
- rm -f pingu
+ rm -f $(TARGETS) $(ALL_OBJS)