From: Jouk Jansen Date: Mon, 12 Sep 2011 10:57:44 +0000 (+0000) Subject: add compile support for thread sample on OpenVMS X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/821c2a375057bb286ac734e10fc8b4a48af30dfb add compile support for thread sample on OpenVMS git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/descrip.mms b/descrip.mms index 597d518888..dfb737a566 100644 --- a/descrip.mms +++ b/descrip.mms @@ -2,7 +2,7 @@ # * # Make file for VMS * # Author : J.Jansen (joukj@hrem.nano.tudelft.nl) * -# Date : 8 April 2011 * +# Date : 12 September 2011 * # * #***************************************************************************** .first @@ -148,6 +148,8 @@ gtk : [.include.wx]setup.h $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1) set default [-.stc] $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1) + set default [-.thread] + $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1) set default [-.xrc] $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1) set default [--.tests] @@ -189,6 +191,8 @@ gtk2 : [.include.wx]setup.h library [--.lib]libwx_gtk2.olb [.CXX_REPOSITORY]*.obj set default [-.stc] $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK2__=1) + set default [-.thread] + $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK2__=1) set default [-.gtk] $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK2__=1) library [--.lib]libwx_gtk2.olb [.CXX_REPOSITORY]*.obj @@ -299,6 +303,8 @@ x11 : [.include.wx]setup.h $(MMS)$(MMSQUALIFIERS)/macro=(__WXX11__=1,__WXUNIVERSAL__=1) set default [-.richedit] # $(MMS)$(MMSQUALIFIERS)/macro=(__WXX11__=1,__WXUNIVERSAL__=1) + set default [-.thread] + $(MMS)$(MMSQUALIFIERS)/macro=(__WXX11__=1,__WXUNIVERSAL__=1) set default [--] motif : [.include.wx]setup.h @@ -341,6 +347,8 @@ motif : [.include.wx]setup.h $(MMS)$(MMSQUALIFIERS)/macro=(__WXMOTIF__=1) set default [-.minimal] $(MMS)$(MMSQUALIFIERS)/macro=(__WXMOTIF__=1) + set default [-.thread] + $(MMS)$(MMSQUALIFIERS)/macro=(__WXMOTIF__=1) set default [--] [.include.wx]setup.h : setup.h_vms diff --git a/samples/thread/descrip.mms b/samples/thread/descrip.mms new file mode 100644 index 0000000000..62833f160b --- /dev/null +++ b/samples/thread/descrip.mms @@ -0,0 +1,75 @@ +#***************************************************************************** +# * +# Make file for VMS * +# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) * +# Date : 12 September 2011 * +# * +#***************************************************************************** +.first + define wx [--.include.wx] + +.ifdef __WXMOTIF__ +CXX_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short)\ + /assume=(nostdnew,noglobal_array_new) +.else +.ifdef __WXGTK__ +CXX_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm\ + /assume=(nostdnew,noglobal_array_new) +.else +.ifdef __WXGTK2__ +CXX_DEFINE = /define=(__WXGTK__=1,VMS_GTK2=1)/float=ieee/name=(as_is,short)/ieee=denorm\ + /assume=(nostdnew,noglobal_array_new) +.else +.ifdef __WXX11__ +CXX_DEFINE = /define=(__WXX11__=1,__WXUNIVERSAL__==1)/float=ieee\ + /name=(as_is,short)/assume=(nostdnew,noglobal_array_new) +.else +CXX_DEFINE = +.endif +.endif +.endif +.endif + +.suffixes : .cpp + +.cpp.obj : + cxx $(CXXFLAGS)$(CXX_DEFINE) $(MMS$TARGET_NAME).cpp + +all : +.ifdef __WXMOTIF__ + $(MMS)$(MMSQUALIFIERS) thread.exe +.else +.ifdef __WXGTK__ + $(MMS)$(MMSQUALIFIERS) thread_gtk.exe +.else +.ifdef __WXGTK2__ + $(MMS)$(MMSQUALIFIERS) thread_gtk2.exe +.else +.ifdef __WXX11__ + $(MMS)$(MMSQUALIFIERS) thread_x11.exe +.endif +.endif +.endif +.endif + +.ifdef __WXMOTIF__ +thread.exe : thread.obj + cxxlink thread,[--.lib]vms/opt +.else +.ifdef __WXGTK__ +thread_gtk.exe : thread.obj + cxxlink/exec=thread_gtk.exe thread,[--.lib]vms_gtk/opt +.else +.ifdef __WXGTK2__ +thread_gtk2.exe : thread.obj + cxxlink/exec=thread_gtk2.exe thread,[--.lib]vms_gtk2/opt +.else +.ifdef __WXX11__ +thread_x11.exe : thread.obj + cxxlink/exec=thread_x11.exe thread,[--.lib]vms_x11_univ/opt +.endif +.endif +.endif +.endif + +thread.obj : thread.cpp