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