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