]> git.saurik.com Git - wxWidgets.git/commitdiff
New makefiles for samples under Visual C++
authorJ. Russell Smyth <drfish@cox.net>
Fri, 12 Mar 1999 00:29:34 +0000 (00:29 +0000)
committerJ. Russell Smyth <drfish@cox.net>
Fri, 12 Mar 1999 00:29:34 +0000 (00:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/framelayout/samples/Makefile.vc [new file with mode: 0644]
utils/framelayout/samples/demo/Makefile.vc [new file with mode: 0644]
utils/framelayout/samples/demo/fl_demo.cpp
utils/framelayout/samples/demo/fl_demo.rc [new file with mode: 0644]
utils/framelayout/samples/sample/Makefile.vc [new file with mode: 0644]
utils/framelayout/samples/sample/fl_sample.cpp
utils/framelayout/samples/sample/fl_sample.rc [new file with mode: 0644]
utils/framelayout/samples/test/Makefile.vc [new file with mode: 0644]
utils/framelayout/samples/test/fl_test.cpp
utils/framelayout/samples/test/fl_test.rc [new file with mode: 0644]

diff --git a/utils/framelayout/samples/Makefile.vc b/utils/framelayout/samples/Makefile.vc
new file mode 100644 (file)
index 0000000..a19d821
--- /dev/null
@@ -0,0 +1,35 @@
+#
+# File:                makefile.vc
+# Author:      J. Russell Smyth
+# Created:     1999
+# Updated:     
+# Copyright:
+#
+# "%W% %G%"
+#
+# Makefile : Builds framelayout samples for Win95, MSVC++ 4.0
+# Use FINAL=1 argument to nmake to build final version with no debugging
+# info
+
+# Set WXDIR for your system
+WXDIR = $(WXWIN)
+
+THISDIR=$(WXDIR)\utils\framelayout\samples
+
+!include $(WXDIR)\src\makevc.env
+
+all:
+        cd $(WXDIR)\utils\framelayout\samples\test
+        nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\utils\framelayout\samples\demo
+        nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\utils\framelayout\samples\sample
+        nmake -f makefile.vc FINAL=$(FINAL)
+
+clean:
+        cd $(WXDIR)\utils\framelayout\samples\test
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\utils\framelayout\samples\demo
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\utils\framelayout\samples\sample
+        nmake -f makefile.vc clean
diff --git a/utils/framelayout/samples/demo/Makefile.vc b/utils/framelayout/samples/demo/Makefile.vc
new file mode 100644 (file)
index 0000000..8af9e3b
--- /dev/null
@@ -0,0 +1,21 @@
+#
+# File:                makefile.vc
+# Author:      J Russell Smyth
+# Created:     1999
+# Updated:     
+# Copyright:   
+#
+# Makefile : Builds frame layout demo
+# Use FINAL=1 argument to nmake to build final version with no debug info.
+
+# Set WXDIR for your system
+WXDIR = $(WXWIN)
+
+EXTRAINC = -I..\..\src
+EXTRALIBS = $(WXDIR)\lib\fl.lib
+EXTRAFLAGS = /DwxDUMMY_OBJ_INCLUDED
+PROGRAM=fl_demo
+OBJECTS = $(PROGRAM).obj
+
+!include $(WXDIR)\src\makeprog.vc
+
index eb083f57c105df1e23246ab5e321f442b2b717c6..ea69a4d46398107e5e8a39d28c19ef67aaca2407 100644 (file)
@@ -51,7 +51,9 @@
 #include "wxinfo.h"
 
 // ADDED by alex (linker complaints...):
+#ifndef wxDUMMY_OBJ_INCLUDED
 char wxDummyChar=0;
+#endif
 
 /***** Implementation for class MyApp *****/
 
diff --git a/utils/framelayout/samples/demo/fl_demo.rc b/utils/framelayout/samples/demo/fl_demo.rc
new file mode 100644 (file)
index 0000000..82bdf07
--- /dev/null
@@ -0,0 +1,2 @@
+#include "wx/msw/wx.rc"
+
diff --git a/utils/framelayout/samples/sample/Makefile.vc b/utils/framelayout/samples/sample/Makefile.vc
new file mode 100644 (file)
index 0000000..2b78779
--- /dev/null
@@ -0,0 +1,21 @@
+#
+# File:                makefile.vc
+# Author:      J Russell Smyth
+# Created:     1999
+# Updated:     
+# Copyright:   
+#
+# Makefile : Builds frame layout sample
+# Use FINAL=1 argument to nmake to build final version with no debug info.
+
+# Set WXDIR for your system
+WXDIR = $(WXWIN)
+
+EXTRAINC = -I..\..\src
+EXTRALIBS = $(WXDIR)\lib\fl.lib
+EXTRAFLAGS = /DwxDUMMY_OBJ_INCLUDED
+PROGRAM=fl_sample
+OBJECTS = $(PROGRAM).obj
+
+!include $(WXDIR)\src\makeprog.vc
+
index 06458f05e7a422fae3ccf30b258d4e1552f5489a..0c5abcad4c95bc211b7a91ad102ca445774d548b 100644 (file)
@@ -35,7 +35,9 @@
 #include "wx/textctrl.h"
 
 // ADDED by alex (linker complaints...):
+#ifndef wxDUMMY_OBJ_INCLUDED
 char wxDummyChar=0;
+#endif
 
 #define ID_LOAD  102
 #define ID_STORE 103
diff --git a/utils/framelayout/samples/sample/fl_sample.rc b/utils/framelayout/samples/sample/fl_sample.rc
new file mode 100644 (file)
index 0000000..82bdf07
--- /dev/null
@@ -0,0 +1,2 @@
+#include "wx/msw/wx.rc"
+
diff --git a/utils/framelayout/samples/test/Makefile.vc b/utils/framelayout/samples/test/Makefile.vc
new file mode 100644 (file)
index 0000000..68a6f88
--- /dev/null
@@ -0,0 +1,21 @@
+#
+# File:                makefile.vc
+# Author:      Julian Smart
+# Created:     1999
+# Updated:     
+# Copyright:   (c) Julian Smart
+#
+# Makefile : Builds sample (VC++, WIN32)
+# Use FINAL=1 argument to nmake to build final version with no debug info.
+
+# Set WXDIR for your system
+WXDIR = $(WXWIN)
+
+EXTRAINC = -I..\..\src
+EXTRALIBS = $(WXDIR)\lib\fl.lib
+EXTRAFLAGS = /DwxDUMMY_OBJ_INCLUDED
+PROGRAM=fl_test
+OBJECTS = $(PROGRAM).obj
+
+!include $(WXDIR)\src\makeprog.vc
+
index d1fb4e22a79f3413484ca722f5e773e9f24726ac..83425e271392104ce6b0ca7b6d114fad6d426ef6 100644 (file)
@@ -48,7 +48,9 @@
 
 // comment it out if it breaks, (this is my workaround for MSDev 4.0 linker)
 
+#ifndef wxDUMMY_OBJ_INCLUDED
 char  wxDummyChar;
+#endif
 
 
 IMPLEMENT_APP  (MyApp)
diff --git a/utils/framelayout/samples/test/fl_test.rc b/utils/framelayout/samples/test/fl_test.rc
new file mode 100644 (file)
index 0000000..82bdf07
--- /dev/null
@@ -0,0 +1,2 @@
+#include "wx/msw/wx.rc"
+