]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.gcc
Convert back to UNIX line endings (again)
[wxWidgets.git] / samples / render / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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 WX_RELEASE_NODOT = 25
16 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
23 -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
24 -DNOPCH $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
25 RENDER_OBJECTS = \
26 $(OBJS)\render_sample_rc.o \
27 $(OBJS)\render_render.o
28 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
29 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
30 -I.\..\..\include -I$(SETUPHDIR) -Wall -DWXUSINGDLL $(__EXCEPTIONSFLAG) \
31 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
32 RENDDLL_OBJECTS = \
33 $(OBJS)\renddll_renddll.o
34
35 ### Conditionally set variables: ###
36
37 ifeq ($(GCC_VERSION),2.95)
38 GCCFLAGS = -fvtable-thunks
39 endif
40 ifeq ($(USE_GUI),0)
41 PORTNAME = base
42 endif
43 ifeq ($(USE_GUI),1)
44 PORTNAME = msw
45 endif
46 ifeq ($(BUILD),debug)
47 ifeq ($(DEBUG_FLAG),default)
48 WXDEBUGFLAG = d
49 endif
50 endif
51 ifeq ($(DEBUG_FLAG),1)
52 WXDEBUGFLAG = d
53 endif
54 ifeq ($(UNICODE),1)
55 WXUNICODEFLAG = u
56 endif
57 ifeq ($(WXUNIV),1)
58 WXUNIVNAME = univ
59 endif
60 ifeq ($(SHARED),1)
61 WXDLLFLAG = dll
62 endif
63 ifeq ($(BUILD),debug)
64 ifeq ($(UNICODE),0)
65 PLUGINSUFFIX = d
66 endif
67 endif
68 ifeq ($(BUILD),debug)
69 ifeq ($(UNICODE),1)
70 PLUGINSUFFIX = ud
71 endif
72 endif
73 ifeq ($(BUILD),release)
74 ifeq ($(UNICODE),0)
75 PLUGINSUFFIX =
76 endif
77 endif
78 ifeq ($(BUILD),release)
79 ifeq ($(UNICODE),1)
80 PLUGINSUFFIX = u
81 endif
82 endif
83 ifeq ($(WXUNIV),1)
84 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
85 endif
86 ifeq ($(BUILD),debug)
87 ifeq ($(DEBUG_FLAG),default)
88 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
89 endif
90 endif
91 ifeq ($(DEBUG_FLAG),1)
92 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
93 endif
94 ifeq ($(UNICODE),1)
95 __UNICODE_DEFINE_p_1 = --define _UNICODE
96 endif
97 ifeq ($(SHARED),1)
98 __DLLFLAG_p = -DWXUSINGDLL
99 endif
100 ifeq ($(SHARED),1)
101 __DLLFLAG_p_1 = --define WXUSINGDLL
102 endif
103 ifeq ($(SHARED),1)
104 __renddll___depname = \
105 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
106 endif
107 ifeq ($(BUILD),debug)
108 __OPTIMIZEFLAG = -O0
109 endif
110 ifeq ($(BUILD),release)
111 __OPTIMIZEFLAG = -O2
112 endif
113 ifeq ($(USE_EXCEPTIONS),0)
114 __EXCEPTIONSFLAG = -fno-rtti
115 endif
116 ifeq ($(USE_EXCEPTIONS),1)
117 __EXCEPTIONSFLAG =
118 endif
119 ifeq ($(USE_EXCEPTIONS),0)
120 __EXCEPTIONSFLAG_0 = -fno-exceptions
121 endif
122 ifeq ($(USE_EXCEPTIONS),1)
123 __EXCEPTIONSFLAG_0 =
124 endif
125 ifeq ($(WXUNIV),1)
126 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
127 endif
128 ifeq ($(BUILD),debug)
129 ifeq ($(DEBUG_FLAG),default)
130 __DEBUG_DEFINE_p = -D__WXDEBUG__
131 endif
132 endif
133 ifeq ($(DEBUG_FLAG),1)
134 __DEBUG_DEFINE_p = -D__WXDEBUG__
135 endif
136 ifeq ($(UNICODE),1)
137 __UNICODE_DEFINE_p = -D_UNICODE
138 endif
139 ifeq ($(SHARED),0)
140 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
141 endif
142 ifeq ($(SHARED),1)
143 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
144 endif
145 ifeq ($(MONOLITHIC),0)
146 __WXLIB_CORE_p = \
147 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
148 endif
149 ifeq ($(MONOLITHIC),0)
150 __WXLIB_BASE_p = \
151 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
152 endif
153 ifeq ($(MONOLITHIC),1)
154 __WXLIB_MONO_p = \
155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
156 endif
157 ifeq ($(USE_GUI),1)
158 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
159 endif
160 ifeq ($(USE_GUI),1)
161 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
162 endif
163 ifeq ($(USE_GUI),1)
164 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
165 endif
166 ifeq ($(MSLU),1)
167 __UNICOWS_LIB_p = -lunicows
168 endif
169 ifeq ($(BUILD),debug)
170 ifeq ($(DEBUG_INFO),default)
171 __DEBUGINFO = -g
172 endif
173 endif
174 ifeq ($(BUILD),release)
175 ifeq ($(DEBUG_INFO),default)
176 __DEBUGINFO =
177 endif
178 endif
179 ifeq ($(DEBUG_INFO),0)
180 __DEBUGINFO =
181 endif
182 ifeq ($(DEBUG_INFO),1)
183 __DEBUGINFO = -g
184 endif
185
186
187 all: $(OBJS)
188 $(OBJS):
189 -if not exist $(OBJS) mkdir $(OBJS)
190
191 ### Targets: ###
192
193 all: $(OBJS)\render.exe $(__renddll___depname)
194
195 clean:
196 -if exist $(OBJS)\*.o del $(OBJS)\*.o
197 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
198 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
199
200 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
201 $(CXX) -o $@ $(RENDER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_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
202
203 ifeq ($(SHARED),1)
204 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
205 $(CXX) -shared -o $@ $(RENDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(__WXLIB_CORE_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
206 endif
207
208 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
209 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
210
211 $(OBJS)\render_render.o: ./render.cpp
212 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $<
213
214 $(OBJS)\renddll_renddll.o: ./renddll.cpp
215 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $<
216
217 .PHONY: all clean