]> git.saurik.com Git - wxWidgets.git/blame - samples/ipc/makefile.gcc
More wxMac compilation fixes.
[wxWidgets.git] / samples / ipc / 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
d179e30b 15CLIENT_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
076f10e0 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)
d179e30b
VS
20CLIENT_OBJECTS = \
21 $(OBJS)\client_sample_rc.o \
22 $(OBJS)\client_client.o
076f10e0
VS
23OBJS = \
24 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
d179e30b
VS
25SERVER_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
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)
d179e30b
VS
30SERVER_OBJECTS = \
31 $(OBJS)\server_sample_rc.o \
32 $(OBJS)\server_server.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)
076f10e0
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)
076f10e0
VS
71ifeq ($(DEBUG_INFO),default)
72__DEBUGINFO = -g
73endif
250700e4
RD
74endif
75ifeq ($(BUILD),release)
076f10e0
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)
076f10e0
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)
076f10e0 95ifeq ($(DEBUG_FLAG),default)
d179e30b 96__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
076f10e0
VS
97endif
98endif
99ifeq ($(DEBUG_FLAG),1)
d179e30b 100__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
3b20263d
VS
101endif
102ifeq ($(SHARED),1)
103__DLLFLAG_p = -DWXUSINGDLL
104endif
105ifeq ($(SHARED),1)
d179e30b 106__DLLFLAG_p_0 = --define WXUSINGDLL
3b20263d 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
076f10e0
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 129ifeq ($(BUILD),debug)
d179e30b 130__OPTIMIZEFLAG = -O0
250700e4
RD
131endif
132ifeq ($(BUILD),release)
d179e30b 133__OPTIMIZEFLAG = -O2
250700e4 134endif
3b20263d 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)
076f10e0
VS
148__WXLIB_CORE_p = \
149 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
3b20263d
VS
150endif
151ifeq ($(MONOLITHIC),1)
076f10e0
VS
152__WXLIB_MONO_p = \
153 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
3b20263d 154endif
d179e30b
VS
155ifeq ($(MONOLITHIC),0)
156__WXLIB_NET_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net
157endif
3b20263d
VS
158ifeq ($(WXUNIV),1)
159__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160endif
161ifeq ($(WXUNIV),1)
d179e30b 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
d179e30b
VS
172all: $(OBJS)\client.exe $(OBJS)\server.exe
173
1c3a6972 174$(OBJS)\client_client.o: ./client.cpp
d179e30b 175 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $<
3b20263d 176
1c3a6972 177$(OBJS)\client_sample_rc.o: ./../../samples/sample.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
3b20263d 179
1c3a6972 180$(OBJS)\server_sample_rc.o: ./../../samples/sample.rc
ec08d395 181 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
d179e30b 182
1c3a6972 183$(OBJS)\server_server.o: ./server.cpp
d179e30b 184 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $<
3b20263d
VS
185
186clean:
187 -if exist $(OBJS)\*.o del $(OBJS)\*.o
d179e30b
VS
188 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
189 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
190
191$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_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
d179e30b 194$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_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