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