]> git.saurik.com Git - wxWidgets.git/commitdiff
For use when build samples under wxOS2
authorDavid Webster <Dave.Webster@bhmi.com>
Wed, 15 Dec 1999 16:54:08 +0000 (16:54 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Wed, 15 Dec 1999 16:54:08 +0000 (16:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/makeprog.va [new file with mode: 0644]

diff --git a/src/makeprog.va b/src/makeprog.va
new file mode 100644 (file)
index 0000000..d8128fe
--- /dev/null
@@ -0,0 +1,51 @@
+#
+# File:     makeprog.va
+# Author:   David Webster
+# Created:  1999
+# Updated:
+# Copyright:    (c) David Webster
+#
+# Makefile environment for building samples. Include this from
+# your own makefile.
+# Use FINAL=1 argument to nmake to build final version with no debugging
+# info
+
+# Set WXDIR for your system
+WXDIR = j:\dev\wx2\wxWindows
+
+WXUSINGDLL=0
+
+!include $(WXDIR)\src\makeva.env
+
+all:    $(PROGRAM).exe
+
+wx:
+        cd $(WXDIR)\src\os2
+        nmake -f makefile.va FINAL=$(FINAL)
+#        cd $(THISDIR)
+
+wxclean:
+        cd $(WXDIR)\src\os2
+        nmake -f makefile.va clean
+#        cd $(THISDIR)
+
+$(PROGRAM).exe:      $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
+    @echo " Link::Linker "
+    $(LINK) @<<
+        /B" $(LINKFLAGS)" /Fe$@
+        $(LINKLIBS)
+        $(OBJECTS)
+        $(LIBS)
+<<
+  $(RC) $(PROGRAM).res $(PROGRAM).exe
+
+$(PROGRAM).res :      $(PROGRAM).rc $(WXDIR)\include\wx\os2\wx.rc
+    $(RC) -I $(WXDIR)\include -D __VISAGECPP__ -r $(PROGRAM).rc $(PROGRAM).res
+
+clean:
+        -erase $(OBJECTS)
+        -erase *.exe
+        -erase *.obj
+        -erase *.res
+        -erase *.map
+