Add Makefile for hijack and prototester utilities.
This commit is contained in:
parent
21c58729ae
commit
eaf40883ff
2
src/util/.cvsignore
Normal file
2
src/util/.cvsignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
hijack
|
||||||
|
prototester
|
16
src/util/Makefile
Normal file
16
src/util/Makefile
Normal file
@ -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
|
Reference in New Issue
Block a user