]> git.saurik.com Git - wxWidgets.git/blob - demos/forty/makefile.gcc
1.
[wxWidgets.git] / demos / forty / 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 FORTY_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(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_4) \
19 $(__EXCEPTIONSFLAG_5)
20 FORTY_OBJECTS = \
21 $(OBJS)\forty_forty.o \
22 $(OBJS)\forty_canvas.o \
23 $(OBJS)\forty_card.o \
24 $(OBJS)\forty_game.o \
25 $(OBJS)\forty_pile.o \
26 $(OBJS)\forty_playerdg.o \
27 $(OBJS)\forty_scoredg.o \
28 $(OBJS)\forty_scorefil.o \
29 $(OBJS)\forty_forty_rc.o
30 OBJS = \
31 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
32 SETUPHDIR = \
33 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
34
35 ### Conditionally set variables: ###
36
37 ifeq ($(GCC_VERSION),2.95)
38 GCCFLAGS = -fvtable-thunks
39 endif
40 ifeq ($(SHARED),0)
41 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
42 endif
43 ifeq ($(SHARED),1)
44 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
45 endif
46 ifeq ($(USE_GUI),0)
47 PORTNAME = base
48 endif
49 ifeq ($(USE_GUI),1)
50 PORTNAME = msw
51 endif
52 ifeq ($(BUILD),debug)
53 ifeq ($(DEBUG_FLAG),default)
54 WXDEBUGFLAG = d
55 endif
56 endif
57 ifeq ($(DEBUG_FLAG),1)
58 WXDEBUGFLAG = d
59 endif
60 ifeq ($(SHARED),1)
61 WXDLLFLAG = dll
62 endif
63 ifeq ($(UNICODE),1)
64 WXUNICODEFLAG = u
65 endif
66 ifeq ($(WXUNIV),1)
67 WXUNIVNAME = univ
68 endif
69 ifeq ($(BUILD),debug)
70 ifeq ($(DEBUG_INFO),default)
71 __DEBUGINFO = -g
72 endif
73 endif
74 ifeq ($(BUILD),release)
75 ifeq ($(DEBUG_INFO),default)
76 __DEBUGINFO =
77 endif
78 endif
79 ifeq ($(DEBUG_INFO),0)
80 __DEBUGINFO =
81 endif
82 ifeq ($(DEBUG_INFO),1)
83 __DEBUGINFO = -g
84 endif
85 ifeq ($(BUILD),debug)
86 ifeq ($(DEBUG_FLAG),default)
87 __DEBUG_DEFINE_p = -D__WXDEBUG__
88 endif
89 endif
90 ifeq ($(DEBUG_FLAG),1)
91 __DEBUG_DEFINE_p = -D__WXDEBUG__
92 endif
93 ifeq ($(BUILD),debug)
94 ifeq ($(DEBUG_FLAG),default)
95 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
96 endif
97 endif
98 ifeq ($(DEBUG_FLAG),1)
99 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
100 endif
101 ifeq ($(SHARED),1)
102 __DLLFLAG_p = -DWXUSINGDLL
103 endif
104 ifeq ($(SHARED),1)
105 __DLLFLAG_p_1 = --define WXUSINGDLL
106 endif
107 ifeq ($(USE_EXCEPTIONS),0)
108 __EXCEPTIONSFLAG_4 = -fno-rtti
109 endif
110 ifeq ($(USE_EXCEPTIONS),1)
111 __EXCEPTIONSFLAG_4 =
112 endif
113 ifeq ($(USE_EXCEPTIONS),0)
114 __EXCEPTIONSFLAG_5 = -fno-exceptions
115 endif
116 ifeq ($(USE_EXCEPTIONS),1)
117 __EXCEPTIONSFLAG_5 =
118 endif
119 ifeq ($(USE_GUI),1)
120 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
121 endif
122 ifeq ($(USE_GUI),1)
123 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
124 endif
125 ifeq ($(USE_GUI),1)
126 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
127 endif
128 ifeq ($(BUILD),debug)
129 __OPTIMIZEFLAG_2 = -O0
130 endif
131 ifeq ($(BUILD),release)
132 __OPTIMIZEFLAG_2 = -O2
133 endif
134 ifeq ($(UNICODE),1)
135 __UNICODE_DEFINE_p = -D_UNICODE
136 endif
137 ifeq ($(UNICODE),1)
138 __UNICODE_DEFINE_p_1 = --define _UNICODE
139 endif
140 ifeq ($(MSLU),1)
141 __UNICOWS_LIB_p = -lunicows
142 endif
143 ifeq ($(MONOLITHIC),0)
144 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
145 endif
146 ifeq ($(MONOLITHIC),0)
147 __WXLIB_CORE_p = \
148 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
149 endif
150 ifeq ($(MONOLITHIC),0)
151 __WXLIB_HTML_p = \
152 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
153 endif
154 ifeq ($(MONOLITHIC),1)
155 __WXLIB_MONO_p = \
156 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
157 endif
158 ifeq ($(WXUNIV),1)
159 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160 endif
161 ifeq ($(WXUNIV),1)
162 __WXUNIV_DEFINE_p_1 = --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)\forty.exe
173
174 $(OBJS)\forty_canvas.o: ./canvas.cpp
175 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
176
177 $(OBJS)\forty_card.o: ./card.cpp
178 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
179
180 $(OBJS)\forty_forty.o: ./forty.cpp
181 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
182
183 $(OBJS)\forty_forty_rc.o: ./forty.rc
184 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
185
186 $(OBJS)\forty_game.o: ./game.cpp
187 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
188
189 $(OBJS)\forty_pile.o: ./pile.cpp
190 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
191
192 $(OBJS)\forty_playerdg.o: ./playerdg.cpp
193 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
194
195 $(OBJS)\forty_scoredg.o: ./scoredg.cpp
196 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
197
198 $(OBJS)\forty_scorefil.o: ./scorefil.cpp
199 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
200
201 clean:
202 -if exist $(OBJS)\*.o del $(OBJS)\*.o
203 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
204
205 $(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty_rc.o
206 $(CXX) -o $@ $(FORTY_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_HTML_p) $(__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 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
207
208 .PHONY: all clean