]> git.saurik.com Git - wxWidgets.git/blob - utils/HelpGen/src/makefile.gcc
minor updates
[wxWidgets.git] / utils / HelpGen / src / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.2 (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 OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 HELPGEN_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
22 $(__DLLFLAG_p) $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) \
23 $(CXXFLAGS)
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 \
32 $(OBJS)\HelpGen_srcparser.o
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
53 ifeq ($(UNICODE),1)
54 WXUNICODEFLAG = u
55 endif
56 ifeq ($(WXUNIV),1)
57 WXUNIVNAME = univ
58 endif
59 ifeq ($(SHARED),1)
60 WXDLLFLAG = dll
61 endif
62 ifeq ($(BUILD),debug)
63 __OPTIMIZEFLAG_2 = -O0
64 endif
65 ifeq ($(BUILD),release)
66 __OPTIMIZEFLAG_2 = -O2
67 endif
68 ifeq ($(USE_EXCEPTIONS),0)
69 __EXCEPTIONSFLAG_4 = -fno-rtti
70 endif
71 ifeq ($(USE_EXCEPTIONS),1)
72 __EXCEPTIONSFLAG_4 =
73 endif
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__
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
91 ifeq ($(UNICODE),1)
92 __UNICODE_DEFINE_p = -D_UNICODE
93 endif
94 ifeq ($(SHARED),1)
95 __DLLFLAG_p = -DWXUSINGDLL
96 endif
97 ifeq ($(MONOLITHIC),0)
98 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
99 endif
100 ifeq ($(MONOLITHIC),1)
101 __WXLIB_MONO_p = \
102 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
103 endif
104 ifeq ($(USE_GUI),1)
105 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
106 endif
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
113 ifeq ($(MSLU),1)
114 __UNICOWS_LIB_p = -lunicows
115 endif
116 ifeq ($(SHARED),0)
117 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
118 endif
119 ifeq ($(SHARED),1)
120 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
121 endif
122 ifeq ($(BUILD),debug)
123 ifeq ($(DEBUG_INFO),default)
124 __DEBUGINFO = -g
125 endif
126 endif
127 ifeq ($(BUILD),release)
128 ifeq ($(DEBUG_INFO),default)
129 __DEBUGINFO =
130 endif
131 endif
132 ifeq ($(DEBUG_INFO),0)
133 __DEBUGINFO =
134 endif
135 ifeq ($(DEBUG_INFO),1)
136 __DEBUGINFO = -g
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
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)
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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
154
155 $(OBJS)\HelpGen_HelpGen.o: ./HelpGen.cpp
156 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
157
158 $(OBJS)\HelpGen_cjparser.o: ./cjparser.cpp
159 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
160
161 $(OBJS)\HelpGen_docripper.o: ./docripper.cpp
162 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
163
164 $(OBJS)\HelpGen_ifcontext.o: ./ifcontext.cpp
165 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
166
167 $(OBJS)\HelpGen_markup.o: ./markup.cpp
168 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
169
170 $(OBJS)\HelpGen_scriptbinder.o: ./scriptbinder.cpp
171 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
172
173 $(OBJS)\HelpGen_sourcepainter.o: ./sourcepainter.cpp
174 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
175
176 $(OBJS)\HelpGen_srcparser.o: ./srcparser.cpp
177 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
178
179 .PHONY: all clean