blob: d72661e21c04b4218acc84435d3f2794b65131bf [file] [log] [blame]
Greg Hartman76d05dc2016-11-23 15:51:27 -08001BLIB = ../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