Makefile.win
1.55 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
AR = ar
CC = g++
JAVA = javac
DEVCPP = d:/Dev-Cpp
TARGET_ARCH = linux
OPT = -fomit-frame-pointer -funroll-loops -march=i686 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2
DEBUG = -ggdb
OTHER = -Wall
INCLUDE = -I. -I../include -Iinclude -I$(DEVCPP)/include -I$(DEVCPP)/include -I$(DEVCPP)/include/c++ -I$(DEVCPP)/include/c++/mingw32 -I$(DEVCPP)/include/c++/backward -I$(DEVCPP)/include -I../jsocket/include -I../../jcommon/include -I../../jio/include
LIBRARY = -L. -L../../lib -L$(DEVCPP)/lib -ljlib -lwsock32
STD = _GNU_SOURCE
CCFLAGS = $(INCLUDE) $(DEBUG) $(OPT) $(OTHER) -D$(STD)
OBJS_proxy_teste = \
proxy_teste.o\
OBJS_opt_teste = \
opt_teste.o\
OBJS_http_teste = \
http_teste.o\
OBJS_dump_teste = \
dump_teste.o\
OBJS_server_teste = \
server_teste.o\
all: proxy_teste opt_teste http_teste dump_teste server_teste
proxy_teste: $(OBJS_proxy_teste)
$(CC) $(CCFLAGS) $(OBJS_proxy_teste) -o proxy_teste $(LIBRARY)
opt_teste: $(OBJS_opt_teste)
$(CC) $(CCFLAGS) $(OBJS_opt_teste) -o opt_teste $(LIBRARY)
http_teste: $(OBJS_http_teste)
$(CC) $(CCFLAGS) $(OBJS_http_teste) -o http_teste $(LIBRARY)
dump_teste: $(OBJS_dump_teste)
$(CC) $(CCFLAGS) $(OBJS_dump_teste) -o dump_teste $(LIBRARY)
server_teste: $(OBJS_server_teste)
$(CC) $(CCFLAGS) $(OBJS_server_teste) -o server_teste $(LIBRARY)
.cpp.o: $<
@$(CC) $(CCFLAGS) -c $<
install:
clean:
rm -rvf *.o *~ proxy_teste.exe opt_teste.exe http_teste.exe dump_teste.exe server_teste.exe jsocket.dll