]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.gcc
dc341a8d831dbdadbc68b67f521a78779a7485c8
[wxWidgets.git] / samples / render / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.2 (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 OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 RENDER_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 \
22 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
23 RENDER_OBJECTS = \
24 $(OBJS)\render_sample_rc.o \
25 $(OBJS)\render_render.o
26 RENDDLL_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 -DWXUSINGDLL $(__EXCEPTIONSFLAG) \
29 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
30 RENDDLL_OBJECTS = \
31 $(OBJS)\renddll_renddll.o
32
33 ### Conditionally set variables: ###
34
35 ifeq ($(GCC_VERSION),2.95)
36 GCCFLAGS = -fvtable-thunks
37 endif
38 ifeq ($(USE_GUI),0)
39 PORTNAME = base
40 endif
41 ifeq ($(USE_GUI),1)
42 PORTNAME = msw
43 endif
44 ifeq ($(BUILD),debug)
45 ifeq ($(DEBUG_FLAG),default)
46 WXDEBUGFLAG = d
47 endif
48 endif
49 ifeq ($(DEBUG_FLAG),1)
50 WXDEBUGFLAG = d
51 endif
52 ifeq ($(UNICODE),1)
53 WXUNICODEFLAG = u
54 endif
55 ifeq ($(WXUNIV),1)
56 WXUNIVNAME = univ
57 endif
58 ifeq ($(SHARED),1)
59 WXDLLFLAG = dll
60 endif
61 ifeq ($(WXUNIV),1)
62 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
63 endif
64 ifeq ($(BUILD),debug)
65 ifeq ($(DEBUG_FLAG),default)
66 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
67 endif
68 endif
69 ifeq ($(DEBUG_FLAG),1)
70 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
71 endif
72 ifeq ($(UNICODE),1)
73 __UNICODE_DEFINE_p_1 = --define _UNICODE
74 endif
75 ifeq ($(SHARED),1)
76 __DLLFLAG_p = -DWXUSINGDLL
77 endif
78 ifeq ($(SHARED),1)
79 __DLLFLAG_p_1 = --define WXUSINGDLL
80 endif
81 ifeq ($(SHARED),1)
82 __renddll___depname = \
83 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_gcc.dll
84 endif
85 ifeq ($(BUILD),debug)
86 __OPTIMIZEFLAG = -O0
87 endif
88 ifeq ($(BUILD),release)
89 __OPTIMIZEFLAG = -O2
90 endif
91 ifeq ($(USE_EXCEPTIONS),0)
92 __EXCEPTIONSFLAG = -fno-rtti
93 endif
94 ifeq ($(USE_EXCEPTIONS),1)
95 __EXCEPTIONSFLAG =
96 endif
97 ifeq ($(USE_EXCEPTIONS),0)
98 __EXCEPTIONSFLAG_0 = -fno-exceptions
99 endif
100 ifeq ($(USE_EXCEPTIONS),1)
101 __EXCEPTIONSFLAG_0 =
102 endif
103 ifeq ($(WXUNIV),1)
104 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
105 endif
106 ifeq ($(BUILD),debug)
107 ifeq ($(DEBUG_FLAG),default)
108 __DEBUG_DEFINE_p = -D__WXDEBUG__
109 endif
110 endif
111 ifeq ($(DEBUG_FLAG),1)
112 __DEBUG_DEFINE_p = -D__WXDEBUG__
113 endif
114 ifeq ($(UNICODE),1)
115 __UNICODE_DEFINE_p = -D_UNICODE
116 endif
117 ifeq ($(SHARED),0)
118 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
119 endif
120 ifeq ($(SHARED),1)
121 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
122 endif
123 ifeq ($(MONOLITHIC),0)
124 __WXLIB_CORE_p = \
125 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
126 endif
127 ifeq ($(MONOLITHIC),0)
128 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
129 endif
130 ifeq ($(MONOLITHIC),1)
131 __WXLIB_MONO_p = \
132 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
133 endif
134 ifeq ($(USE_GUI),1)
135 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
136 endif
137 ifeq ($(USE_GUI),1)
138 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
139 endif
140 ifeq ($(USE_GUI),1)
141 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
142 endif
143 ifeq ($(MSLU),1)
144 __UNICOWS_LIB_p = -lunicows
145 endif
146 ifeq ($(BUILD),debug)
147 ifeq ($(DEBUG_INFO),default)
148 __DEBUGINFO = -g
149 endif
150 endif
151 ifeq ($(BUILD),release)
152 ifeq ($(DEBUG_INFO),default)
153 __DEBUGINFO =
154 endif
155 endif
156 ifeq ($(DEBUG_INFO),0)
157 __DEBUGINFO =
158 endif
159 ifeq ($(DEBUG_INFO),1)
160 __DEBUGINFO = -g
161 endif
162
163
164 all: $(OBJS)
165 $(OBJS):
166 -if not exist $(OBJS) mkdir $(OBJS)
167
168 ### Targets: ###
169
170 all: $(OBJS)\render.exe $(__renddll___depname)
171
172 clean:
173 -if exist $(OBJS)\*.o del $(OBJS)\*.o
174 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
175 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_gcc.dll
176
177 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
178 $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
179
180 ifeq ($(SHARED),1)
181 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_gcc.dll: $(RENDDLL_OBJECTS)
182 $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
183 endif
184
185 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
186 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
187
188 $(OBJS)\render_render.o: ./render.cpp
189 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $<
190
191 $(OBJS)\renddll_renddll.o: ./renddll.cpp
192 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $<
193
194 .PHONY: all clean