projects
/
my-code
/
hdw-sniff.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
begin to parse frame ctl hdr + listing sta's
[my-code/hdw-sniff.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
8a234aa
..
80353ae
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,13
+1,29
@@
-#
!/usr/bin/make
+#
hdw-sniff Makefile, created Fri May 27 20:42:55 CEST 2005
-CC = gcc
-CFLAGS = -
O3
-L
DFLAGS =
-lpcap
+INCLUDEDIR = /usr/include
+CFLAGS = -
DDEBUG -O3 -Wall
+L
IBS = -lm -lncurses
-lpcap
-TARGETS = hdw-sniff
+OBJS = network.o event.o list.o display.o input.o
+OBJS2 = hdw-sniff
-all: $(TARGETS)
+links:
+ ln -sf ../api/network/network.{c,h} .
+ ln -sf ../api/event/event.{c,h} .
+ ln -sf ../api/list/list.{c,h} .
+ ln -sf ../api/display/display.{c,h} .
+ ln -sf ../api/input/input.{c,h} .
-hdw-sniff:
- $(CC) $(CFLAGS) -
Wall hdw-sniff.c $(LDFLAGS) -o hdw-sniff
+hdw-sniff:
links $(OBJS)
+ $(CC) $(CFLAGS) -
o $@ $(OBJS) main.c parse.c $(LIBS)
+all: hdw-sniff
+
+clean:
+ rm -f $(OBJS) $(OBJS2)
+
+remake: clean all
+
+install:
+ mkdir -p /usr/bin
+ cp hdw-sniff /usr/bin