]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
8c9f8f91 | 3 | # Bakefile 0.1.8 (http://bakefile.sourceforge.net) |
3b20263d VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../build/msw/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
4818141b | 15 | WX_RELEASE_NODOT = 26 |
b17c1746 DE |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
21 | DRAGIMAG_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \ |
22 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
23 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
24 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \ | |
25 | -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \ | |
26 | $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
25a73439 VS |
27 | DRAGIMAG_OBJECTS = \ |
28 | $(OBJS)\dragimag_dragimag.o \ | |
29 | $(OBJS)\dragimag_dragimag_rc.o | |
3b20263d VS |
30 | |
31 | ### Conditionally set variables: ### | |
32 | ||
250700e4 RD |
33 | ifeq ($(GCC_VERSION),2.95) |
34 | GCCFLAGS = -fvtable-thunks | |
35 | endif | |
3b20263d VS |
36 | ifeq ($(USE_GUI),0) |
37 | PORTNAME = base | |
38 | endif | |
39 | ifeq ($(USE_GUI),1) | |
40 | PORTNAME = msw | |
41 | endif | |
42 | ifeq ($(BUILD),debug) | |
25a73439 VS |
43 | ifeq ($(DEBUG_FLAG),default) |
44 | WXDEBUGFLAG = d | |
45 | endif | |
46 | endif | |
47 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
48 | WXDEBUGFLAG = d |
49 | endif | |
3b20263d VS |
50 | ifeq ($(UNICODE),1) |
51 | WXUNICODEFLAG = u | |
52 | endif | |
53 | ifeq ($(WXUNIV),1) | |
54 | WXUNIVNAME = univ | |
55 | endif | |
b17c1746 DE |
56 | ifeq ($(SHARED),1) |
57 | WXDLLFLAG = dll | |
25a73439 | 58 | endif |
b14abf14 JS |
59 | ifeq ($(SHARED),0) |
60 | LIBTYPE_SUFFIX = lib | |
61 | endif | |
62 | ifeq ($(SHARED),1) | |
63 | LIBTYPE_SUFFIX = dll | |
64 | endif | |
dd65d8c8 RN |
65 | ifeq ($(MONOLITHIC),0) |
66 | EXTRALIBS_FOR_BASE = | |
67 | endif | |
68 | ifeq ($(MONOLITHIC),1) | |
69 | EXTRALIBS_FOR_BASE = | |
70 | endif | |
b17c1746 DE |
71 | ifeq ($(BUILD),debug) |
72 | __OPTIMIZEFLAG_2 = -O0 | |
250700e4 RD |
73 | endif |
74 | ifeq ($(BUILD),release) | |
b17c1746 | 75 | __OPTIMIZEFLAG_2 = -O2 |
25a73439 | 76 | endif |
8c9f8f91 JS |
77 | ifeq ($(USE_RTTI),0) |
78 | __RTTIFLAG_5 = -fno-rtti | |
25a73439 | 79 | endif |
8c9f8f91 JS |
80 | ifeq ($(USE_RTTI),1) |
81 | __RTTIFLAG_5 = | |
25a73439 | 82 | endif |
b17c1746 | 83 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 84 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
85 | endif |
86 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 87 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
88 | endif |
89 | ifeq ($(WXUNIV),1) | |
90 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
91 | endif | |
92 | ifeq ($(WXUNIV),1) | |
93 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
250700e4 RD |
94 | endif |
95 | ifeq ($(BUILD),debug) | |
25a73439 VS |
96 | ifeq ($(DEBUG_FLAG),default) |
97 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
98 | endif | |
99 | endif | |
100 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
101 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
102 | endif | |
103 | ifeq ($(BUILD),debug) | |
25a73439 VS |
104 | ifeq ($(DEBUG_FLAG),default) |
105 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
106 | endif | |
107 | endif | |
108 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
109 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ |
110 | endif | |
8c9f8f91 JS |
111 | ifeq ($(USE_EXCEPTIONS),0) |
112 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
113 | endif | |
114 | ifeq ($(USE_EXCEPTIONS),0) | |
115 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
116 | endif | |
117 | ifeq ($(USE_RTTI),0) | |
118 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
119 | endif | |
120 | ifeq ($(USE_RTTI),0) | |
121 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
122 | endif | |
123 | ifeq ($(USE_THREADS),0) | |
124 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
125 | endif | |
126 | ifeq ($(USE_THREADS),0) | |
127 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
128 | endif | |
b17c1746 DE |
129 | ifeq ($(UNICODE),1) |
130 | __UNICODE_DEFINE_p = -D_UNICODE | |
131 | endif | |
132 | ifeq ($(UNICODE),1) | |
133 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
134 | endif | |
3b20263d VS |
135 | ifeq ($(SHARED),1) |
136 | __DLLFLAG_p = -DWXUSINGDLL | |
137 | endif | |
138 | ifeq ($(SHARED),1) | |
139 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
140 | endif | |
b17c1746 DE |
141 | ifeq ($(MONOLITHIC),0) |
142 | __WXLIB_CORE_p = \ | |
c33fae85 | 143 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 144 | endif |
b17c1746 | 145 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
146 | __WXLIB_BASE_p = \ |
147 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 148 | endif |
b17c1746 DE |
149 | ifeq ($(MONOLITHIC),1) |
150 | __WXLIB_MONO_p = \ | |
c33fae85 | 151 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 152 | endif |
b17c1746 | 153 | ifeq ($(USE_GUI),1) |
9c2d002b | 154 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b71531ad | 155 | endif |
25a73439 | 156 | ifeq ($(USE_GUI),1) |
9c2d002b | 157 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
25a73439 VS |
158 | endif |
159 | ifeq ($(USE_GUI),1) | |
9c2d002b | 160 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
25a73439 | 161 | endif |
b17c1746 DE |
162 | ifeq ($(MSLU),1) |
163 | __UNICOWS_LIB_p = -lunicows | |
250700e4 | 164 | endif |
b17c1746 DE |
165 | ifeq ($(BUILD),debug) |
166 | ifeq ($(DEBUG_INFO),default) | |
167 | __DEBUGINFO = -g | |
4e209a20 | 168 | endif |
3b20263d | 169 | endif |
b17c1746 DE |
170 | ifeq ($(BUILD),release) |
171 | ifeq ($(DEBUG_INFO),default) | |
172 | __DEBUGINFO = | |
3b20263d | 173 | endif |
3b20263d | 174 | endif |
b17c1746 DE |
175 | ifeq ($(DEBUG_INFO),0) |
176 | __DEBUGINFO = | |
3b20263d | 177 | endif |
b17c1746 DE |
178 | ifeq ($(DEBUG_INFO),1) |
179 | __DEBUGINFO = -g | |
3b20263d | 180 | endif |
8c9f8f91 JS |
181 | ifeq ($(USE_THREADS),0) |
182 | __THREADSFLAG = | |
183 | endif | |
184 | ifeq ($(USE_THREADS),1) | |
185 | __THREADSFLAG = -mthreads | |
186 | endif | |
3b20263d VS |
187 | |
188 | ||
189 | all: $(OBJS) | |
190 | $(OBJS): | |
191 | -if not exist $(OBJS) mkdir $(OBJS) | |
192 | ||
193 | ### Targets: ### | |
194 | ||
195 | all: $(OBJS)\dragimag.exe data | |
196 | ||
3b20263d VS |
197 | clean: |
198 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
199 | -if exist $(OBJS)\dragimag.exe del $(OBJS)\dragimag.exe | |
3b20263d | 200 | |
b17c1746 | 201 | $(OBJS)\dragimag.exe: $(DRAGIMAG_OBJECTS) $(OBJS)\dragimag_dragimag_rc.o |
8c9f8f91 | 202 | $(CXX) -o $@ $(DRAGIMAG_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
b17c1746 | 203 | |
3b20263d VS |
204 | data: |
205 | if not exist $(OBJS) mkdir $(OBJS) | |
206 | for %%f in (backgrnd.png shape01.png shape02.png shape03.png) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
207 | ||
b17c1746 DE |
208 | $(OBJS)\dragimag_dragimag.o: ./dragimag.cpp |
209 | $(CXX) -c -o $@ $(DRAGIMAG_CXXFLAGS) $< | |
210 | ||
211 | $(OBJS)\dragimag_dragimag_rc.o: ./dragimag.rc | |
8c9f8f91 | 212 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH |
3b20263d | 213 | |
fd9f42b6 | 214 | .PHONY: all clean data |
b14abf14 | 215 | |
8c9f8f91 | 216 |