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