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