]>
Commit | Line | Data |
---|---|---|
2d611b5c VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
b14abf14 | 3 | # Bakefile 0.1.6 (http://bakefile.sourceforge.net) |
2d611b5c VS |
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 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
2d611b5c VS |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = .\..\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
34f7e40f JS |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 21 | STUDIO_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ |
2d611b5c | 22 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
b14abf14 | 23 | $(__UNICODE_DEFINE_p) -I.\..\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \ |
c33fae85 | 24 | $(__DLLFLAG_p) -I.\..\..\..\..\samples -DNOPCH -I.\..\..\..\include \ |
b14abf14 JS |
25 | $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy \ |
26 | $(CPPFLAGS) $(CXXFLAGS) | |
34f7e40f JS |
27 | STUDIO_OBJECTS = \ |
28 | $(OBJS)\studio_studio.o \ | |
29 | $(OBJS)\studio_doc.o \ | |
30 | $(OBJS)\studio_shapes.o \ | |
31 | $(OBJS)\studio_symbols.o \ | |
32 | $(OBJS)\studio_view.o \ | |
33 | $(OBJS)\studio_cspalette.o \ | |
34 | $(OBJS)\studio_mainfrm.o \ | |
35 | $(OBJS)\studio_project.o \ | |
36 | $(OBJS)\studio_dialogs.o \ | |
37 | $(OBJS)\studio_csprint.o \ | |
38 | $(OBJS)\studio_studio_rc.o | |
2d611b5c VS |
39 | |
40 | ### Conditionally set variables: ### | |
41 | ||
42 | ifeq ($(GCC_VERSION),2.95) | |
43 | GCCFLAGS = -fvtable-thunks | |
44 | endif | |
45 | ifeq ($(USE_GUI),0) | |
46 | PORTNAME = base | |
47 | endif | |
48 | ifeq ($(USE_GUI),1) | |
49 | PORTNAME = msw | |
50 | endif | |
51 | ifeq ($(BUILD),debug) | |
52 | ifeq ($(DEBUG_FLAG),default) | |
53 | WXDEBUGFLAG = d | |
54 | endif | |
55 | endif | |
56 | ifeq ($(DEBUG_FLAG),1) | |
57 | WXDEBUGFLAG = d | |
58 | endif | |
2d611b5c VS |
59 | ifeq ($(UNICODE),1) |
60 | WXUNICODEFLAG = u | |
61 | endif | |
62 | ifeq ($(WXUNIV),1) | |
63 | WXUNIVNAME = univ | |
64 | endif | |
b17c1746 DE |
65 | ifeq ($(SHARED),1) |
66 | WXDLLFLAG = dll | |
2d611b5c | 67 | endif |
b14abf14 JS |
68 | ifeq ($(SHARED),0) |
69 | LIBTYPE_SUFFIX = lib | |
70 | endif | |
71 | ifeq ($(SHARED),1) | |
72 | LIBTYPE_SUFFIX = dll | |
73 | endif | |
dd65d8c8 RN |
74 | ifeq ($(MONOLITHIC),0) |
75 | EXTRALIBS_FOR_BASE = | |
76 | endif | |
77 | ifeq ($(MONOLITHIC),1) | |
78 | EXTRALIBS_FOR_BASE = | |
79 | endif | |
b17c1746 DE |
80 | ifeq ($(BUILD),debug) |
81 | __OPTIMIZEFLAG_2 = -O0 | |
2d611b5c VS |
82 | endif |
83 | ifeq ($(BUILD),release) | |
b17c1746 | 84 | __OPTIMIZEFLAG_2 = -O2 |
2d611b5c | 85 | endif |
b17c1746 DE |
86 | ifeq ($(USE_EXCEPTIONS),0) |
87 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
2d611b5c | 88 | endif |
b17c1746 DE |
89 | ifeq ($(USE_EXCEPTIONS),1) |
90 | __EXCEPTIONSFLAG_4 = | |
2d611b5c | 91 | endif |
b17c1746 DE |
92 | ifeq ($(USE_EXCEPTIONS),0) |
93 | __EXCEPTIONSFLAG_5 = -fno-exceptions | |
94 | endif | |
95 | ifeq ($(USE_EXCEPTIONS),1) | |
96 | __EXCEPTIONSFLAG_5 = | |
97 | endif | |
98 | ifeq ($(WXUNIV),1) | |
99 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
100 | endif | |
101 | ifeq ($(WXUNIV),1) | |
102 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
2d611b5c VS |
103 | endif |
104 | ifeq ($(BUILD),debug) | |
105 | ifeq ($(DEBUG_FLAG),default) | |
106 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
107 | endif | |
108 | endif | |
109 | ifeq ($(DEBUG_FLAG),1) | |
110 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
111 | endif | |
112 | ifeq ($(BUILD),debug) | |
113 | ifeq ($(DEBUG_FLAG),default) | |
114 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
115 | endif | |
116 | endif | |
117 | ifeq ($(DEBUG_FLAG),1) | |
118 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
119 | endif | |
b17c1746 DE |
120 | ifeq ($(UNICODE),1) |
121 | __UNICODE_DEFINE_p = -D_UNICODE | |
122 | endif | |
123 | ifeq ($(UNICODE),1) | |
124 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
125 | endif | |
2d611b5c VS |
126 | ifeq ($(SHARED),1) |
127 | __DLLFLAG_p = -DWXUSINGDLL | |
128 | endif | |
129 | ifeq ($(SHARED),1) | |
130 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
131 | endif | |
b17c1746 DE |
132 | ifeq ($(MONOLITHIC),0) |
133 | __WXLIB_ADV_p = \ | |
c33fae85 | 134 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv |
a4ad36cd | 135 | endif |
b17c1746 DE |
136 | ifeq ($(MONOLITHIC),0) |
137 | __WXLIB_HTML_p = \ | |
c33fae85 | 138 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html |
a4ad36cd | 139 | endif |
b17c1746 DE |
140 | ifeq ($(MONOLITHIC),0) |
141 | __WXLIB_CORE_p = \ | |
c33fae85 | 142 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
a4ad36cd | 143 | endif |
b17c1746 | 144 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
145 | __WXLIB_BASE_p = \ |
146 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
2d611b5c | 147 | endif |
b17c1746 DE |
148 | ifeq ($(MONOLITHIC),1) |
149 | __WXLIB_MONO_p = \ | |
c33fae85 | 150 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
2d611b5c VS |
151 | endif |
152 | ifeq ($(USE_GUI),1) | |
9c2d002b | 153 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
2d611b5c | 154 | endif |
b17c1746 | 155 | ifeq ($(USE_GUI),1) |
9c2d002b | 156 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
2d611b5c | 157 | endif |
b17c1746 | 158 | ifeq ($(USE_GUI),1) |
9c2d002b | 159 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
2d611b5c | 160 | endif |
19c35fa5 VS |
161 | ifeq ($(MSLU),1) |
162 | __UNICOWS_LIB_p = -lunicows | |
163 | endif | |
b17c1746 DE |
164 | ifeq ($(BUILD),debug) |
165 | ifeq ($(DEBUG_INFO),default) | |
166 | __DEBUGINFO = -g | |
2d611b5c | 167 | endif |
ec08d395 | 168 | endif |
b17c1746 DE |
169 | ifeq ($(BUILD),release) |
170 | ifeq ($(DEBUG_INFO),default) | |
171 | __DEBUGINFO = | |
2d611b5c | 172 | endif |
2d611b5c | 173 | endif |
b17c1746 DE |
174 | ifeq ($(DEBUG_INFO),0) |
175 | __DEBUGINFO = | |
176 | endif | |
177 | ifeq ($(DEBUG_INFO),1) | |
178 | __DEBUGINFO = -g | |
2d611b5c VS |
179 | endif |
180 | ||
2d611b5c VS |
181 | |
182 | all: $(OBJS) | |
183 | $(OBJS): | |
184 | -if not exist $(OBJS) mkdir $(OBJS) | |
185 | ||
186 | ### Targets: ### | |
187 | ||
34f7e40f | 188 | all: $(OBJS)\studio.exe data |
2d611b5c | 189 | |
b17c1746 DE |
190 | clean: |
191 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
192 | -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe | |
2d611b5c | 193 | |
b17c1746 | 194 | $(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio_rc.o |
b14abf14 | 195 | $(CXX) -o $@ $(STUDIO_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__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 |
2d611b5c | 196 | |
b17c1746 DE |
197 | data: |
198 | if not exist $(OBJS) mkdir $(OBJS) | |
199 | for %%f in (studio_resources.wxr) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
200 | ||
201 | $(OBJS)\studio_studio.o: ./studio.cpp | |
34f7e40f | 202 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $< |
2d611b5c | 203 | |
1c3a6972 | 204 | $(OBJS)\studio_doc.o: ./doc.cpp |
34f7e40f | 205 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $< |
2d611b5c | 206 | |
b17c1746 | 207 | $(OBJS)\studio_shapes.o: ./shapes.cpp |
34f7e40f | 208 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $< |
2d611b5c | 209 | |
b17c1746 | 210 | $(OBJS)\studio_symbols.o: ./symbols.cpp |
34f7e40f | 211 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $< |
2d611b5c | 212 | |
b17c1746 | 213 | $(OBJS)\studio_view.o: ./view.cpp |
34f7e40f | 214 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $< |
2d611b5c | 215 | |
b17c1746 | 216 | $(OBJS)\studio_cspalette.o: ./cspalette.cpp |
34f7e40f | 217 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $< |
2d611b5c | 218 | |
b17c1746 | 219 | $(OBJS)\studio_mainfrm.o: ./mainfrm.cpp |
34f7e40f | 220 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $< |
2d611b5c | 221 | |
b17c1746 | 222 | $(OBJS)\studio_project.o: ./project.cpp |
34f7e40f | 223 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $< |
2d611b5c | 224 | |
b17c1746 DE |
225 | $(OBJS)\studio_dialogs.o: ./dialogs.cpp |
226 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $< | |
2d611b5c | 227 | |
b17c1746 DE |
228 | $(OBJS)\studio_csprint.o: ./csprint.cpp |
229 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $< | |
2d611b5c | 230 | |
b17c1746 | 231 | $(OBJS)\studio_studio_rc.o: ./studio.rc |
b14abf14 | 232 | 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 --define NOPCH --include-dir ./../../../include |
2d611b5c VS |
233 | |
234 | .PHONY: all clean data | |
b14abf14 | 235 |