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