summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/.cvsignore2
-rw-r--r--src/util/Makefile16
2 files changed, 18 insertions, 0 deletions
diff --git a/src/util/.cvsignore b/src/util/.cvsignore
new file mode 100644
index 000000000..18ce7e23d
--- /dev/null
+++ b/src/util/.cvsignore
@@ -0,0 +1,2 @@
+hijack
+prototester
diff --git a/src/util/Makefile b/src/util/Makefile
new file mode 100644
index 000000000..97dec040e
--- /dev/null
+++ b/src/util/Makefile
@@ -0,0 +1,16 @@
+BLIB = ../bin/blib.a
+CFLAGS = -Os
+
+all : hijack prototester
+
+hijack : hijack.c
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -Wall -lpcap -o $@ $<
+
+prototester.o : prototester.c
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -Wall -o $@ -c $<
+
+prototester : prototester.o $(BLIB)
+ $(CC) -o $@ $< -lc $(BLIB)
+
+clean :
+ rm -f hijack prototester *.o