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