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