SETUPHDIR = \\r
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
MY_DLL_CXXFLAGS = /M$(__RUNTIME_LIBS_11)$(__DEBUGRUNTIME) /DWIN32 \\r
- $(__DEBUGINFO_1) /Fd$(OBJS)\my_dll.pdb $(____DEBUGRUNTIME) \\r
+ $(__DEBUGINFO_0) /Fd$(OBJS)\my_dll.pdb $(____DEBUGRUNTIME) \
$(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
$(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
$(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
MY_DLL_OBJECTS = \\r
$(OBJS)\my_dll_my_dll.obj\r
WX_EXE_CXXFLAGS = /M$(__RUNTIME_LIBS_25)$(__DEBUGRUNTIME) /DWIN32 \\r
- $(__DEBUGINFO_1) /Fd$(OBJS)\wx_exe.pdb $(____DEBUGRUNTIME) \\r
+ $(__DEBUGINFO_0) /Fd$(OBJS)\wx_exe.pdb $(____DEBUGRUNTIME) \
$(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
$(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
$(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
$(OBJS)\wx_exe_wx_exe.obj\r
WX_EXE_RESOURCES = \\r
$(OBJS)\wx_exe_sample.res\r
+SDK_EXE_CXXFLAGS = /M$(__RUNTIME_LIBS_41)$(__DEBUGRUNTIME) /DWIN32 \
+ $(__DEBUGINFO_0) /Fd$(OBJS)\sdk_exe.pdb $(____DEBUGRUNTIME) \
+ $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D_WINDOWS $(__RTTIFLAG) \
+ $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
+SDK_EXE_OBJECTS = \
+ $(OBJS)\sdk_exe_sdk_exe.obj
\r
### Conditionally set variables: ###\r
\r
EXTRALIBS_FOR_BASE = \r
!endif\r
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
-__DEBUGINFO_3 = $(__DEBUGRUNTIME_0)\r
+__DEBUGINFO_3 = $(__DEBUGRUNTIME_1)
!endif\r
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
__DEBUGINFO_3 = \r
__DEBUGINFO_3 = \r
!endif\r
!if "$(DEBUG_INFO)" == "1"\r
-__DEBUGINFO_3 = $(__DEBUGRUNTIME_0)\r
+__DEBUGINFO_3 = $(__DEBUGRUNTIME_1)
!endif\r
!if "$(RUNTIME_LIBS)" == "dynamic"\r
__RUNTIME_LIBS_11 = D\r
__wx_exe___depname = $(OBJS)\wx_exe.exe\r
!endif\r
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
-__DEBUGINFO_17 = $(__DEBUGRUNTIME_0)\r
+__DEBUGINFO_17 = $(__DEBUGRUNTIME_1)
!endif\r
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
__DEBUGINFO_17 = \r
__DEBUGINFO_17 = \r
!endif\r
!if "$(DEBUG_INFO)" == "1"\r
-__DEBUGINFO_17 = $(__DEBUGRUNTIME_0)\r
+__DEBUGINFO_17 = $(__DEBUGRUNTIME_1)
!endif\r
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
____DEBUGRUNTIME_18_p_1 = /d _DEBUG\r
__DLLFLAG_p_3 = /d WXUSINGDLL\r
!endif\r
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
-__DEBUGINFO_1 = /Zi\r
+__DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
!endif\r
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
-__DEBUGINFO_1 = \r
+__DEBUGINFO_33 =
!endif\r
!if "$(DEBUG_INFO)" == "0"\r
-__DEBUGINFO_1 = \r
+__DEBUGINFO_33 =
!endif\r
!if "$(DEBUG_INFO)" == "1"\r
-__DEBUGINFO_1 = /Zi\r
+__DEBUGINFO_33 = $(__DEBUGRUNTIME_1)
+!endif
+!if "$(RUNTIME_LIBS)" == "dynamic"
+__RUNTIME_LIBS_41 = D
+!endif
+!if "$(RUNTIME_LIBS)" == "static"
+__RUNTIME_LIBS_41 = $(__THREADSFLAG)
+!endif
+!if "$(WXUNIV)" == "1"
+__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
+!endif
+!if "$(DEBUG_FLAG)" == "0"
+__DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
+!endif
+!if "$(USE_EXCEPTIONS)" == "0"
+__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
+!endif
+!if "$(USE_RTTI)" == "0"
+__RTTI_DEFINE_p = /DwxNO_RTTI
+!endif
+!if "$(USE_THREADS)" == "0"
+__THREAD_DEFINE_p = /DwxNO_THREADS
+!endif
+!if "$(UNICODE)" == "0"
+__UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
+!endif
+!if "$(UNICODE)" == "1"
+__UNICODE_DEFINE_p = /D_UNICODE
+!endif
+!if "$(MSLU)" == "1"
+__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
+!endif
+!if "$(USE_GDIPLUS)" == "1"
+__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
+!endif
+!if "$(USE_CAIRO)" == "1"
+____CAIRO_INCLUDEDIR_FILENAMES = /I$(CAIRO_ROOT)\include\cairo
+!endif
+!if "$(SHARED)" == "1"
+__DLLFLAG_p = /DWXUSINGDLL
+!endif
+!if "$(MONOLITHIC)" == "0"
+__WXLIB_CORE_p = \
+ wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
+!endif
+!if "$(MONOLITHIC)" == "0"
+__WXLIB_BASE_p = \
+ wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
+!endif
+!if "$(MONOLITHIC)" == "1"
+__WXLIB_MONO_p = \
+ wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
+!endif
+!if "$(USE_GUI)" == "1"
+__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
+!endif
+!if "$(USE_GUI)" == "1"
+__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
+!endif
+!if "$(USE_GUI)" == "1"
+__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
+!endif
+!if "$(MSLU)" == "1"
+__UNICOWS_LIB_p = unicows.lib
+!endif
+!if "$(USE_GDIPLUS)" == "1"
+__GDIPLUS_LIB_p = gdiplus.lib
+!endif
+!if "$(USE_CAIRO)" == "1"
+__CAIRO_LIB_p = cairo.lib
+!endif
+!if "$(USE_CAIRO)" == "1"
+____CAIRO_LIBDIR_FILENAMES = /LIBPATH:$(CAIRO_ROOT)\lib
+!endif
+!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
+__DEBUGINFO_0 = /Zi
+!endif
+!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
+__DEBUGINFO_0 =
+!endif
+!if "$(DEBUG_INFO)" == "0"
+__DEBUGINFO_0 =
+!endif
+!if "$(DEBUG_INFO)" == "1"
+__DEBUGINFO_0 = /Zi
!endif\r
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
__DEBUGINFO = /DEBUG\r
__DEBUGRUNTIME = d\r
!endif\r
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
-__DEBUGRUNTIME_0 = \r
+__DEBUGRUNTIME_1 =
!endif\r
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r
-__DEBUGRUNTIME_0 = /opt:ref /opt:icf\r
+__DEBUGRUNTIME_1 = /opt:ref /opt:icf
!endif\r
!if "$(DEBUG_RUNTIME_LIBS)" == "0"\r
-__DEBUGRUNTIME_0 = /opt:ref /opt:icf\r
+__DEBUGRUNTIME_1 = /opt:ref /opt:icf
!endif\r
!if "$(DEBUG_RUNTIME_LIBS)" == "1"\r
-__DEBUGRUNTIME_0 = \r
+__DEBUGRUNTIME_1 =
!endif\r
!if "$(BUILD)" == "debug"\r
__OPTIMIZEFLAG = /Od\r
!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"\r
__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__\r
!endif\r
-!if "$(WXUNIV)" == "1"\r
-__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__\r
-!endif\r
-!if "$(DEBUG_FLAG)" == "0"\r
-__DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0\r
-!endif\r
-!if "$(USE_EXCEPTIONS)" == "0"\r
-__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS\r
-!endif\r
-!if "$(USE_RTTI)" == "0"\r
-__RTTI_DEFINE_p = /DwxNO_RTTI\r
-!endif\r
-!if "$(USE_THREADS)" == "0"\r
-__THREAD_DEFINE_p = /DwxNO_THREADS\r
-!endif\r
-!if "$(UNICODE)" == "0"\r
-__UNICODE_DEFINE_p = /DwxUSE_UNICODE=0\r
-!endif\r
-!if "$(UNICODE)" == "1"\r
-__UNICODE_DEFINE_p = /D_UNICODE\r
-!endif\r
-!if "$(MSLU)" == "1"\r
-__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1\r
-!endif\r
-!if "$(USE_GDIPLUS)" == "1"\r
-__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1\r
-!endif\r
-!if "$(USE_CAIRO)" == "1"\r
-____CAIRO_INCLUDEDIR_FILENAMES = /I$(CAIRO_ROOT)\include\cairo\r
-!endif\r
-!if "$(SHARED)" == "1"\r
-__DLLFLAG_p = /DWXUSINGDLL\r
-!endif\r
-!if "$(MONOLITHIC)" == "0"\r
-__WXLIB_CORE_p = \\r
- wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r
-!endif\r
-!if "$(MONOLITHIC)" == "0"\r
-__WXLIB_BASE_p = \\r
- wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
-!endif\r
-!if "$(MONOLITHIC)" == "1"\r
-__WXLIB_MONO_p = \\r
- wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
-!endif\r
-!if "$(USE_GUI)" == "1"\r
-__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
-!endif\r
-!if "$(USE_GUI)" == "1"\r
-__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
-!endif\r
-!if "$(USE_GUI)" == "1"\r
-__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
-!endif\r
-!if "$(MSLU)" == "1"\r
-__UNICOWS_LIB_p = unicows.lib\r
-!endif\r
-!if "$(USE_GDIPLUS)" == "1"\r
-__GDIPLUS_LIB_p = gdiplus.lib\r
-!endif\r
-!if "$(USE_CAIRO)" == "1"\r
-__CAIRO_LIB_p = cairo.lib\r
-!endif\r
-!if "$(USE_CAIRO)" == "1"\r
-____CAIRO_LIBDIR_FILENAMES = /LIBPATH:$(CAIRO_ROOT)\lib\r
-!endif\r
\r
\r
all: $(OBJS)\r
\r
### Targets: ###\r
\r
-all: $(OBJS)\my_dll.dll $(__wx_exe___depname)\r
+all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
\r
clean: \r
-if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
-if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe\r
-if exist $(OBJS)\wx_exe.ilk del $(OBJS)\wx_exe.ilk\r
-if exist $(OBJS)\wx_exe.pdb del $(OBJS)\wx_exe.pdb\r
+ -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
+ -if exist $(OBJS)\sdk_exe.ilk del $(OBJS)\sdk_exe.ilk
+ -if exist $(OBJS)\sdk_exe.pdb del $(OBJS)\sdk_exe.pdb
\r
$(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)\r
link /DLL /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\my_dll.pdb" $(__DEBUGINFO_3) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @<<\r
<<\r
!endif\r
\r
+$(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
+ link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\sdk_exe.pdb" $(__DEBUGINFO_33) $(LINK_TARGET_CPU) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
+ $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.lib
+<<
+
$(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp\r
\r
$(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp\r
\r
+$(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp
+