]> git.saurik.com Git - wxWidgets.git/blob - utils/HelpGen/makefile.gcc
unicode compilation fix
[wxWidgets.git] / utils / HelpGen / 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$(LIBDIRNAME) -I.\..\..\src\tiff \
18 -I.\..\..\src\jpeg -I.\..\..\src\png -I.\..\..\src\zlib -I.\..\..\src\regex \
19 -I.\..\..\src\expat\lib -I. $(__DLLFLAG_p) $(CXXFLAGS)
20 HELPGEN_OBJECTS = \
21 $(OBJS)\HelpGen_HelpGen.o \
22 $(OBJS)\HelpGen_cjparser.o \
23 $(OBJS)\HelpGen_docripper.o \
24 $(OBJS)\HelpGen_ifcontext.o \
25 $(OBJS)\HelpGen_markup.o \
26 $(OBJS)\HelpGen_scriptbinder.o \
27 $(OBJS)\HelpGen_sourcepainter.o \
28 $(OBJS)\HelpGen_srcparser.o \
29 $(OBJS)\HelpGen_wx_extra_imps.o
30 LIBDIRNAME = \
31 .\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
32 OBJS = \
33 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
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 ($(SHARED),1)
55 WXDLLFLAG = dll
56 endif
57 ifeq ($(UNICODE),1)
58 WXUNICODEFLAG = u
59 endif
60 ifeq ($(WXUNIV),1)
61 WXUNIVNAME = univ
62 endif
63 ifeq ($(BUILD),debug)
64 ifeq ($(DEBUG_INFO),default)
65 __DEBUGINFO = -g
66 endif
67 endif
68 ifeq ($(BUILD),release)
69 ifeq ($(DEBUG_INFO),default)
70 __DEBUGINFO =
71 endif
72 endif
73 ifeq ($(DEBUG_INFO),0)
74 __DEBUGINFO =
75 endif
76 ifeq ($(DEBUG_INFO),1)
77 __DEBUGINFO = -g
78 endif
79 ifeq ($(BUILD),debug)
80 ifeq ($(DEBUG_FLAG),default)
81 __DEBUG_DEFINE_p = -D__WXDEBUG__
82 endif
83 endif
84 ifeq ($(DEBUG_FLAG),1)
85 __DEBUG_DEFINE_p = -D__WXDEBUG__
86 endif
87 ifeq ($(SHARED),1)
88 __DLLFLAG_p = -DWXUSINGDLL
89 endif
90 ifeq ($(USE_GUI),1)
91 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
92 endif
93 ifeq ($(USE_GUI),1)
94 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
95 endif
96 ifeq ($(USE_GUI),1)
97 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
98 endif
99 ifeq ($(BUILD),debug)
100 __OPTIMIZEFLAG_2 = -O0
101 endif
102 ifeq ($(BUILD),release)
103 __OPTIMIZEFLAG_2 = -O2
104 endif
105 ifeq ($(UNICODE),1)
106 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
107 endif
108 ifeq ($(MSLU),1)
109 __UNICOWS_LIB_p = -lunicows
110 endif
111 ifeq ($(MONOLITHIC),0)
112 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
113 endif
114 ifeq ($(MONOLITHIC),1)
115 __WXLIB_MONO_p = \
116 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
117 endif
118 ifeq ($(WXUNIV),1)
119 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
120 endif
121
122
123 all: $(OBJS)
124 $(OBJS):
125 -if not exist $(OBJS) mkdir $(OBJS)
126
127 ### Targets: ###
128
129 all: $(OBJS)\HelpGen.exe
130
131 $(OBJS)\HelpGen_HelpGen.o: .\src\HelpGen.cpp
132 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
133
134 $(OBJS)\HelpGen_cjparser.o: .\src\cjparser.cpp
135 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
136
137 $(OBJS)\HelpGen_docripper.o: .\src\docripper.cpp
138 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
139
140 $(OBJS)\HelpGen_ifcontext.o: .\src\ifcontext.cpp
141 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
142
143 $(OBJS)\HelpGen_markup.o: .\src\markup.cpp
144 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
145
146 $(OBJS)\HelpGen_scriptbinder.o: .\src\scriptbinder.cpp
147 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
148
149 $(OBJS)\HelpGen_sourcepainter.o: .\src\sourcepainter.cpp
150 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
151
152 $(OBJS)\HelpGen_srcparser.o: .\src\srcparser.cpp
153 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
154
155 $(OBJS)\HelpGen_wx_extra_imps.o: .\src\wx_extra_imps.cpp
156 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
157
158 $(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
159 $(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
160
161 clean:
162 -if exist $(OBJS)\*.o del $(OBJS)\*.o
163 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe
164
165 .PHONY: all clean