-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
65 lines (49 loc) · 1.34 KB
/
makefile
File metadata and controls
65 lines (49 loc) · 1.34 KB
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
56
57
58
59
60
61
62
63
64
65
# name: makefile
# this file is part of the "Net Injector" project.
# Copyright (C) 2002 by Jean Philippe GUILLEMIN <jp.guillemin@free.fr>
# license: This software is under GPL version 2 of license
# date: 04 17 2003
# rev: 0.8
HEADERS = neti.h
OBJECTS = utils.o parse.o udp.o tcp.o icmp.o lookup.o listen.o getif_ip.o main.o getout_ip.o promisc.o getif_name.o
INSPATH = /usr/sbin/
SOURCEPATH = ./
SCRIPTPATH = $(SOURCEPATH)scripts/
BIN = neti
$(BIN) : $(HEADERS) $(OBJECTS)
gcc -g -Wall -o $(BIN) $(OBJECTS)
utils.o : udp.c
gcc -g -Wall -c utils.c
parse.o : parse.c
gcc -g -Wall -c parse.c
udp.o : udp.c
gcc -g -Wall -c udp.c
tcp.o : tcp.c
gcc -g -Wall -c tcp.c
main.o : main.c
gcc -g -Wall -c main.c
lookup.o : lookup.c
gcc -g -Wall -c lookup.c
listen.o : listen.c
gcc -g -Wall -c listen.c
icmp.o : icmp.c
gcc -g -Wall -c icmp.c
getif_ip.o : getif_ip.c
gcc -g -Wall -c getif_ip.c
getout_ip.o : getout_ip.c
gcc -g -Wall -c getout_ip.c
promisc.o : promisc.c
gcc -g -Wall -c promisc.c
getif_name.o : getif_name.c
gcc -g -Wall -c getif_name.c
install : $(BIN) $(SCRIPTPATH)
chmod 755 $(SOURCEPATH)$(BIN)
chmod 755 $(SCRIPTPATH)*.ng
strip $(SOURCEPATH)$(BIN)
cp -f $(SOURCEPATH)$(BIN) $(INSPATH)
cp -f $(SCRIPTPATH)*.ng $(INSPATH)
uninstall : $(INSPATH)$(BIN)
rm -f $(INSPATH)$(BIN)
rm -f $(INSPATH)*.ng
clean :
rm -f $(SOURCEPATH)*.o