X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61aba4609aa384e8906e76715ea483cbf46c6725..b3ecee8d120ac8af59cbf82b00d4c7da9f648f53:/samples/dll/Makefile.in?ds=inline diff --git a/samples/dll/Makefile.in b/samples/dll/Makefile.in index e4c896e5c5..2ddcb08e3f 100644 --- a/samples/dll/Makefile.in +++ b/samples/dll/Makefile.in @@ -50,7 +50,8 @@ WX_VERSION = $(WX_RELEASE).1 LIBDIRNAME = $(wx_top_builddir)/lib MY_DLL_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \ - $(__DLLFLAG_p) -I$(srcdir) $(PIC_FLAG) $(CXXWARNINGS) $(CPPFLAGS) $(CXXFLAGS) + $(__DLLFLAG_p) -DMY_DLL_BUILDING -I$(srcdir) $(PIC_FLAG) $(CXXWARNINGS) \ + $(CPPFLAGS) $(CXXFLAGS) MY_DLL_OBJECTS = \ my_dll_my_dll.o WX_EXE_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ @@ -60,7 +61,10 @@ WX_EXE_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ WX_EXE_OBJECTS = \ $(__wx_exe___win32rc) \ $(__wx_exe_os2_lib_res) \ - wx_exe_dll_user_wx.o + wx_exe_wx_exe.o +SDK_EXE_CXXFLAGS = $(CPPFLAGS) $(CXXFLAGS) +SDK_EXE_OBJECTS = \ + sdk_exe_sdk_exe.o ### Conditionally set variables: ### @@ -114,6 +118,13 @@ COND_PLATFORM_OS2_1___wx_exe___os2_emxbindcmd = $(NM) wx_exe$(EXEEXT) | if grep @COND_TOOLKIT_OSX_IPHONE@ = $(__wx_exe_app_Contents_PkgInfo___depname) @COND_TOOLKIT_COCOA@____wx_exe_BUNDLE_TGT_REF_DEP = \ @COND_TOOLKIT_COCOA@ $(__wx_exe_app_Contents_PkgInfo___depname) +@COND_PLATFORM_WIN32_1@__sdk_exe___depname = sdk_exe$(EXEEXT) +@COND_PLATFORM_MAC_0@__sdk_exe___mac_setfilecmd = @true +@COND_PLATFORM_MAC_1@__sdk_exe___mac_setfilecmd = \ +@COND_PLATFORM_MAC_1@ $(SETFILE) -t APPL sdk_exe$(EXEEXT) +COND_PLATFORM_OS2_1___sdk_exe___os2_emxbindcmd = $(NM) sdk_exe$(EXEEXT) | if \ + grep -q pmwin.763 ; then emxbind -ep sdk_exe$(EXEEXT) ; fi +@COND_PLATFORM_OS2_1@__sdk_exe___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___sdk_exe___os2_emxbindcmd) @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ @COND_DEBUG_FLAG_0@__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS @@ -148,7 +159,7 @@ COND_wxUSE_REGEX_builtin___LIB_REGEX_p = \ ### Targets: ### -all: $(__my_dll___depname) $(__wx_exe___depname) $(__wx_exe_bundle___depname) +all: $(__my_dll___depname) $(__wx_exe___depname) $(__wx_exe_bundle___depname) $(__sdk_exe___depname) install: @@ -163,6 +174,7 @@ clean: rm -f $(LIBPREFIX)my_dll.$(DLLIMP_SUFFIX) rm -f wx_exe$(EXEEXT) rm -rf wx_exe.app + rm -f sdk_exe$(EXEEXT) distclean: clean rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile @@ -198,14 +210,23 @@ distclean: clean @COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0@wx_exe_bundle: $(____wx_exe_BUNDLE_TGT_REF_DEP) +@COND_PLATFORM_WIN32_1@sdk_exe$(EXEEXT): $(SDK_EXE_OBJECTS) $(__my_dll___depname) +@COND_PLATFORM_WIN32_1@ $(CXX) -o $@ $(SDK_EXE_OBJECTS) -L. $(LDFLAGS_GUI) $(LDFLAGS) -lmy_dll -luser32 $(LIBS) +@COND_PLATFORM_WIN32_1@ +@COND_PLATFORM_WIN32_1@ $(__sdk_exe___mac_setfilecmd) +@COND_PLATFORM_WIN32_1@ $(__sdk_exe___os2_emxbindcmd) + my_dll_my_dll.o: $(srcdir)/my_dll.cpp $(CXXC) -c -o $@ $(MY_DLL_CXXFLAGS) $(srcdir)/my_dll.cpp wx_exe_sample_rc.o: $(srcdir)/../../samples/sample.rc - $(WINDRES) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_4) $(__DEBUG_DEFINE_p_4) $(__EXCEPTIONS_DEFINE_p_4) $(__RTTI_DEFINE_p_4) $(__THREAD_DEFINE_p_4) --include-dir $(srcdir) $(__DLLFLAG_p_4) --include-dir $(srcdir)/../../samples $(__RCDEFDIR_p_1) --include-dir $(top_srcdir)/include + $(WINDRES) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_4) $(__DEBUG_DEFINE_p_4) $(__EXCEPTIONS_DEFINE_p_4) $(__RTTI_DEFINE_p_4) $(__THREAD_DEFINE_p_4) --include-dir $(srcdir) $(__DLLFLAG_p_4) --include-dir $(srcdir)/../../samples $(__RCDEFDIR_p_1) --include-dir $(top_srcdir)/include + +wx_exe_wx_exe.o: $(srcdir)/wx_exe.cpp + $(CXXC) -c -o $@ $(WX_EXE_CXXFLAGS) $(srcdir)/wx_exe.cpp -wx_exe_dll_user_wx.o: $(srcdir)/dll_user_wx.cpp - $(CXXC) -c -o $@ $(WX_EXE_CXXFLAGS) $(srcdir)/dll_user_wx.cpp +sdk_exe_sdk_exe.o: $(srcdir)/sdk_exe.cpp + $(CXXC) -c -o $@ $(SDK_EXE_CXXFLAGS) $(srcdir)/sdk_exe.cpp # Include dependency info, if present: