]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c4839ccf | 3 | # Bakefile 0.1.4 (http://bakefile.sourceforge.net) |
3b20263d VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../build/msw/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
b17c1746 DE |
15 | OBJS = \ |
16 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
17 | SETUPHDIR = \ | |
18 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 VS |
19 | CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ |
20 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
21 | -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \ | |
b17c1746 | 22 | $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) |
e9877ed3 VS |
23 | CLIENT_OBJECTS = \ |
24 | $(OBJS)\client_client.o \ | |
25 | $(OBJS)\client_client_rc.o | |
9bfe7ad9 VS |
26 | SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ |
27 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
28 | -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \ | |
b17c1746 | 29 | $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) |
e9877ed3 VS |
30 | SERVER_OBJECTS = \ |
31 | $(OBJS)\server_server.o \ | |
32 | $(OBJS)\server_server_rc.o | |
3b20263d VS |
33 | |
34 | ### Conditionally set variables: ### | |
35 | ||
250700e4 RD |
36 | ifeq ($(GCC_VERSION),2.95) |
37 | GCCFLAGS = -fvtable-thunks | |
38 | endif | |
3b20263d VS |
39 | ifeq ($(USE_GUI),0) |
40 | PORTNAME = base | |
41 | endif | |
42 | ifeq ($(USE_GUI),1) | |
43 | PORTNAME = msw | |
44 | endif | |
45 | ifeq ($(BUILD),debug) | |
25a73439 VS |
46 | ifeq ($(DEBUG_FLAG),default) |
47 | WXDEBUGFLAG = d | |
48 | endif | |
49 | endif | |
50 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
51 | WXDEBUGFLAG = d |
52 | endif | |
3b20263d VS |
53 | ifeq ($(UNICODE),1) |
54 | WXUNICODEFLAG = u | |
55 | endif | |
56 | ifeq ($(WXUNIV),1) | |
57 | WXUNIVNAME = univ | |
58 | endif | |
b17c1746 DE |
59 | ifeq ($(SHARED),1) |
60 | WXDLLFLAG = dll | |
25a73439 | 61 | endif |
b17c1746 DE |
62 | ifeq ($(BUILD),debug) |
63 | __OPTIMIZEFLAG = -O0 | |
250700e4 RD |
64 | endif |
65 | ifeq ($(BUILD),release) | |
b17c1746 | 66 | __OPTIMIZEFLAG = -O2 |
25a73439 | 67 | endif |
b17c1746 DE |
68 | ifeq ($(USE_EXCEPTIONS),0) |
69 | __EXCEPTIONSFLAG = -fno-rtti | |
25a73439 | 70 | endif |
b17c1746 DE |
71 | ifeq ($(USE_EXCEPTIONS),1) |
72 | __EXCEPTIONSFLAG = | |
25a73439 | 73 | endif |
b17c1746 DE |
74 | ifeq ($(USE_EXCEPTIONS),0) |
75 | __EXCEPTIONSFLAG_0 = -fno-exceptions | |
76 | endif | |
77 | ifeq ($(USE_EXCEPTIONS),1) | |
78 | __EXCEPTIONSFLAG_0 = | |
79 | endif | |
80 | ifeq ($(WXUNIV),1) | |
81 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
82 | endif | |
83 | ifeq ($(WXUNIV),1) | |
84 | __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__ | |
250700e4 RD |
85 | endif |
86 | ifeq ($(BUILD),debug) | |
25a73439 VS |
87 | ifeq ($(DEBUG_FLAG),default) |
88 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
89 | endif | |
90 | endif | |
91 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
92 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
93 | endif | |
94 | ifeq ($(BUILD),debug) | |
25a73439 VS |
95 | ifeq ($(DEBUG_FLAG),default) |
96 | __DEBUG_DEFINE_p_0 = --define __WXDEBUG__ | |
97 | endif | |
98 | endif | |
99 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 | 100 | __DEBUG_DEFINE_p_0 = --define __WXDEBUG__ |
3b20263d | 101 | endif |
b17c1746 DE |
102 | ifeq ($(UNICODE),1) |
103 | __UNICODE_DEFINE_p = -D_UNICODE | |
104 | endif | |
105 | ifeq ($(UNICODE),1) | |
106 | __UNICODE_DEFINE_p_0 = --define _UNICODE | |
107 | endif | |
108 | ifeq ($(SHARED),0) | |
109 | LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG) | |
110 | endif | |
111 | ifeq ($(SHARED),1) | |
112 | LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG) | |
113 | endif | |
3b20263d VS |
114 | ifeq ($(SHARED),1) |
115 | __DLLFLAG_p = -DWXUSINGDLL | |
116 | endif | |
117 | ifeq ($(SHARED),1) | |
250700e4 RD |
118 | __DLLFLAG_p_0 = --define WXUSINGDLL |
119 | endif | |
b17c1746 DE |
120 | ifeq ($(MONOLITHIC),0) |
121 | __WXLIB_CORE_p = \ | |
122 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
b71531ad | 123 | endif |
b17c1746 DE |
124 | ifeq ($(MONOLITHIC),0) |
125 | __WXLIB_NET_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net | |
b71531ad | 126 | endif |
b17c1746 DE |
127 | ifeq ($(MONOLITHIC),0) |
128 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
b71531ad | 129 | endif |
b17c1746 DE |
130 | ifeq ($(MONOLITHIC),1) |
131 | __WXLIB_MONO_p = \ | |
132 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
b71531ad | 133 | endif |
e9877ed3 | 134 | ifeq ($(USE_GUI),1) |
b17c1746 | 135 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
e9877ed3 VS |
136 | endif |
137 | ifeq ($(USE_GUI),1) | |
b17c1746 | 138 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
e9877ed3 VS |
139 | endif |
140 | ifeq ($(USE_GUI),1) | |
b17c1746 | 141 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
3b20263d | 142 | endif |
4e209a20 VS |
143 | ifeq ($(MSLU),1) |
144 | __UNICOWS_LIB_p = -lunicows | |
145 | endif | |
b17c1746 DE |
146 | ifeq ($(BUILD),debug) |
147 | ifeq ($(DEBUG_INFO),default) | |
148 | __DEBUGINFO = -g | |
3b20263d | 149 | endif |
3b20263d | 150 | endif |
b17c1746 DE |
151 | ifeq ($(BUILD),release) |
152 | ifeq ($(DEBUG_INFO),default) | |
153 | __DEBUGINFO = | |
e9877ed3 | 154 | endif |
3b20263d | 155 | endif |
b17c1746 DE |
156 | ifeq ($(DEBUG_INFO),0) |
157 | __DEBUGINFO = | |
3b20263d | 158 | endif |
b17c1746 DE |
159 | ifeq ($(DEBUG_INFO),1) |
160 | __DEBUGINFO = -g | |
3b20263d VS |
161 | endif |
162 | ||
163 | ||
164 | all: $(OBJS) | |
165 | $(OBJS): | |
166 | -if not exist $(OBJS) mkdir $(OBJS) | |
167 | ||
168 | ### Targets: ### | |
169 | ||
250700e4 | 170 | all: $(OBJS)\client.exe $(OBJS)\server.exe |
3b20263d | 171 | |
b17c1746 DE |
172 | clean: |
173 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
174 | -if exist $(OBJS)\client.exe del $(OBJS)\client.exe | |
175 | -if exist $(OBJS)\server.exe del $(OBJS)\server.exe | |
176 | ||
177 | $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client_rc.o | |
b92ca8cf | 178 | $(CXX) -o $@ $(CLIENT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
b17c1746 DE |
179 | |
180 | $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server_rc.o | |
b92ca8cf | 181 | $(CXX) -o $@ $(SERVER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
b17c1746 | 182 | |
1c3a6972 | 183 | $(OBJS)\client_client.o: ./client.cpp |
250700e4 | 184 | $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $< |
3b20263d | 185 | |
1c3a6972 | 186 | $(OBJS)\client_client_rc.o: ./client.rc |
ec08d395 | 187 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples |
250700e4 | 188 | |
1c3a6972 | 189 | $(OBJS)\server_server.o: ./server.cpp |
250700e4 RD |
190 | $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $< |
191 | ||
1c3a6972 | 192 | $(OBJS)\server_server_rc.o: ./server.rc |
ec08d395 | 193 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples |
3b20263d | 194 | |
250700e4 | 195 | .PHONY: all clean |