]>
Commit | Line | Data |
---|---|---|
f3ac19c2 WS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
b14abf14 | 3 | # Bakefile 0.1.6 (http://bakefile.sourceforge.net) |
f3ac19c2 WS |
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 |
b14abf14 | 16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4 |
f3ac19c2 WS |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 19 | LIBDIRNAME = ..\..\src\foldbar\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
f3ac19c2 WS |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
22 | FOLDBARDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
23 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
24 | $(__UNICODE_DEFINE_p) -I..\..\src\foldbar\..\..\..\include -I$(SETUPHDIR) \ | |
b14abf14 JS |
25 | -W -Wall -I..\..\src\foldbar\..\..\include -DWXUSINGDLL \ |
26 | -DWXMAKINGDLL_FOLDBAR $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \ | |
27 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
f3ac19c2 WS |
28 | FOLDBARDLL_OBJECTS = \ |
29 | $(OBJS)\foldbardll_dummy.o \ | |
30 | $(OBJS)\foldbardll_captionbar.o \ | |
31 | $(OBJS)\foldbardll_foldpanelbar.o \ | |
32 | $(OBJS)\foldbardll_foldpanelitem.o | |
33 | FOLDBARLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
34 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
35 | $(__UNICODE_DEFINE_p) -I..\..\src\foldbar\..\..\..\include -I$(SETUPHDIR) \ | |
b14abf14 JS |
36 | -W -Wall -I..\..\src\foldbar\..\..\include $(__EXCEPTIONSFLAG) \ |
37 | $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
f3ac19c2 WS |
38 | FOLDBARLIB_OBJECTS = \ |
39 | $(OBJS)\foldbarlib_dummy.o \ | |
40 | $(OBJS)\foldbarlib_captionbar.o \ | |
41 | $(OBJS)\foldbarlib_foldpanelbar.o \ | |
42 | $(OBJS)\foldbarlib_foldpanelitem.o | |
43 | ||
44 | ### Conditionally set variables: ### | |
45 | ||
46 | ifeq ($(GCC_VERSION),2.95) | |
47 | GCCFLAGS = -fvtable-thunks | |
48 | endif | |
49 | ifeq ($(USE_GUI),0) | |
50 | PORTNAME = base | |
51 | endif | |
52 | ifeq ($(USE_GUI),1) | |
53 | PORTNAME = msw | |
54 | endif | |
55 | ifeq ($(OFFICIAL_BUILD),0) | |
56 | VENDORTAG = _$(VENDOR) | |
57 | endif | |
58 | ifeq ($(OFFICIAL_BUILD),1) | |
59 | VENDORTAG = | |
60 | endif | |
61 | ifeq ($(BUILD),debug) | |
62 | ifeq ($(DEBUG_FLAG),default) | |
63 | WXDEBUGFLAG = d | |
64 | endif | |
65 | endif | |
66 | ifeq ($(DEBUG_FLAG),1) | |
67 | WXDEBUGFLAG = d | |
68 | endif | |
69 | ifeq ($(UNICODE),1) | |
70 | WXUNICODEFLAG = u | |
71 | endif | |
72 | ifeq ($(WXUNIV),1) | |
73 | WXUNIVNAME = univ | |
74 | endif | |
75 | ifeq ($(SHARED),1) | |
76 | WXDLLFLAG = dll | |
77 | endif | |
b14abf14 JS |
78 | ifeq ($(SHARED),0) |
79 | LIBTYPE_SUFFIX = lib | |
80 | endif | |
81 | ifeq ($(SHARED),1) | |
82 | LIBTYPE_SUFFIX = dll | |
83 | endif | |
dd65d8c8 RN |
84 | ifeq ($(MONOLITHIC),0) |
85 | EXTRALIBS_FOR_BASE = | |
86 | endif | |
87 | ifeq ($(MONOLITHIC),1) | |
88 | EXTRALIBS_FOR_BASE = | |
89 | endif | |
f3ac19c2 WS |
90 | ifeq ($(SHARED),1) |
91 | __foldbardll___depname = \ | |
c33fae85 | 92 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll |
f3ac19c2 WS |
93 | endif |
94 | ifeq ($(MONOLITHIC),1) | |
95 | __WXLIB_MONO_p = \ | |
c33fae85 | 96 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
f3ac19c2 WS |
97 | endif |
98 | ifeq ($(USE_GUI),1) | |
9c2d002b | 99 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
f3ac19c2 WS |
100 | endif |
101 | ifeq ($(USE_GUI),1) | |
9c2d002b | 102 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
f3ac19c2 WS |
103 | endif |
104 | ifeq ($(USE_GUI),1) | |
9c2d002b | 105 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
f3ac19c2 WS |
106 | endif |
107 | ifeq ($(MSLU),1) | |
108 | __UNICOWS_LIB_p = -lunicows | |
109 | endif | |
110 | ifeq ($(MONOLITHIC),0) | |
111 | __WXLIB_CORE_p = \ | |
c33fae85 | 112 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
f3ac19c2 WS |
113 | endif |
114 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
115 | __WXLIB_BASE_p = \ |
116 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
f3ac19c2 WS |
117 | endif |
118 | ifeq ($(SHARED),0) | |
119 | __foldbarlib___depname = \ | |
c33fae85 | 120 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a |
f3ac19c2 WS |
121 | endif |
122 | ifeq ($(BUILD),debug) | |
123 | ifeq ($(DEBUG_INFO),default) | |
124 | __DEBUGINFO = -g | |
125 | endif | |
126 | endif | |
127 | ifeq ($(BUILD),release) | |
128 | ifeq ($(DEBUG_INFO),default) | |
129 | __DEBUGINFO = | |
130 | endif | |
131 | endif | |
132 | ifeq ($(DEBUG_INFO),0) | |
133 | __DEBUGINFO = | |
134 | endif | |
135 | ifeq ($(DEBUG_INFO),1) | |
136 | __DEBUGINFO = -g | |
137 | endif | |
138 | ifeq ($(BUILD),debug) | |
139 | __OPTIMIZEFLAG = -O0 | |
140 | endif | |
141 | ifeq ($(BUILD),release) | |
142 | __OPTIMIZEFLAG = -O2 | |
143 | endif | |
144 | ifeq ($(USE_EXCEPTIONS),0) | |
145 | __EXCEPTIONSFLAG = -fno-rtti | |
146 | endif | |
147 | ifeq ($(USE_EXCEPTIONS),1) | |
148 | __EXCEPTIONSFLAG = | |
149 | endif | |
150 | ifeq ($(USE_EXCEPTIONS),0) | |
151 | __EXCEPTIONSFLAG_0 = -fno-exceptions | |
152 | endif | |
153 | ifeq ($(USE_EXCEPTIONS),1) | |
154 | __EXCEPTIONSFLAG_0 = | |
155 | endif | |
156 | ifeq ($(WXUNIV),1) | |
157 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
158 | endif | |
159 | ifeq ($(BUILD),debug) | |
160 | ifeq ($(DEBUG_FLAG),default) | |
161 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
162 | endif | |
163 | endif | |
164 | ifeq ($(DEBUG_FLAG),1) | |
165 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
166 | endif | |
167 | ifeq ($(UNICODE),1) | |
168 | __UNICODE_DEFINE_p = -D_UNICODE | |
169 | endif | |
f3ac19c2 WS |
170 | |
171 | ||
172 | all: $(OBJS) | |
173 | $(OBJS): | |
174 | -if not exist $(OBJS) mkdir $(OBJS) | |
175 | ||
176 | ### Targets: ### | |
177 | ||
178 | all: $(__foldbardll___depname) $(__foldbarlib___depname) | |
179 | ||
180 | clean: | |
181 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
c33fae85 RN |
182 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll |
183 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a | |
184 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a | |
f3ac19c2 WS |
185 | |
186 | ifeq ($(SHARED),1) | |
c33fae85 | 187 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll: $(FOLDBARDLL_OBJECTS) |
b14abf14 | 188 | $(CXX) -shared -fPIC -o $@ $(FOLDBARDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a $(__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 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) |
f3ac19c2 WS |
189 | endif |
190 | ||
191 | ifeq ($(SHARED),0) | |
c33fae85 | 192 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a: $(FOLDBARLIB_OBJECTS) |
f3ac19c2 WS |
193 | if exist $@ del $@ |
194 | ar rcu $@ $(FOLDBARLIB_OBJECTS) | |
195 | ranlib $@ | |
196 | endif | |
197 | ||
198 | $(OBJS)\foldbardll_dummy.o: ../../src/foldbar/../../../src/msw/dummy.cpp | |
199 | $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $< | |
200 | ||
201 | $(OBJS)\foldbardll_captionbar.o: ../../src/foldbar/captionbar.cpp | |
202 | $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $< | |
203 | ||
204 | $(OBJS)\foldbardll_foldpanelbar.o: ../../src/foldbar/foldpanelbar.cpp | |
205 | $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $< | |
206 | ||
207 | $(OBJS)\foldbardll_foldpanelitem.o: ../../src/foldbar/foldpanelitem.cpp | |
208 | $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $< | |
209 | ||
210 | $(OBJS)\foldbarlib_dummy.o: ../../src/foldbar/../../../src/msw/dummy.cpp | |
211 | $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $< | |
212 | ||
213 | $(OBJS)\foldbarlib_captionbar.o: ../../src/foldbar/captionbar.cpp | |
214 | $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $< | |
215 | ||
216 | $(OBJS)\foldbarlib_foldpanelbar.o: ../../src/foldbar/foldpanelbar.cpp | |
217 | $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $< | |
218 | ||
219 | $(OBJS)\foldbarlib_foldpanelitem.o: ../../src/foldbar/foldpanelitem.cpp | |
220 | $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $< | |
221 | ||
222 | .PHONY: all clean | |
b14abf14 | 223 |