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 DIALOGS_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)\dialogs_dialogs.o \
28 $(____GENERIC_DIALOGS_IN_NATIVE_BUILDS_FILENAMES_OBJECTS) \
29 $(OBJS)\dialogs_dialogs_rc.o
31 ### Conditionally set variables: ###
33 ifeq ($(GCC_VERSION),2.95)
34 GCCFLAGS = -fvtable-thunks
43 ifeq ($(DEBUG_FLAG),default)
47 ifeq ($(DEBUG_FLAG),1)
65 ifeq ($(MONOLITHIC),0)
68 ifeq ($(MONOLITHIC),1)
72 __OPTIMIZEFLAG_2 = -O0
74 ifeq ($(BUILD),release)
75 __OPTIMIZEFLAG_2 = -O2
77 ifeq ($(USE_EXCEPTIONS),0)
78 __EXCEPTIONSFLAG_4 = -fno-rtti
80 ifeq ($(USE_EXCEPTIONS),1)
83 ifeq ($(USE_EXCEPTIONS),0)
84 __EXCEPTIONSFLAG_5 = -fno-exceptions
86 ifeq ($(USE_EXCEPTIONS),1)
90 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
93 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
96 ifeq ($(DEBUG_FLAG),default)
97 __DEBUG_DEFINE_p = -D__WXDEBUG__
100 ifeq ($(DEBUG_FLAG),1)
101 __DEBUG_DEFINE_p = -D__WXDEBUG__
103 ifeq ($(BUILD),debug)
104 ifeq ($(DEBUG_FLAG),default)
105 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
108 ifeq ($(DEBUG_FLAG),1)
109 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
112 __UNICODE_DEFINE_p = -D_UNICODE
115 __UNICODE_DEFINE_p_1 = --define _UNICODE
118 __DLLFLAG_p = -DWXUSINGDLL
121 __DLLFLAG_p_1 = --define WXUSINGDLL
125 ____GENERIC_DIALOGS_IN_NATIVE_BUILDS_FILENAMES_OBJECTS = \
126 $(OBJS)\dialogs_colrdlgg.o \
127 $(OBJS)\dialogs_dirdlgg.o \
128 $(OBJS)\dialogs_filedlgg.o \
129 $(OBJS)\dialogs_fontdlgg.o
132 ifeq ($(MONOLITHIC),0)
134 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
136 ifeq ($(MONOLITHIC),0)
138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
140 ifeq ($(MONOLITHIC),0)
142 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
144 ifeq ($(MONOLITHIC),1)
146 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
149 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
152 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
155 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
158 __UNICOWS_LIB_p = -lunicows
160 ifeq ($(BUILD),debug)
161 ifeq ($(DEBUG_INFO),default)
165 ifeq ($(BUILD),release)
166 ifeq ($(DEBUG_INFO),default)
170 ifeq ($(DEBUG_INFO),0)
173 ifeq ($(DEBUG_INFO),1)
180 -if not exist $(OBJS) mkdir $(OBJS)
184 all: $(OBJS)\dialogs.exe data
187 -if exist $(OBJS)\*.o del $(OBJS)\*.o
188 -if exist $(OBJS)\dialogs.exe del $(OBJS)\dialogs.exe
190 $(OBJS)\dialogs.exe: $(DIALOGS_OBJECTS) $(OBJS)\dialogs_dialogs_rc.o
191 $(CXX) -o $@ $(DIALOGS_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_ADV_p) $(__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
194 if not exist $(OBJS) mkdir $(OBJS)
195 for %%f in (tips.txt) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
197 $(OBJS)\dialogs_dialogs.o: ./dialogs.cpp
198 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $<
200 $(OBJS)\dialogs_colrdlgg.o: ./../../src/generic/colrdlgg.cpp
201 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $<
203 $(OBJS)\dialogs_dirdlgg.o: ./../../src/generic/dirdlgg.cpp
204 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $<
206 $(OBJS)\dialogs_filedlgg.o: ./../../src/generic/filedlgg.cpp
207 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $<
209 $(OBJS)\dialogs_fontdlgg.o: ./../../src/generic/fontdlgg.cpp
210 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $<
212 $(OBJS)\dialogs_dialogs_rc.o: ./dialogs.rc
213 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
215 .PHONY: all clean data