]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
250700e4 RD |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../../build/msw/config.gcc |
250700e4 RD |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
3f55f5b8 VS |
15 | GIZMOSDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
16 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
75a0a7b7 | 17 | $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \ |
ec08d395 | 18 | -Wall -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \ |
3f55f5b8 VS |
19 | $(CXXFLAGS) |
20 | GIZMOSDLL_OBJECTS = \ | |
21 | $(OBJS)\gizmosdll_dummy.o \ | |
22 | $(OBJS)\gizmosdll_dynamicsash.o \ | |
23 | $(OBJS)\gizmosdll_editlbox.o \ | |
24 | $(OBJS)\gizmosdll_ledctrl.o \ | |
25 | $(OBJS)\gizmosdll_multicell.o \ | |
26 | $(OBJS)\gizmosdll_splittree.o \ | |
27 | $(OBJS)\gizmosdll_statpict.o | |
28 | GIZMOSLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
29 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
75a0a7b7 | 30 | $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \ |
ec08d395 | 31 | -Wall -I..\..\src\gizmos\..\..\include $(CXXFLAGS) |
3f55f5b8 VS |
32 | GIZMOSLIB_OBJECTS = \ |
33 | $(OBJS)\gizmoslib_dummy.o \ | |
34 | $(OBJS)\gizmoslib_dynamicsash.o \ | |
35 | $(OBJS)\gizmoslib_editlbox.o \ | |
36 | $(OBJS)\gizmoslib_ledctrl.o \ | |
37 | $(OBJS)\gizmoslib_multicell.o \ | |
38 | $(OBJS)\gizmoslib_splittree.o \ | |
39 | $(OBJS)\gizmoslib_statpict.o | |
3f55f5b8 VS |
40 | OBJS = \ |
41 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
75a0a7b7 VS |
42 | SETUPHDIR = \ |
43 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
250700e4 RD |
44 | |
45 | ### Conditionally set variables: ### | |
46 | ||
47 | ifeq ($(GCC_VERSION),2.95) | |
48 | GCCFLAGS = -fvtable-thunks | |
49 | endif | |
75a0a7b7 VS |
50 | ifeq ($(SHARED),0) |
51 | LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_lib$(CFG) | |
52 | endif | |
53 | ifeq ($(SHARED),1) | |
54 | LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_dll$(CFG) | |
55 | endif | |
250700e4 RD |
56 | ifeq ($(USE_GUI),0) |
57 | PORTNAME = base | |
58 | endif | |
59 | ifeq ($(USE_GUI),1) | |
60 | PORTNAME = msw | |
61 | endif | |
62 | ifeq ($(OFFICIAL_BUILD),0) | |
63 | VENDORTAG = _$(VENDOR) | |
64 | endif | |
65 | ifeq ($(OFFICIAL_BUILD),1) | |
66 | VENDORTAG = | |
67 | endif | |
68 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
69 | ifeq ($(DEBUG_FLAG),default) |
70 | WXDEBUGFLAG = d | |
71 | endif | |
72 | endif | |
73 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
74 | WXDEBUGFLAG = d |
75 | endif | |
76 | ifeq ($(SHARED),1) | |
77 | WXDLLFLAG = dll | |
78 | endif | |
79 | ifeq ($(UNICODE),1) | |
80 | WXUNICODEFLAG = u | |
81 | endif | |
82 | ifeq ($(WXUNIV),1) | |
83 | WXUNIVNAME = univ | |
84 | endif | |
85 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
86 | ifeq ($(DEBUG_INFO),default) |
87 | __DEBUGINFO = -g | |
88 | endif | |
250700e4 RD |
89 | endif |
90 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
91 | ifeq ($(DEBUG_INFO),default) |
92 | __DEBUGINFO = | |
93 | endif | |
94 | endif | |
95 | ifeq ($(DEBUG_INFO),0) | |
96 | __DEBUGINFO = | |
97 | endif | |
98 | ifeq ($(DEBUG_INFO),1) | |
99 | __DEBUGINFO = -g | |
250700e4 RD |
100 | endif |
101 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
102 | ifeq ($(DEBUG_FLAG),default) |
103 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
104 | endif | |
105 | endif | |
106 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
107 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
108 | endif | |
3f55f5b8 VS |
109 | ifeq ($(USE_GUI),1) |
110 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
111 | endif | |
112 | ifeq ($(USE_GUI),1) | |
113 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
114 | endif | |
115 | ifeq ($(USE_GUI),1) | |
116 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
117 | endif | |
250700e4 RD |
118 | ifeq ($(BUILD),debug) |
119 | __OPTIMIZEFLAG = -O0 | |
120 | endif | |
121 | ifeq ($(BUILD),release) | |
122 | __OPTIMIZEFLAG = -O2 | |
123 | endif | |
124 | ifeq ($(UNICODE),1) | |
ec08d395 | 125 | __UNICODE_DEFINE_p = -D_UNICODE |
250700e4 | 126 | endif |
2265a2d5 VS |
127 | ifeq ($(MSLU),1) |
128 | __UNICOWS_LIB_p = -lunicows | |
129 | endif | |
250700e4 RD |
130 | ifeq ($(MONOLITHIC),0) |
131 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
132 | endif | |
133 | ifeq ($(MONOLITHIC),0) | |
3f55f5b8 VS |
134 | __WXLIB_CORE_p = \ |
135 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
250700e4 RD |
136 | endif |
137 | ifeq ($(MONOLITHIC),1) | |
3f55f5b8 VS |
138 | __WXLIB_MONO_p = \ |
139 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
250700e4 RD |
140 | endif |
141 | ifeq ($(WXUNIV),1) | |
142 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
143 | endif | |
144 | ifeq ($(SHARED),1) | |
3f55f5b8 | 145 | __gizmosdll___depname = \ |
ec08d395 | 146 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll |
250700e4 RD |
147 | endif |
148 | ifeq ($(SHARED),0) | |
3f55f5b8 VS |
149 | __gizmoslib___depname = \ |
150 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a | |
250700e4 RD |
151 | endif |
152 | ||
153 | ||
154 | all: $(OBJS) | |
155 | $(OBJS): | |
156 | -if not exist $(OBJS) mkdir $(OBJS) | |
157 | ||
158 | ### Targets: ### | |
159 | ||
160 | all: $(__gizmosdll___depname) $(__gizmoslib___depname) | |
161 | ||
1c3a6972 | 162 | $(OBJS)\gizmosdll_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp |
250700e4 RD |
163 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
164 | ||
1c3a6972 | 165 | $(OBJS)\gizmosdll_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp |
250700e4 RD |
166 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
167 | ||
1c3a6972 | 168 | $(OBJS)\gizmosdll_editlbox.o: ../../src/gizmos/editlbox.cpp |
250700e4 RD |
169 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
170 | ||
1c3a6972 | 171 | $(OBJS)\gizmosdll_ledctrl.o: ../../src/gizmos/ledctrl.cpp |
250700e4 RD |
172 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
173 | ||
1c3a6972 | 174 | $(OBJS)\gizmosdll_multicell.o: ../../src/gizmos/multicell.cpp |
250700e4 RD |
175 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
176 | ||
1c3a6972 | 177 | $(OBJS)\gizmosdll_splittree.o: ../../src/gizmos/splittree.cpp |
250700e4 RD |
178 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
179 | ||
1c3a6972 | 180 | $(OBJS)\gizmosdll_statpict.o: ../../src/gizmos/statpict.cpp |
250700e4 RD |
181 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
182 | ||
1c3a6972 | 183 | $(OBJS)\gizmoslib_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp |
250700e4 RD |
184 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
185 | ||
1c3a6972 | 186 | $(OBJS)\gizmoslib_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp |
250700e4 RD |
187 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
188 | ||
1c3a6972 | 189 | $(OBJS)\gizmoslib_editlbox.o: ../../src/gizmos/editlbox.cpp |
250700e4 RD |
190 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
191 | ||
1c3a6972 | 192 | $(OBJS)\gizmoslib_ledctrl.o: ../../src/gizmos/ledctrl.cpp |
250700e4 RD |
193 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
194 | ||
1c3a6972 | 195 | $(OBJS)\gizmoslib_multicell.o: ../../src/gizmos/multicell.cpp |
250700e4 RD |
196 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
197 | ||
1c3a6972 | 198 | $(OBJS)\gizmoslib_splittree.o: ../../src/gizmos/splittree.cpp |
250700e4 RD |
199 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
200 | ||
1c3a6972 | 201 | $(OBJS)\gizmoslib_statpict.o: ../../src/gizmos/statpict.cpp |
250700e4 RD |
202 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
203 | ||
204 | clean: | |
205 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
ec08d395 | 206 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll |
3f55f5b8 VS |
207 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a |
208 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a | |
250700e4 RD |
209 | |
210 | ifeq ($(SHARED),1) | |
ec08d395 JS |
211 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS) |
212 | $(CXX) -shared -o $@ $(GIZMOSDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a $(__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 $(__WXLIB_BASE_p) $(__WXLIB_CORE_p) | |
250700e4 RD |
213 | endif |
214 | ||
215 | ifeq ($(SHARED),0) | |
3f55f5b8 | 216 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a: $(GIZMOSLIB_OBJECTS) |
250700e4 | 217 | if exist $@ del $@ |
3f55f5b8 | 218 | ar rcu $@ $(GIZMOSLIB_OBJECTS) |
250700e4 RD |
219 | ranlib $@ |
220 | endif | |
221 | ||
222 | .PHONY: all clean |