From eaf40883ff41d54849e55c8bfb27b41967b31a3b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 23 Mar 2006 13:11:41 +0000 Subject: [PATCH] Add Makefile for hijack and prototester utilities. --- src/util/.cvsignore | 2 ++ src/util/Makefile | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/util/.cvsignore create mode 100644 src/util/Makefile diff --git a/src/util/.cvsignore b/src/util/.cvsignore new file mode 100644 index 00000000..18ce7e23 --- /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 00000000..97dec040 --- /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