]> git.saurik.com Git - wxWidgets.git/blame - demos/forty/makefile.gcc
don't build the GUI version of tex2rtf wif --disable-gui
[wxWidgets.git] / demos / forty / makefile.gcc
CommitLineData
264af224
VS
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
fd9f42b6 7include ../../build/msw/config.gcc
264af224
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15FORTY_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395 17 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
a4ad36cd
VS
18 $(__DLLFLAG_p) -I.\..\..\samples $(CXXFLAGS) $(__EXCEPTIONSFLAG_4) \
19 $(__EXCEPTIONSFLAG_5)
264af224
VS
20FORTY_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
264af224
VS
30OBJS = \
31 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
32SETUPHDIR = \
33 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
264af224
VS
34
35### Conditionally set variables: ###
36
37ifeq ($(GCC_VERSION),2.95)
38GCCFLAGS = -fvtable-thunks
39endif
75a0a7b7
VS
40ifeq ($(SHARED),0)
41LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
42endif
43ifeq ($(SHARED),1)
44LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
45endif
264af224
VS
46ifeq ($(USE_GUI),0)
47PORTNAME = base
48endif
49ifeq ($(USE_GUI),1)
50PORTNAME = msw
51endif
52ifeq ($(BUILD),debug)
53ifeq ($(DEBUG_FLAG),default)
54WXDEBUGFLAG = d
55endif
56endif
57ifeq ($(DEBUG_FLAG),1)
58WXDEBUGFLAG = d
59endif
60ifeq ($(SHARED),1)
61WXDLLFLAG = dll
62endif
63ifeq ($(UNICODE),1)
64WXUNICODEFLAG = u
65endif
66ifeq ($(WXUNIV),1)
67WXUNIVNAME = univ
68endif
69ifeq ($(BUILD),debug)
70ifeq ($(DEBUG_INFO),default)
71__DEBUGINFO = -g
72endif
73endif
74ifeq ($(BUILD),release)
75ifeq ($(DEBUG_INFO),default)
76__DEBUGINFO =
77endif
78endif
79ifeq ($(DEBUG_INFO),0)
80__DEBUGINFO =
81endif
82ifeq ($(DEBUG_INFO),1)
83__DEBUGINFO = -g
84endif
85ifeq ($(BUILD),debug)
86ifeq ($(DEBUG_FLAG),default)
87__DEBUG_DEFINE_p = -D__WXDEBUG__
88endif
89endif
90ifeq ($(DEBUG_FLAG),1)
91__DEBUG_DEFINE_p = -D__WXDEBUG__
92endif
93ifeq ($(BUILD),debug)
94ifeq ($(DEBUG_FLAG),default)
95__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
96endif
97endif
98ifeq ($(DEBUG_FLAG),1)
99__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
100endif
101ifeq ($(SHARED),1)
102__DLLFLAG_p = -DWXUSINGDLL
103endif
104ifeq ($(SHARED),1)
105__DLLFLAG_p_1 = --define WXUSINGDLL
106endif
a4ad36cd
VS
107ifeq ($(USE_EXCEPTIONS),0)
108__EXCEPTIONSFLAG_4 = -fno-rtti
109endif
110ifeq ($(USE_EXCEPTIONS),1)
111__EXCEPTIONSFLAG_4 =
112endif
113ifeq ($(USE_EXCEPTIONS),0)
114__EXCEPTIONSFLAG_5 = -fno-exceptions
115endif
116ifeq ($(USE_EXCEPTIONS),1)
117__EXCEPTIONSFLAG_5 =
118endif
264af224
VS
119ifeq ($(USE_GUI),1)
120__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
121endif
122ifeq ($(USE_GUI),1)
123__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
124endif
125ifeq ($(USE_GUI),1)
126__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
127endif
128ifeq ($(BUILD),debug)
129__OPTIMIZEFLAG_2 = -O0
130endif
131ifeq ($(BUILD),release)
132__OPTIMIZEFLAG_2 = -O2
133endif
134ifeq ($(UNICODE),1)
ec08d395 135__UNICODE_DEFINE_p = -D_UNICODE
264af224
VS
136endif
137ifeq ($(UNICODE),1)
ec08d395 138__UNICODE_DEFINE_p_1 = --define _UNICODE
264af224 139endif
4e209a20
VS
140ifeq ($(MSLU),1)
141__UNICOWS_LIB_p = -lunicows
142endif
264af224
VS
143ifeq ($(MONOLITHIC),0)
144__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
145endif
146ifeq ($(MONOLITHIC),0)
147__WXLIB_CORE_p = \
148 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
149endif
150ifeq ($(MONOLITHIC),0)
151__WXLIB_HTML_p = \
152 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
153endif
154ifeq ($(MONOLITHIC),1)
155__WXLIB_MONO_p = \
156 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
157endif
158ifeq ($(WXUNIV),1)
159__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160endif
161ifeq ($(WXUNIV),1)
162__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
163endif
164
165
166all: $(OBJS)
167$(OBJS):
168 -if not exist $(OBJS) mkdir $(OBJS)
169
170### Targets: ###
171
172all: $(OBJS)\forty.exe
173
1c3a6972 174$(OBJS)\forty_canvas.o: ./canvas.cpp
264af224
VS
175 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
176
1c3a6972 177$(OBJS)\forty_card.o: ./card.cpp
264af224
VS
178 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
179
1c3a6972 180$(OBJS)\forty_forty.o: ./forty.cpp
264af224
VS
181 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
182
1c3a6972 183$(OBJS)\forty_forty_rc.o: ./forty.rc
ec08d395 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
264af224 185
1c3a6972 186$(OBJS)\forty_game.o: ./game.cpp
264af224
VS
187 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
188
1c3a6972 189$(OBJS)\forty_pile.o: ./pile.cpp
264af224
VS
190 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
191
1c3a6972 192$(OBJS)\forty_playerdg.o: ./playerdg.cpp
264af224
VS
193 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
194
1c3a6972 195$(OBJS)\forty_scoredg.o: ./scoredg.cpp
264af224
VS
196 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
197
1c3a6972 198$(OBJS)\forty_scorefil.o: ./scorefil.cpp
264af224
VS
199 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
200
201clean:
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
ec08d395 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
264af224
VS
207
208.PHONY: all clean