summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..d131f90
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,16 @@
+all: dropwatch
+CFLAGS += -c -g -D_GNU_SOURCE -Wall -Werror
+CFLAGS += `pkg-config --cflags libnl-2.0`
+LDFLAGS += -lbfd -lreadline -ltermcap
+LDFLAGS += `pkg-config --libs libnl-2.0`
+OBJFILES := main.o lookup.o\
+ lookup_bfd.o lookup_kas.o
+
+dropwatch: $(OBJFILES)
+ gcc -g -o dropwatch $(OBJFILES) $(LDFLAGS)
+
+%.o: %.c
+ gcc $(CFLAGS) $<
+clean:
+ rm -f dropwatch *.o
+