Makefile
3.11 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
HOST =
AR = $(HOST)ar
CC = $(HOST)g++
RANLIB = $(HOST)ranlib
JAVA = $(HOST)javac
STRIP = $(HOST)strip
DEBUG = -g -ggdb
INCLUDE = -I. `pkg-config --cflags jlibcpp`
LIBRARY = -L. `pkg-config --libs jlibcpp`
CCFLAGS = -Wall -funroll-loops $(LDFLAGS) $(INCLUDE) $(DEBUG)
ECHO = echo -e
OK = \033[30;32mOK!\033[m
OBJS_proxy_udp = \
proxy_udp.o\
OBJS_opt_teste = \
opt_teste.o\
OBJS_http_teste = \
http_teste.o\
OBJS_dump_teste = \
dump_teste.o\
OBJS_sniff_teste = \
sniff_teste.o\
OBJS_server_teste = \
server_teste.o\
OBJS_streamer_teste = \
streamer_teste.o\
OBJS_proxy_web = \
proxy_web.o\
OBJS_http_request = \
http_request.o\
OBJS_lookup = \
lookup.o\
OBJS_sslclient = \
sslclient.o\
OBJS_sslserver = \
sslserver.o\
OBJS_ssltelnet = \
ssltelnet.o\
OBJS_interfaces = \
interfaces.o\
OBJS_localsocket = \
localsocket.o\
all: proxy_udp opt_teste http_teste dump_teste server_teste sniff_teste streamer_teste proxy_web http_request sslclient sslserver ssltelnet lookup interfaces localsocket
proxy_udp: $(OBJS_proxy_udp)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
opt_teste: $(OBJS_opt_teste)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
http_teste: $(OBJS_http_teste)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
dump_teste: $(OBJS_dump_teste)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
sniff_teste: $(OBJS_sniff_teste)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
server_teste: $(OBJS_server_teste)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
streamer_teste: $(OBJS_streamer_teste)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
proxy_web: $(OBJS_proxy_web)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
http_request: $(OBJS_http_request)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
lookup: $(OBJS_lookup)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
sslclient: $(OBJS_sslclient)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
sslserver: $(OBJS_sslserver)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
ssltelnet: $(OBJS_ssltelnet)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
localsocket: $(OBJS_localsocket)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
interfaces: $(OBJS_interfaces)
@$(CC) $(CCFLAGS) $? -o $@ $(LIBRARY) ; $(ECHO) "Compiling $< ... $(OK)"
.cpp.o: $<
@$(CC) $(CCFLAGS) -c $< && $(ECHO) "Compiling $< ... $(OK)"
install:
clean:
@rm -rvf *.o *.exe *.dll *.lib *.a *~ proxy_udp opt_teste http_teste dump_teste server_teste sniff_teste streamer_teste proxy_web http_request lookup sslserver sslclient ssltelnet interfaces localsocket