05039089b279b3f3e13f93cdb099be6202045188
[my-code/hdw-sniff.git] / Makefile
1 # Makefile of hdw-sniff
2
3 INCLUDEDIR = /usr/include
4
5 CFLAGS = -DDEBUG -O3 -Wall
6 LIBS = -lpcap
7
8 API_OBJS = network.o event.o input.o display.o audio.o
9
10 api: links $(API_OBJS)
11
12 hdw-sniff: $(API_OBJS)
13         $(CC) $(CFLAGS) -o $@ $(API_OBJS) hdw-sniff.c $(LIBS)
14 all: hdw-sniff
15
16 clean:
17         rm -f $(API_OBJS) {event,input,display,audio,network,list}.{c,h}
18         rm -f hdw-sniff
19
20 links:
21         ln -sf ../api/event/event.{c,h} .
22         ln -sf ../api/input/input.{c,h} .
23         ln -sf ../api/display/display.{c,h} .
24         ln -sf ../api/audio/audio.{c,h} .
25         ln -sf ../api/network/network.{c,h} .
26         ln -sf ../api/list/list.{c,h} .
27
28 remake: clean all