]>
Commit | Line | Data |
---|---|---|
4b20974a VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
162a956b | 3 | # Bakefile 0.1.6 (http://bakefile.sourceforge.net) |
4b20974a VS |
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 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
b17c1746 DE |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
162a956b | 18 | LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 21 | HELPVIEW_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \ |
4b20974a | 22 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
162a956b | 23 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \ |
c33fae85 | 24 | $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \ |
162a956b | 25 | $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) |
4b20974a VS |
26 | HELPVIEW_OBJECTS = \ |
27 | $(OBJS)\helpview_helpview.o \ | |
28 | $(OBJS)\helpview_helpview_rc.o | |
4b20974a VS |
29 | |
30 | ### Conditionally set variables: ### | |
31 | ||
32 | ifeq ($(GCC_VERSION),2.95) | |
33 | GCCFLAGS = -fvtable-thunks | |
34 | endif | |
4b20974a VS |
35 | ifeq ($(USE_GUI),0) |
36 | PORTNAME = base | |
37 | endif | |
38 | ifeq ($(USE_GUI),1) | |
39 | PORTNAME = msw | |
40 | endif | |
41 | ifeq ($(BUILD),debug) | |
42 | ifeq ($(DEBUG_FLAG),default) | |
43 | WXDEBUGFLAG = d | |
44 | endif | |
45 | endif | |
46 | ifeq ($(DEBUG_FLAG),1) | |
47 | WXDEBUGFLAG = d | |
48 | endif | |
4b20974a VS |
49 | ifeq ($(UNICODE),1) |
50 | WXUNICODEFLAG = u | |
51 | endif | |
52 | ifeq ($(WXUNIV),1) | |
53 | WXUNIVNAME = univ | |
54 | endif | |
b17c1746 DE |
55 | ifeq ($(SHARED),1) |
56 | WXDLLFLAG = dll | |
4b20974a | 57 | endif |
162a956b JS |
58 | ifeq ($(SHARED),0) |
59 | LIBTYPE_SUFFIX = lib | |
60 | endif | |
61 | ifeq ($(SHARED),1) | |
62 | LIBTYPE_SUFFIX = dll | |
63 | endif | |
dd65d8c8 RN |
64 | ifeq ($(MONOLITHIC),0) |
65 | EXTRALIBS_FOR_BASE = | |
66 | endif | |
67 | ifeq ($(MONOLITHIC),1) | |
68 | EXTRALIBS_FOR_BASE = | |
69 | endif | |
b17c1746 DE |
70 | ifeq ($(BUILD),debug) |
71 | __OPTIMIZEFLAG_2 = -O0 | |
4b20974a VS |
72 | endif |
73 | ifeq ($(BUILD),release) | |
b17c1746 | 74 | __OPTIMIZEFLAG_2 = -O2 |
4b20974a | 75 | endif |
b17c1746 DE |
76 | ifeq ($(USE_EXCEPTIONS),0) |
77 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
4b20974a | 78 | endif |
b17c1746 DE |
79 | ifeq ($(USE_EXCEPTIONS),1) |
80 | __EXCEPTIONSFLAG_4 = | |
4b20974a | 81 | endif |
b17c1746 DE |
82 | ifeq ($(USE_EXCEPTIONS),0) |
83 | __EXCEPTIONSFLAG_5 = -fno-exceptions | |
84 | endif | |
85 | ifeq ($(USE_EXCEPTIONS),1) | |
86 | __EXCEPTIONSFLAG_5 = | |
87 | endif | |
88 | ifeq ($(WXUNIV),1) | |
89 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
90 | endif | |
91 | ifeq ($(WXUNIV),1) | |
92 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
4b20974a VS |
93 | endif |
94 | ifeq ($(BUILD),debug) | |
95 | ifeq ($(DEBUG_FLAG),default) | |
96 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
97 | endif | |
98 | endif | |
99 | ifeq ($(DEBUG_FLAG),1) | |
100 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
101 | endif | |
102 | ifeq ($(BUILD),debug) | |
103 | ifeq ($(DEBUG_FLAG),default) | |
104 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
105 | endif | |
106 | endif | |
107 | ifeq ($(DEBUG_FLAG),1) | |
108 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
109 | endif | |
b17c1746 DE |
110 | ifeq ($(UNICODE),1) |
111 | __UNICODE_DEFINE_p = -D_UNICODE | |
112 | endif | |
113 | ifeq ($(UNICODE),1) | |
114 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
115 | endif | |
4b20974a VS |
116 | ifeq ($(SHARED),1) |
117 | __DLLFLAG_p = -DWXUSINGDLL | |
118 | endif | |
119 | ifeq ($(SHARED),1) | |
120 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
121 | endif | |
b17c1746 DE |
122 | ifeq ($(MONOLITHIC),0) |
123 | __WXLIB_HTML_p = \ | |
c33fae85 | 124 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html |
a4ad36cd | 125 | endif |
b17c1746 DE |
126 | ifeq ($(MONOLITHIC),0) |
127 | __WXLIB_CORE_p = \ | |
c33fae85 | 128 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
a4ad36cd | 129 | endif |
b17c1746 | 130 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
131 | __WXLIB_NET_p = \ |
132 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net | |
a4ad36cd | 133 | endif |
b17c1746 | 134 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
135 | __WXLIB_BASE_p = \ |
136 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
4b20974a | 137 | endif |
b17c1746 DE |
138 | ifeq ($(MONOLITHIC),1) |
139 | __WXLIB_MONO_p = \ | |
c33fae85 | 140 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
4b20974a VS |
141 | endif |
142 | ifeq ($(USE_GUI),1) | |
9c2d002b | 143 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
4b20974a | 144 | endif |
b17c1746 | 145 | ifeq ($(USE_GUI),1) |
9c2d002b | 146 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
4b20974a | 147 | endif |
b17c1746 | 148 | ifeq ($(USE_GUI),1) |
9c2d002b | 149 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
4b20974a VS |
150 | endif |
151 | ifeq ($(MSLU),1) | |
152 | __UNICOWS_LIB_p = -lunicows | |
153 | endif | |
b17c1746 DE |
154 | ifeq ($(BUILD),debug) |
155 | ifeq ($(DEBUG_INFO),default) | |
156 | __DEBUGINFO = -g | |
4b20974a | 157 | endif |
4b20974a | 158 | endif |
b17c1746 DE |
159 | ifeq ($(BUILD),release) |
160 | ifeq ($(DEBUG_INFO),default) | |
161 | __DEBUGINFO = | |
ec08d395 | 162 | endif |
4b20974a | 163 | endif |
b17c1746 DE |
164 | ifeq ($(DEBUG_INFO),0) |
165 | __DEBUGINFO = | |
166 | endif | |
167 | ifeq ($(DEBUG_INFO),1) | |
168 | __DEBUGINFO = -g | |
4b20974a VS |
169 | endif |
170 | ||
171 | ||
172 | all: $(OBJS) | |
173 | $(OBJS): | |
174 | -if not exist $(OBJS) mkdir $(OBJS) | |
175 | ||
176 | ### Targets: ### | |
177 | ||
178 | all: $(OBJS)\helpview.exe data | |
179 | ||
4b20974a VS |
180 | clean: |
181 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
182 | -if exist $(OBJS)\helpview.exe del $(OBJS)\helpview.exe | |
183 | ||
b17c1746 | 184 | $(OBJS)\helpview.exe: $(HELPVIEW_OBJECTS) $(OBJS)\helpview_helpview_rc.o |
dd65d8c8 | 185 | $(CXX) -o $@ $(HELPVIEW_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__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 |
b17c1746 | 186 | |
4b20974a VS |
187 | data: |
188 | if not exist $(OBJS) mkdir $(OBJS) | |
189 | for %%f in (test.zip) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
190 | ||
b17c1746 DE |
191 | $(OBJS)\helpview_helpview.o: ./helpview.cpp |
192 | $(CXX) -c -o $@ $(HELPVIEW_CXXFLAGS) $< | |
193 | ||
194 | $(OBJS)\helpview_helpview_rc.o: ./helpview.rc | |
162a956b | 195 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../../samples --define NOPCH |
4b20974a VS |
196 | |
197 | .PHONY: all clean data | |
162a956b | 198 |