]> git.saurik.com Git - wxWidgets.git/blob - utils/HelpGen/src/makefile.gcc
Allow to set the various buttons explicitly (and
[wxWidgets.git] / utils / HelpGen / src / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 25
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 HELPGEN_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
21 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
22 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
23 $(__DLLFLAG_p) $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) \
24 $(CXXFLAGS)
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 \
33 $(OBJS)\HelpGen_srcparser.o
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
54 ifeq ($(UNICODE),1)
55 WXUNICODEFLAG = u
56 endif
57 ifeq ($(WXUNIV),1)
58 WXUNIVNAME = univ
59 endif
60 ifeq ($(SHARED),1)
61 WXDLLFLAG = dll
62 endif
63 ifeq ($(MONOLITHIC),0)
64 EXTRALIBS_FOR_BASE =
65 endif
66 ifeq ($(MONOLITHIC),1)
67 EXTRALIBS_FOR_BASE =
68 endif
69 ifeq ($(BUILD),debug)
70 __OPTIMIZEFLAG_2 = -O0
71 endif
72 ifeq ($(BUILD),release)
73 __OPTIMIZEFLAG_2 = -O2
74 endif
75 ifeq ($(USE_EXCEPTIONS),0)
76 __EXCEPTIONSFLAG_4 = -fno-rtti
77 endif
78 ifeq ($(USE_EXCEPTIONS),1)
79 __EXCEPTIONSFLAG_4 =
80 endif
81 ifeq ($(USE_EXCEPTIONS),0)
82 __EXCEPTIONSFLAG_5 = -fno-exceptions
83 endif
84 ifeq ($(USE_EXCEPTIONS),1)
85 __EXCEPTIONSFLAG_5 =
86 endif
87 ifeq ($(WXUNIV),1)
88 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
89 endif
90 ifeq ($(BUILD),debug)
91 ifeq ($(DEBUG_FLAG),default)
92 __DEBUG_DEFINE_p = -D__WXDEBUG__
93 endif
94 endif
95 ifeq ($(DEBUG_FLAG),1)
96 __DEBUG_DEFINE_p = -D__WXDEBUG__
97 endif
98 ifeq ($(UNICODE),1)
99 __UNICODE_DEFINE_p = -D_UNICODE
100 endif
101 ifeq ($(SHARED),1)
102 __DLLFLAG_p = -DWXUSINGDLL
103 endif
104 ifeq ($(MONOLITHIC),0)
105 __WXLIB_BASE_p = \
106 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
107 endif
108 ifeq ($(MONOLITHIC),1)
109 __WXLIB_MONO_p = \
110 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
111 endif
112 ifeq ($(USE_GUI),1)
113 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
114 endif
115 ifeq ($(USE_GUI),1)
116 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
117 endif
118 ifeq ($(USE_GUI),1)
119 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
120 endif
121 ifeq ($(MSLU),1)
122 __UNICOWS_LIB_p = -lunicows
123 endif
124 ifeq ($(SHARED),0)
125 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
126 endif
127 ifeq ($(SHARED),1)
128 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
129 endif
130 ifeq ($(BUILD),debug)
131 ifeq ($(DEBUG_INFO),default)
132 __DEBUGINFO = -g
133 endif
134 endif
135 ifeq ($(BUILD),release)
136 ifeq ($(DEBUG_INFO),default)
137 __DEBUGINFO =
138 endif
139 endif
140 ifeq ($(DEBUG_INFO),0)
141 __DEBUGINFO =
142 endif
143 ifeq ($(DEBUG_INFO),1)
144 __DEBUGINFO = -g
145 endif
146
147
148 all: $(OBJS)
149 $(OBJS):
150 -if not exist $(OBJS) mkdir $(OBJS)
151
152 ### Targets: ###
153
154 all: $(OBJS)\HelpGen.exe
155
156 clean:
157 -if exist $(OBJS)\*.o del $(OBJS)\*.o
158 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe
159
160 $(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
161 $(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
162
163 $(OBJS)\HelpGen_HelpGen.o: ./HelpGen.cpp
164 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
165
166 $(OBJS)\HelpGen_cjparser.o: ./cjparser.cpp
167 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
168
169 $(OBJS)\HelpGen_docripper.o: ./docripper.cpp
170 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
171
172 $(OBJS)\HelpGen_ifcontext.o: ./ifcontext.cpp
173 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
174
175 $(OBJS)\HelpGen_markup.o: ./markup.cpp
176 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
177
178 $(OBJS)\HelpGen_scriptbinder.o: ./scriptbinder.cpp
179 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
180
181 $(OBJS)\HelpGen_sourcepainter.o: ./sourcepainter.cpp
182 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
183
184 $(OBJS)\HelpGen_srcparser.o: ./srcparser.cpp
185 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
186
187 .PHONY: all clean