1 BLIB = ../bin/blib.a 2 CFLAGS = -Os 3 4 all : hijack prototester mucurses_test 5 6 hijack : hijack.c 7 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -Wall -lpcap -o $@ $< 8 9 prototester.o : prototester.c 10 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -Wall -o $@ -c $< -idirafter ../include 11 12 prototester : prototester.o $(BLIB) 13 $(CC) -o $@ $< -lc $(BLIB) 14 15 mucurses_test.o : mucurses_test.c 16 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -Wall -o $@ -c $< 17 18 mucurses_test : mucurses_test.o $(BLIB) 19 $(CC) -o $@ $< -lc $(BLIB) 20 21 clean : 22 rm -f hijack prototester mucurses_test *.o 23