File: Makefile

package info (click to toggle)
sniffit 0.3.5-3
  • links: PTS
  • area: non-free
  • in suites: hamm, slink
  • size: 984 kB
  • ctags: 1,367
  • sloc: ansic: 10,604; sh: 1,568; yacc: 234; lex: 202; makefile: 154
file content (55 lines) | stat: -rw-r--r-- 2,008 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Generated automatically from Makefile.in by configure.
# Sniffit Makefile 
#   - Maintained by: Brecht Claerhout
#

.PHONY : clean

#Some Vars
SNIFFIT    = sniffit.0.3.5.c
CC         = gcc
LIBS       = -lncurses 
DEFS	   =  -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=4 -DLINUX=1 
OS_OPT     = 
OBJ_FLAG   = -w -O2 -c
OBJ_OPT    = -I./libpcap-0.3 -L./libpcap-0.3
EXE_FLAG   = -w -O2 -o sniffit
EXE_OPT    = -I./libpcap-0.3 -L./libpcap-0.3 -lpcap
EXE_OBJ    = sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o \
             sn_logfile.o
DEP_FILES  = sn_config.h pcap.h sn_data.h sn_defines.h sn_plugins.h \
             sn_packets.o \
             sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o

sniffit: $(SNIFFIT) $(DEP_FILES)
#	cd libpcap-0.3; make; cd ..
	$(CC) $(EXE_FLAG) $(SNIFFIT) $(EXE_OBJ) $(EXE_OPT) $(LIBS) $(DEFS) $(OS_OPT) 
	strip sniffit

sn_cfgfile.o: sn_cfgfile.h sn_cfgfile.c sn_defines.h sn_structs.h sn_config.h
	$(CC) $(OBJ_FLAG) sn_cfgfile.c $(OBJ_OPT) $(DEFS)

sn_logfile.o: sn_logfile.h sn_logfile.c sn_defines.h sn_structs.h sn_config.h
	$(CC) $(OBJ_FLAG) $(GEN_OPT) sn_logfile.c $(OBJ_OPT) $(DEFS)

sn_packets.o: sn_packets.h sn_packets.c sn_defines.h sn_structs.h sn_config.h
	$(CC) $(OBJ_FLAG) $(GEN_OPT) sn_packets.c $(OBJ_OPT) $(DEFS)

sn_interface.o: sn_interface.h sn_interface.c sn_defines.h sn_structs.h \
                sn_generation.h sn_generation.c sn_config.h
	$(CC) $(OBJ_FLAG) $(GEN_OPT) sn_interface.c $(OBJ_OPT) $(DEFS)

sn_generation.o: sn_generation.h sn_generation.c sn_defines.h sn_structs.h \
                 sn_config.h
	$(CC) $(OBJ_FLAG) $(GEN_OPT) sn_generation.c $(OBJ_OPT) $(DEFS)

#Clean up everthing...
clean:
#	cd libpcap-0.3; make clean; rm -f config.cache; cd ..
	rm -f config.cache
	rm -f config.status
	rm -f config.log
#	rm -f ./libpcap-0.3/config.cache
#	rm -f ./libpcap-0.3/config.status
#	rm -f ./libpcap-0.3/config.log
	rm -f *.o sniffit