summaryrefslogtreecommitdiff
path: root/gpxe/src/util/Makefile
blob: d72661e21c04b4218acc84435d3f2794b65131bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
BLIB = ../bin/blib.a
CFLAGS = -Os

all : hijack prototester mucurses_test

hijack : hijack.c
	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -Wall -lpcap -o $@ $<

prototester.o : prototester.c
	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -Wall -o $@ -c $< -idirafter ../include

prototester : prototester.o $(BLIB)
	$(CC) -o $@ $< -lc $(BLIB)

mucurses_test.o : mucurses_test.c
	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -Wall -o $@ -c $<

mucurses_test : mucurses_test.o $(BLIB)
	$(CC) -o $@ $< -lc $(BLIB)

clean :
	rm -f hijack prototester mucurses_test *.o