summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWill Thompson <will@willthompson.co.uk>2012-01-11 11:03:05 +0000
committerWill Thompson <will@willthompson.co.uk>2012-01-12 11:11:41 +0000
commit23438e5a8b0c092817229e1512ca4f6f5163267b (patch)
tree57fa68955c8a953a4273a2cf98bc7f053c5ff362 /Makefile
parent6e4ae56ebdbc6c02e21586fd9360a3a049072d13 (diff)
bustle-pcap: librarify guts
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index daa5309..a5ba46d 100644
--- a/Makefile
+++ b/Makefile
@@ -16,9 +16,12 @@ dist/build/bustle-dbus-monitor: c-sources/bustle-dbus-monitor.c
@mkdir -p dist/build
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(DBUS_FLAGS)
-dist/build/bustle-pcap: c-sources/bustle-pcap.c
+BUSTLE_PCAP_SOURCES = c-sources/pcap.c c-sources/bustle-pcap.c
+BUSTLE_PCAP_HEADERS = c-sources/pcap.h
+
+dist/build/bustle-pcap: $(BUSTLE_PCAP_SOURCES) $(BUSTLE_PCAP_HEADERS)
@mkdir -p dist/build
- $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< \
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(BUSTLE_PCAP_SOURCES) \
$(GIO_FLAGS) $(PCAP_FLAGS)
install: all