1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 include ../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 DOCVIEW_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
24 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
25 $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\docview_docview.o \
28 $(OBJS)\docview_doc.o \
29 $(OBJS)\docview_view.o \
30 $(OBJS)\docview_docview_rc.o
32 ### Conditionally set variables: ###
34 ifeq ($(GCC_VERSION),2.95)
35 GCCFLAGS = -fvtable-thunks
44 ifeq ($(DEBUG_FLAG),default)
48 ifeq ($(DEBUG_FLAG),1)
66 ifeq ($(MONOLITHIC),0)
69 ifeq ($(MONOLITHIC),1)
73 __OPTIMIZEFLAG_2 = -O0
75 ifeq ($(BUILD),release)
76 __OPTIMIZEFLAG_2 = -O2
78 ifeq ($(USE_EXCEPTIONS),0)
79 __EXCEPTIONSFLAG_4 = -fno-rtti
81 ifeq ($(USE_EXCEPTIONS),1)
84 ifeq ($(USE_EXCEPTIONS),0)
85 __EXCEPTIONSFLAG_5 = -fno-exceptions
87 ifeq ($(USE_EXCEPTIONS),1)
91 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
94 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
97 ifeq ($(DEBUG_FLAG),default)
98 __DEBUG_DEFINE_p = -D__WXDEBUG__
101 ifeq ($(DEBUG_FLAG),1)
102 __DEBUG_DEFINE_p = -D__WXDEBUG__
104 ifeq ($(BUILD),debug)
105 ifeq ($(DEBUG_FLAG),default)
106 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
109 ifeq ($(DEBUG_FLAG),1)
110 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
113 __UNICODE_DEFINE_p = -D_UNICODE
116 __UNICODE_DEFINE_p_1 = --define _UNICODE
119 __DLLFLAG_p = -DWXUSINGDLL
122 __DLLFLAG_p_1 = --define WXUSINGDLL
124 ifeq ($(MONOLITHIC),0)
126 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
128 ifeq ($(MONOLITHIC),0)
130 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
132 ifeq ($(MONOLITHIC),1)
134 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
137 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
140 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
143 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
146 __UNICOWS_LIB_p = -lunicows
148 ifeq ($(BUILD),debug)
149 ifeq ($(DEBUG_INFO),default)
153 ifeq ($(BUILD),release)
154 ifeq ($(DEBUG_INFO),default)
158 ifeq ($(DEBUG_INFO),0)
161 ifeq ($(DEBUG_INFO),1)
168 -if not exist $(OBJS) mkdir $(OBJS)
172 all: $(OBJS)\docview.exe
175 -if exist $(OBJS)\*.o del $(OBJS)\*.o
176 -if exist $(OBJS)\docview.exe del $(OBJS)\docview.exe
178 $(OBJS)\docview.exe: $(DOCVIEW_OBJECTS) $(OBJS)\docview_docview_rc.o
179 $(CXX) -o $@ $(DOCVIEW_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_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
181 $(OBJS)\docview_docview.o: ./docview.cpp
182 $(CXX) -c -o $@ $(DOCVIEW_CXXFLAGS) $<
184 $(OBJS)\docview_doc.o: ./doc.cpp
185 $(CXX) -c -o $@ $(DOCVIEW_CXXFLAGS) $<
187 $(OBJS)\docview_view.o: ./view.cpp
188 $(CXX) -c -o $@ $(DOCVIEW_CXXFLAGS) $<
190 $(OBJS)\docview_docview_rc.o: ./docview.rc
191 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