80353aee15fb19edc375f98831665efe01438d25
[my-code/hdw-sniff.git] / Makefile
1 # hdw-sniff Makefile, created Fri May 27 20:42:55 CEST 2005
2
3 INCLUDEDIR = /usr/include
4 CFLAGS = -DDEBUG -O3 -Wall
5 LIBS = -lm -lncurses -lpcap
6
7 OBJS = network.o event.o list.o display.o input.o
8 OBJS2 = hdw-sniff
9
10 links:
11         ln -sf ../api/network/network.{c,h} .
12         ln -sf ../api/event/event.{c,h} .
13         ln -sf ../api/list/list.{c,h} .
14         ln -sf ../api/display/display.{c,h} .
15         ln -sf ../api/input/input.{c,h} .
16
17 hdw-sniff: links $(OBJS)
18         $(CC) $(CFLAGS) -o $@ $(OBJS) main.c parse.c $(LIBS)
19
20 all: hdw-sniff
21
22 clean:
23         rm -f $(OBJS) $(OBJS2)
24
25 remake: clean all
26
27 install:
28         mkdir -p /usr/bin
29         cp hdw-sniff /usr/bin