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