]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
8c9f8f91 | 3 | # Bakefile 0.1.8 (http://bakefile.sourceforge.net) |
3b20263d VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../build/msw/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
b17c1746 DE |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
21 | HTLBOX_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \ |
22 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
23 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
24 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \ | |
25 | -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \ | |
26 | $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
25a73439 VS |
27 | HTLBOX_OBJECTS = \ |
28 | $(OBJS)\htlbox_htlbox.o \ | |
29 | $(OBJS)\htlbox_htlbox_rc.o | |
3b20263d VS |
30 | |
31 | ### Conditionally set variables: ### | |
32 | ||
250700e4 RD |
33 | ifeq ($(GCC_VERSION),2.95) |
34 | GCCFLAGS = -fvtable-thunks | |
35 | endif | |
3b20263d VS |
36 | ifeq ($(USE_GUI),0) |
37 | PORTNAME = base | |
38 | endif | |
39 | ifeq ($(USE_GUI),1) | |
40 | PORTNAME = msw | |
41 | endif | |
42 | ifeq ($(BUILD),debug) | |
25a73439 VS |
43 | ifeq ($(DEBUG_FLAG),default) |
44 | WXDEBUGFLAG = d | |
45 | endif | |
46 | endif | |
47 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
48 | WXDEBUGFLAG = d |
49 | endif | |
3b20263d VS |
50 | ifeq ($(UNICODE),1) |
51 | WXUNICODEFLAG = u | |
52 | endif | |
53 | ifeq ($(WXUNIV),1) | |
54 | WXUNIVNAME = univ | |
55 | endif | |
b17c1746 DE |
56 | ifeq ($(SHARED),1) |
57 | WXDLLFLAG = dll | |
25a73439 | 58 | endif |
b14abf14 JS |
59 | ifeq ($(SHARED),0) |
60 | LIBTYPE_SUFFIX = lib | |
61 | endif | |
62 | ifeq ($(SHARED),1) | |
63 | LIBTYPE_SUFFIX = dll | |
64 | endif | |
dd65d8c8 RN |
65 | ifeq ($(MONOLITHIC),0) |
66 | EXTRALIBS_FOR_BASE = | |
67 | endif | |
68 | ifeq ($(MONOLITHIC),1) | |
69 | EXTRALIBS_FOR_BASE = | |
70 | endif | |
b17c1746 DE |
71 | ifeq ($(BUILD),debug) |
72 | __OPTIMIZEFLAG_2 = -O0 | |
250700e4 RD |
73 | endif |
74 | ifeq ($(BUILD),release) | |
b17c1746 | 75 | __OPTIMIZEFLAG_2 = -O2 |
25a73439 | 76 | endif |
8c9f8f91 JS |
77 | ifeq ($(USE_RTTI),0) |
78 | __RTTIFLAG_5 = -fno-rtti | |
25a73439 | 79 | endif |
8c9f8f91 JS |
80 | ifeq ($(USE_RTTI),1) |
81 | __RTTIFLAG_5 = | |
25a73439 | 82 | endif |
b17c1746 | 83 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 84 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
85 | endif |
86 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 87 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
88 | endif |
89 | ifeq ($(WXUNIV),1) | |
90 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
91 | endif | |
92 | ifeq ($(WXUNIV),1) | |
93 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
250700e4 RD |
94 | endif |
95 | ifeq ($(BUILD),debug) | |
25a73439 VS |
96 | ifeq ($(DEBUG_FLAG),default) |
97 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
98 | endif | |
99 | endif | |
100 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
101 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
102 | endif | |
103 | ifeq ($(BUILD),debug) | |
25a73439 VS |
104 | ifeq ($(DEBUG_FLAG),default) |
105 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
106 | endif | |
107 | endif | |
108 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
109 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ |
110 | endif | |
8c9f8f91 JS |
111 | ifeq ($(USE_EXCEPTIONS),0) |
112 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
113 | endif | |
114 | ifeq ($(USE_EXCEPTIONS),0) | |
115 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
116 | endif | |
117 | ifeq ($(USE_RTTI),0) | |
118 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
119 | endif | |
120 | ifeq ($(USE_RTTI),0) | |
121 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
122 | endif | |
123 | ifeq ($(USE_THREADS),0) | |
124 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
125 | endif | |
126 | ifeq ($(USE_THREADS),0) | |
127 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
128 | endif | |
b17c1746 DE |
129 | ifeq ($(UNICODE),1) |
130 | __UNICODE_DEFINE_p = -D_UNICODE | |
131 | endif | |
132 | ifeq ($(UNICODE),1) | |
133 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
134 | endif | |
3b20263d VS |
135 | ifeq ($(SHARED),1) |
136 | __DLLFLAG_p = -DWXUSINGDLL | |
137 | endif | |
138 | ifeq ($(SHARED),1) | |
139 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
140 | endif | |
b17c1746 DE |
141 | ifeq ($(MONOLITHIC),0) |
142 | __WXLIB_HTML_p = \ | |
c33fae85 | 143 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html |
b71531ad | 144 | endif |
b17c1746 DE |
145 | ifeq ($(MONOLITHIC),0) |
146 | __WXLIB_CORE_p = \ | |
c33fae85 | 147 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 148 | endif |
b17c1746 | 149 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
150 | __WXLIB_BASE_p = \ |
151 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 152 | endif |
b17c1746 DE |
153 | ifeq ($(MONOLITHIC),1) |
154 | __WXLIB_MONO_p = \ | |
c33fae85 | 155 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 156 | endif |
25a73439 | 157 | ifeq ($(USE_GUI),1) |
9c2d002b | 158 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
25a73439 VS |
159 | endif |
160 | ifeq ($(USE_GUI),1) | |
9c2d002b | 161 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
25a73439 VS |
162 | endif |
163 | ifeq ($(USE_GUI),1) | |
9c2d002b | 164 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
3b20263d | 165 | endif |
4e209a20 VS |
166 | ifeq ($(MSLU),1) |
167 | __UNICOWS_LIB_p = -lunicows | |
168 | endif | |
b17c1746 DE |
169 | ifeq ($(BUILD),debug) |
170 | ifeq ($(DEBUG_INFO),default) | |
171 | __DEBUGINFO = -g | |
250700e4 | 172 | endif |
3b20263d | 173 | endif |
b17c1746 DE |
174 | ifeq ($(BUILD),release) |
175 | ifeq ($(DEBUG_INFO),default) | |
176 | __DEBUGINFO = | |
3b20263d | 177 | endif |
b17c1746 DE |
178 | endif |
179 | ifeq ($(DEBUG_INFO),0) | |
180 | __DEBUGINFO = | |
181 | endif | |
182 | ifeq ($(DEBUG_INFO),1) | |
183 | __DEBUGINFO = -g | |
3b20263d | 184 | endif |
8c9f8f91 JS |
185 | ifeq ($(USE_THREADS),0) |
186 | __THREADSFLAG = | |
187 | endif | |
188 | ifeq ($(USE_THREADS),1) | |
189 | __THREADSFLAG = -mthreads | |
190 | endif | |
3b20263d VS |
191 | |
192 | ||
193 | all: $(OBJS) | |
194 | $(OBJS): | |
195 | -if not exist $(OBJS) mkdir $(OBJS) | |
196 | ||
197 | ### Targets: ### | |
198 | ||
199 | all: $(OBJS)\htlbox.exe | |
200 | ||
3b20263d VS |
201 | clean: |
202 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
203 | -if exist $(OBJS)\htlbox.exe del $(OBJS)\htlbox.exe | |
204 | ||
25a73439 | 205 | $(OBJS)\htlbox.exe: $(HTLBOX_OBJECTS) $(OBJS)\htlbox_htlbox_rc.o |
8c9f8f91 | 206 | $(CXX) -o $@ $(HTLBOX_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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 |
3b20263d | 207 | |
b17c1746 DE |
208 | $(OBJS)\htlbox_htlbox.o: ./htlbox.cpp |
209 | $(CXX) -c -o $@ $(HTLBOX_CXXFLAGS) $< | |
210 | ||
211 | $(OBJS)\htlbox_htlbox_rc.o: ./htlbox.rc | |
8c9f8f91 | 212 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH |
b17c1746 | 213 | |
250700e4 | 214 | .PHONY: all clean |
b14abf14 | 215 | |
8c9f8f91 | 216 |