]>
Commit | Line | Data |
---|---|---|
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 | OBJS = \ | |
16 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
17 | OGLEDIT_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ | |
18 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
19 | $(__UNICODE_DEFINE_p) -I.\..\..\..\..\include -I$(SETUPHDIR) -I. \ | |
20 | $(__DLLFLAG_p) -I.\..\..\..\..\samples -I.\..\..\..\include $(CXXFLAGS) | |
21 | OGLEDIT_OBJECTS = \ | |
22 | $(OBJS)\ogledit_studio.o \ | |
23 | $(OBJS)\ogledit_doc.o \ | |
24 | $(OBJS)\ogledit_shapes.o \ | |
25 | $(OBJS)\ogledit_symbols.o \ | |
26 | $(OBJS)\ogledit_view.o \ | |
27 | $(OBJS)\ogledit_cspalette.o \ | |
28 | $(OBJS)\ogledit_mainfrm.o \ | |
29 | $(OBJS)\ogledit_project.o \ | |
30 | $(OBJS)\ogledit_dialogs.o \ | |
31 | $(OBJS)\ogledit_csprint.o \ | |
32 | $(OBJS)\ogledit_studio_rc.o | |
33 | SETUPHDIR = \ | |
34 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
35 | ||
36 | ### Conditionally set variables: ### | |
37 | ||
38 | ifeq ($(GCC_VERSION),2.95) | |
39 | GCCFLAGS = -fvtable-thunks | |
40 | endif | |
41 | ifeq ($(SHARED),0) | |
42 | LIBDIRNAME = .\..\..\..\..\lib\gcc_lib$(CFG) | |
43 | endif | |
44 | ifeq ($(SHARED),1) | |
45 | LIBDIRNAME = .\..\..\..\..\lib\gcc_dll$(CFG) | |
46 | endif | |
47 | ifeq ($(USE_GUI),0) | |
48 | PORTNAME = base | |
49 | endif | |
50 | ifeq ($(USE_GUI),1) | |
51 | PORTNAME = msw | |
52 | endif | |
53 | ifeq ($(BUILD),debug) | |
54 | ifeq ($(DEBUG_FLAG),default) | |
55 | WXDEBUGFLAG = d | |
56 | endif | |
57 | endif | |
58 | ifeq ($(DEBUG_FLAG),1) | |
59 | WXDEBUGFLAG = d | |
60 | endif | |
61 | ifeq ($(SHARED),1) | |
62 | WXDLLFLAG = dll | |
63 | endif | |
64 | ifeq ($(UNICODE),1) | |
65 | WXUNICODEFLAG = u | |
66 | endif | |
67 | ifeq ($(WXUNIV),1) | |
68 | WXUNIVNAME = univ | |
69 | endif | |
70 | ifeq ($(BUILD),debug) | |
71 | ifeq ($(DEBUG_INFO),default) | |
72 | __DEBUGINFO = -g | |
73 | endif | |
74 | endif | |
75 | ifeq ($(BUILD),release) | |
76 | ifeq ($(DEBUG_INFO),default) | |
77 | __DEBUGINFO = | |
78 | endif | |
79 | endif | |
80 | ifeq ($(DEBUG_INFO),0) | |
81 | __DEBUGINFO = | |
82 | endif | |
83 | ifeq ($(DEBUG_INFO),1) | |
84 | __DEBUGINFO = -g | |
85 | endif | |
86 | ifeq ($(BUILD),debug) | |
87 | ifeq ($(DEBUG_FLAG),default) | |
88 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
89 | endif | |
90 | endif | |
91 | ifeq ($(DEBUG_FLAG),1) | |
92 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
93 | endif | |
94 | ifeq ($(BUILD),debug) | |
95 | ifeq ($(DEBUG_FLAG),default) | |
96 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
97 | endif | |
98 | endif | |
99 | ifeq ($(DEBUG_FLAG),1) | |
100 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
101 | endif | |
102 | ifeq ($(SHARED),1) | |
103 | __DLLFLAG_p = -DWXUSINGDLL | |
104 | endif | |
105 | ifeq ($(SHARED),1) | |
106 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
107 | endif | |
108 | ifeq ($(USE_GUI),1) | |
109 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
110 | endif | |
111 | ifeq ($(USE_GUI),1) | |
112 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
113 | endif | |
114 | ifeq ($(USE_GUI),1) | |
115 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
116 | endif | |
117 | ifeq ($(BUILD),debug) | |
118 | __OPTIMIZEFLAG_2 = -O0 | |
119 | endif | |
120 | ifeq ($(BUILD),release) | |
121 | __OPTIMIZEFLAG_2 = -O2 | |
122 | endif | |
123 | ifeq ($(UNICODE),1) | |
124 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
125 | endif | |
126 | ifeq ($(UNICODE),1) | |
127 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1 | |
128 | endif | |
129 | ifeq ($(MSLU),1) | |
130 | __UNICOWS_LIB_p = -lunicows | |
131 | endif | |
132 | ifeq ($(MONOLITHIC),0) | |
133 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
134 | endif | |
135 | ifeq ($(MONOLITHIC),0) | |
136 | __WXLIB_CORE_p = \ | |
137 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
138 | endif | |
139 | ifeq ($(MONOLITHIC),1) | |
140 | __WXLIB_MONO_p = \ | |
141 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
142 | endif | |
143 | ifeq ($(WXUNIV),1) | |
144 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
145 | endif | |
146 | ifeq ($(WXUNIV),1) | |
147 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
148 | endif | |
149 | ||
150 | ||
151 | all: $(OBJS) | |
152 | $(OBJS): | |
153 | -if not exist $(OBJS) mkdir $(OBJS) | |
154 | ||
155 | ### Targets: ### | |
156 | ||
157 | all: $(OBJS)\ogledit.exe data | |
158 | ||
159 | $(OBJS)\ogledit_cspalette.o: .\cspalette.cpp | |
160 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
161 | ||
162 | $(OBJS)\ogledit_csprint.o: .\csprint.cpp | |
163 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
164 | ||
165 | $(OBJS)\ogledit_dialogs.o: .\dialogs.cpp | |
166 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
167 | ||
168 | $(OBJS)\ogledit_doc.o: .\doc.cpp | |
169 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
170 | ||
171 | $(OBJS)\ogledit_mainfrm.o: .\mainfrm.cpp | |
172 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
173 | ||
174 | $(OBJS)\ogledit_project.o: .\project.cpp | |
175 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
176 | ||
177 | $(OBJS)\ogledit_shapes.o: .\shapes.cpp | |
178 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
179 | ||
180 | $(OBJS)\ogledit_studio.o: .\studio.cpp | |
181 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
182 | ||
183 | $(OBJS)\ogledit_studio_rc.o: .\studio.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 --include-dir ./../../../include | |
185 | ||
186 | $(OBJS)\ogledit_symbols.o: .\symbols.cpp | |
187 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
188 | ||
189 | $(OBJS)\ogledit_view.o: .\view.cpp | |
190 | $(CXX) -c -o $@ $(OGLEDIT_CXXFLAGS) $< | |
191 | ||
192 | clean: | |
193 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
194 | -if exist $(OBJS)\ogledit.exe del $(OBJS)\ogledit.exe | |
195 | ||
196 | data: | |
197 | if not exist $(OBJS) mkdir $(OBJS) | |
198 | for %%f in (studio_resources.wxr) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
199 | ||
200 | $(OBJS)\ogledit.exe: $(OGLEDIT_OBJECTS) $(OBJS)\ogledit_studio_rc.o | |
201 | $(CXX) -o $@ $(OGLEDIT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl $(__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 | |
202 | ||
203 | .PHONY: all clean data |