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