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