1# ========================================================================= 2# This makefile was generated by 3# Bakefile 0.2.9 (http://www.bakefile.org) 4# Do not modify, all changes will be overwritten! 5# ========================================================================= 6 7.LONGCOMMANDLINE: dmc link lib smake 8 9!include ../../build/msw/config.dms 10 11# ------------------------------------------------------------------------- 12# Do not modify the rest of this file! 13# ------------------------------------------------------------------------- 14 15### Conditionally set variables: ### 16 17!if "$(USE_GUI)" == "0" 18PORTNAME = base 19!endif 20!if "$(USE_GUI)" == "1" 21PORTNAME = msw 22!endif 23!if "$(BUILD)" == "debug" 24!if "$(DEBUG_FLAG)" == "default" 25WXDEBUGFLAG = d 26!endif 27!endif 28!if "$(DEBUG_FLAG)" == "1" 29WXDEBUGFLAG = d 30!endif 31!if "$(UNICODE)" == "1" 32WXUNICODEFLAG = u 33!endif 34!if "$(WXUNIV)" == "1" 35WXUNIVNAME = univ 36!endif 37!if "$(SHARED)" == "1" 38WXDLLFLAG = dll 39!endif 40!if "$(SHARED)" == "0" 41LIBTYPE_SUFFIX = lib 42!endif 43!if "$(SHARED)" == "1" 44LIBTYPE_SUFFIX = dll 45!endif 46!if "$(MONOLITHIC)" == "0" 47EXTRALIBS_FOR_BASE = 48!endif 49!if "$(MONOLITHIC)" == "1" 50EXTRALIBS_FOR_BASE = 51!endif 52!if "$(BUILD)" == "debug" 53!if "$(DEBUG_INFO)" == "default" 54__DEBUGINFO_0 = -g 55!endif 56!endif 57!if "$(BUILD)" == "release" 58!if "$(DEBUG_INFO)" == "default" 59__DEBUGINFO_0 = 60!endif 61!endif 62!if "$(DEBUG_INFO)" == "0" 63__DEBUGINFO_0 = 64!endif 65!if "$(DEBUG_INFO)" == "1" 66__DEBUGINFO_0 = -g 67!endif 68!if "$(BUILD)" == "debug" 69!if "$(DEBUG_INFO)" == "default" 70__DEBUGINFO_1 = /DEBUG /CODEVIEW 71!endif 72!endif 73!if "$(BUILD)" == "release" 74!if "$(DEBUG_INFO)" == "default" 75__DEBUGINFO_1 = 76!endif 77!endif 78!if "$(DEBUG_INFO)" == "0" 79__DEBUGINFO_1 = 80!endif 81!if "$(DEBUG_INFO)" == "1" 82__DEBUGINFO_1 = /DEBUG /CODEVIEW 83!endif 84!if "$(BUILD)" == "debug" 85__OPTIMIZEFLAG_2 = -o+none 86!endif 87!if "$(BUILD)" == "release" 88__OPTIMIZEFLAG_2 = -o 89!endif 90!if "$(RUNTIME_LIBS)" == "dynamic" 91__RUNTIME_LIBS_5 = -ND 92!endif 93!if "$(RUNTIME_LIBS)" == "static" 94__RUNTIME_LIBS_5 = 95!endif 96!if "$(USE_RTTI)" == "0" 97__RTTIFLAG_6 = 98!endif 99!if "$(USE_RTTI)" == "1" 100__RTTIFLAG_6 = -Ar 101!endif 102!if "$(USE_EXCEPTIONS)" == "0" 103__EXCEPTIONSFLAG_7 = 104!endif 105!if "$(USE_EXCEPTIONS)" == "1" 106__EXCEPTIONSFLAG_7 = -Ae 107!endif 108!if "$(MONOLITHIC)" == "0" 109__WXLIB_CORE_p = \ 110 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib 111!endif 112!if "$(MONOLITHIC)" == "0" 113__WXLIB_BASE_p = \ 114 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib 115!endif 116!if "$(MONOLITHIC)" == "1" 117__WXLIB_MONO_p = \ 118 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib 119!endif 120!if "$(USE_GUI)" == "1" 121__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib 122!endif 123!if "$(USE_GUI)" == "1" 124__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib 125!endif 126!if "$(USE_GUI)" == "1" 127__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib 128!endif 129!if "$(MSLU)" == "1" 130__UNICOWS_LIB_p = unicows.lib 131!endif 132!if "$(USE_GDIPLUS)" == "1" 133__GDIPLUS_LIB_p = gdiplus.lib 134!endif 135!if "$(USE_CAIRO)" == "1" 136__CAIRO_LIB_p = cairo.lib 137!endif 138!if "$(USE_CAIRO)" == "1" 139__CAIRO_LIBDIR_FILENAMES = $(CAIRO_ROOT)\lib 140!endif 141!if "$(WXUNIV)" == "1" 142__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ 143!endif 144!if "$(BUILD)" == "debug" 145!if "$(DEBUG_FLAG)" == "default" 146__DEBUG_DEFINE_p = -D__WXDEBUG__ 147!endif 148!endif 149!if "$(DEBUG_FLAG)" == "1" 150__DEBUG_DEFINE_p = -D__WXDEBUG__ 151!endif 152!if "$(BUILD)" == "release" 153__NDEBUG_DEFINE_p = -DNDEBUG 154!endif 155!if "$(USE_EXCEPTIONS)" == "0" 156__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS 157!endif 158!if "$(USE_RTTI)" == "0" 159__RTTI_DEFINE_p = -DwxNO_RTTI 160!endif 161!if "$(USE_THREADS)" == "0" 162__THREAD_DEFINE_p = -DwxNO_THREADS 163!endif 164!if "$(UNICODE)" == "1" 165__UNICODE_DEFINE_p = -D_UNICODE 166!endif 167!if "$(MSLU)" == "1" 168__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 169!endif 170!if "$(USE_GDIPLUS)" == "1" 171__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 172!endif 173!if "$(USE_CAIRO)" == "1" 174____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo 175!endif 176!if "$(SHARED)" == "1" 177__DLLFLAG_p = -DWXUSINGDLL 178!endif 179 180### Variables: ### 181 182WX_RELEASE_NODOT = 28 183OBJS = dmc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) 184LIBDIRNAME = .\..\..\lib\dmc_$(LIBTYPE_SUFFIX)$(CFG) 185SETUPHDIR = $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) 186MEMCHECK_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__RUNTIME_LIBS_5) -D_WIN32_WINNT=0x0400 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -w- -I. $(__DLLFLAG_p) -WA -I.\..\..\samples -DNOPCH $(__RTTIFLAG_6) $(__EXCEPTIONSFLAG_7) $(CPPFLAGS) $(CXXFLAGS) 187MEMCHECK_OBJECTS = $(OBJS)\memcheck_memcheck.obj 188 189 190all : $(OBJS) 191$(OBJS) : 192 -if not exist $(OBJS) mkdir $(OBJS) 193 194### Targets: ### 195 196 197all : $(OBJS)\memcheck.exe 198 199clean : 200 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj 201 -if exist $(OBJS)\*.res del $(OBJS)\*.res 202 -if exist $(OBJS)\*.sym del $(OBJS)\*.sym 203 -if exist $(OBJS)\memcheck.exe del $(OBJS)\memcheck.exe 204 -if exist $(OBJS)\memcheck.map del $(OBJS)\memcheck.map 205 206$(OBJS)\memcheck.exe : $(MEMCHECK_OBJECTS) $(OBJS)\memcheck_memcheck.res 207 link /NOLOGO /SILENT /NOI /DELEXECUTABLE /EXETYPE:NT $(__DEBUGINFO_1) /su:windows:4.0 $(LDFLAGS) $(MEMCHECK_OBJECTS),$@,$(OBJS)\memcheck.map, $(LIBDIRNAME)\ $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) $(__CAIRO_LIBDIR_FILENAMES)\ kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib,, $(OBJS)\memcheck_memcheck.res 208 209$(OBJS)\memcheck_memcheck.obj : .\memcheck.cpp 210 $(CXX) -mn -c -cpp -o$@ $(MEMCHECK_CXXFLAGS) .\memcheck.cpp 211 212$(OBJS)\memcheck_memcheck.res : .\memcheck.rc 213 rcc .\memcheck.rc -o$@ -D_WIN32_WINNT=0x0400 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH -32 -v- 214