From b2f757f9b7bac4b4b10fde8449c62e35b9c9497a Mon Sep 17 00:00:00 2001
From: Ron Lee <ron@debian.org>
Date: Tue, 14 Mar 2000 19:24:14 +0000
Subject: [PATCH] renamed notebook sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 samples/notebook/Makefile.in                | 14 ++------
 samples/notebook/makefile.b32               | 12 ++-----
 samples/notebook/makefile.bcc               | 11 ++----
 samples/notebook/makefile.dos               | 15 +++------
 samples/notebook/makefile.g95               | 14 +++-----
 samples/notebook/makefile.sc                | 37 +++++++++++++++++++++
 samples/notebook/makefile.sl                | 14 ++++++++
 samples/notebook/makefile.twn               | 35 +++++++++++++++++++
 samples/notebook/makefile.unx               | 20 +++--------
 samples/notebook/makefile.vc                | 13 ++------
 samples/notebook/makefile.wat               | 10 ++----
 samples/notebook/{test.cpp => notebook.cpp} |  4 +--
 samples/notebook/{test.def => notebook.def} |  2 +-
 samples/notebook/{test.h => notebook.h}     |  4 +--
 samples/notebook/{test.rc => notebook.rc}   |  0
 15 files changed, 118 insertions(+), 87 deletions(-)
 create mode 100644 samples/notebook/makefile.sc
 create mode 100644 samples/notebook/makefile.sl
 create mode 100644 samples/notebook/makefile.twn
 rename samples/notebook/{test.cpp => notebook.cpp} (99%)
 rename samples/notebook/{test.def => notebook.def} (89%)
 rename samples/notebook/{test.h => notebook.h} (97%)
 rename samples/notebook/{test.rc => notebook.rc} (100%)

diff --git a/samples/notebook/Makefile.in b/samples/notebook/Makefile.in
index ca69c85c37..58b5cda979 100644
--- a/samples/notebook/Makefile.in
+++ b/samples/notebook/Makefile.in
@@ -1,19 +1,11 @@
-#
-# File:		makefile.unx
-# Author:	Julian Smart
-# Created:	1998
-# Updated:	
-# Copyright:	(c) 1998 Julian Smart
-#
-# "%W% %G%"
-#
-# Makefile for notebook example (UNIX).
+# Purpose: makefile for notebook example (UNIX).
+# Created: 2000-03-15
 
 top_srcdir = @top_srcdir@/..
 top_builddir = ../..
 program_dir = samples/notebook
 
-PROGRAM=test
+PROGRAM=notebook
 
 OBJECTS=$(PROGRAM).o
 
diff --git a/samples/notebook/makefile.b32 b/samples/notebook/makefile.b32
index 95ddc80d76..7c8d2ff01b 100644
--- a/samples/notebook/makefile.b32
+++ b/samples/notebook/makefile.b32
@@ -1,15 +1,9 @@
-#
-# File:		makefile.b32
-# Author:	Julian Smart
-# Created:	1999
-# Updated:	
-# Copyright:
-#
-# Makefile : Builds sample for 32-bit BC++
+# Purpose: makefile for notebook example (BC++ 32bit)
+# Created: 2000-03-15
 
 WXDIR = $(WXWIN)
 
-TARGET=test
+TARGET=notebook
 OBJECTS = $(TARGET).obj
 
 !include $(WXDIR)\src\makeprog.b32
diff --git a/samples/notebook/makefile.bcc b/samples/notebook/makefile.bcc
index 669f01905a..3b1980b30e 100644
--- a/samples/notebook/makefile.bcc
+++ b/samples/notebook/makefile.bcc
@@ -1,10 +1,5 @@
-#
-# File:		makefile.bcc
-# Author:	Julian Smart
-# Created:	1998
-# Updated:	
-#
-# Builds a BC++ 16-bit sample
+# Purpose: makefile for notebook example (BC++ 16bit)
+# Created: 2000-03-15
 
 !if "$(WXWIN)" == ""
 !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
@@ -12,7 +7,7 @@
 
 WXDIR = $(WXWIN)
 
-TARGET=test
+TARGET=notebook
 OBJECTS=$(TARGET).obj
 
 !include $(WXDIR)\src\makeprog.bcc
diff --git a/samples/notebook/makefile.dos b/samples/notebook/makefile.dos
index 13e3a4ce8e..a5790ed4a2 100644
--- a/samples/notebook/makefile.dos
+++ b/samples/notebook/makefile.dos
@@ -1,17 +1,10 @@
-#
-# File:		makefile.dos
-# Author:	Julian Smart
-# Created:	1998
-# Updated:	
-#
-# Makefile : Builds 16-bit sample, VC++ 1.5
-# Use FINAL=1 argument to nmake to build final version with no debugging
-# info
+# Purpose: makefile for notebook example (VC++ 1.5x)
+# Created: 2000-03-15
 
 WXDIR = $(WXWIN)
 
-TARGET=test
-OBJECTS = $(TARGET).obj
+TARGET=notebook
+OBJECTS=$(TARGET).obj
 
 !include $(WXDIR)\src\makeprog.msc
 
diff --git a/samples/notebook/makefile.g95 b/samples/notebook/makefile.g95
index b4a920f047..b87471f38d 100644
--- a/samples/notebook/makefile.g95
+++ b/samples/notebook/makefile.g95
@@ -1,16 +1,10 @@
-#
-# File:         makefile.g95
-# Author:       Julian Smart
-# Created:      1999
-# Updated:
-# Copyright:    (c) Julian Smart, 1999
-#
-# Makefile for wxWindows sample (Cygwin/Mingw32).
+# Purpose: makefile for notebook example (Cygwin/Mingw32)
+# Created: #03.01.00
 
 WXDIR = ../..
 
-TARGET=test
+TARGET=notebook
 OBJECTS = $(TARGET).o
 
-include $(WXDIR)/src/makeprog.g95
+include $(WXDIR)\src\makeprog.g95
 
diff --git a/samples/notebook/makefile.sc b/samples/notebook/makefile.sc
new file mode 100644
index 0000000000..3a2b33b872
--- /dev/null
+++ b/samples/notebook/makefile.sc
@@ -0,0 +1,37 @@
+# Purpose: makefile for notebook example (Symantec C++)
+# Created: 2000-03-15
+
+WXDIR = $(WXWIN)
+WXLIB = $(WXDIR)\lib\wx.lib
+INCDIR = $(WXDIR)\include
+INCLUDE=$(INCDIR)
+TARGET=notebook
+
+include $(WXDIR)\src\makesc.env
+
+notebook.exe: notebook.obj $(DEFFILE) notebook.res
+	*$(CC) $(LDFLAGS) -o$@ $** $(LIBS)
+    *$(RC) -k notebook.res
+
+sc32.def:
+     echo EXETYPE NT > sc32.def
+     echo SUBSYSTEM WINDOWS >> sc32.def
+
+sc16.def:
+     echo NAME $(TARGET) > sc16.def
+     echo EXETYPE WINDOWS >> sc16.def
+     echo STUB         'WINSTUB.EXE' >> sc16.def
+     echo CODE         PRELOAD MOVEABLE DISCARDABLE >> sc16.def
+     echo DATA         PRELOAD MOVEABLE MULTIPLE >> sc16.def
+     echo HEAPSIZE     1024 >> sc16.def
+     echo STACKSIZE    8192 >> sc16.def
+
+clean:
+    -del *.obj
+	-del *.exe
+	-del *.res
+	-del *.map
+	-del *.rws
+    -del sc32.def
+    -del sc16.def
+
diff --git a/samples/notebook/makefile.sl b/samples/notebook/makefile.sl
new file mode 100644
index 0000000000..db6602046a
--- /dev/null
+++ b/samples/notebook/makefile.sl
@@ -0,0 +1,14 @@
+# Purpose: makefile for notebook example (Salford C++)
+# Created: 2000-03-15
+
+PROGRAM = notebook
+OBJECTS = $(PROGRAM).obj
+
+include ..\..\src\makeprog.sl
+
+all:        wx $(TARGET)
+
+wx:
+    cd $(WXDIR)\src\msw ^ mk32 -f makefile.sl all
+    cd $(WXDIR)\samples\notebook
+
diff --git a/samples/notebook/makefile.twn b/samples/notebook/makefile.twn
new file mode 100644
index 0000000000..e9c440b099
--- /dev/null
+++ b/samples/notebook/makefile.twn
@@ -0,0 +1,35 @@
+# Purpose: makefile for notebook example (TWIN)
+# Created: 2000-03-15
+
+WXDIR = ../..
+
+# All common UNIX compiler flags and options are now in
+# this central makefile.
+include $(WXDIR)/src/maketwin.env
+
+OBJECTS = $(OBJDIR)/notebook.$(OBJSUFF) $(OBJDIR)/notebook.$(OBJSUFF)
+
+all:    $(OBJDIR) notebook$(GUISUFFIX)$(EXESUFF)
+
+wx:
+
+$(OBJDIR):
+	mkdir $(OBJDIR)
+
+notebook$(GUISUFFIX)$(EXESUFF):	$(OBJECTS) $(WXLIB)
+	$(CC) $(LDFLAGS) -o notebook$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
+
+$(OBJDIR)/notebook.$(OBJSUFF):	notebook.$(SRCSUFF)
+	$(CC) -c $(CPPFLAGS) -o $@ notebook.$(SRCSUFF)
+
+notebook.c:  notebook.rc
+	$(RESCOMP) $(RCINPUTSWITCH) notebook.rc $(RCOUTPUTSWITCH) notebook.c $(RESFLAGS)
+
+$(OBJDIR)/notebook.$(OBJSUFF):	notebook.c
+	$(CC) -c $(CPPFLAGS) -o $@ notebook.c
+
+#$(OBJDIR)/notebook.o:  notebook.rc
+#	$(RESCOMP) $(RCINPUTSWITCH) notebook.rc $(RCOUTPUTSWITCH) $(OBJDIR)/notebook.o $(RESFLAGS)
+
+clean:
+	rm -f $(OBJECTS) notebook$(GUISUFFIX).exe core *.rsc *.res
diff --git a/samples/notebook/makefile.unx b/samples/notebook/makefile.unx
index 21cab3c677..e3db4b798e 100644
--- a/samples/notebook/makefile.unx
+++ b/samples/notebook/makefile.unx
@@ -1,21 +1,9 @@
-#
-# File:		Makefile for samples
-# Author:	Robert Roebling
-# Created:	1999
-# Updated:	
-# Copyright:	(c) 1998 Robert Roebling
-#
-# This makefile requires a Unix version of wxWindows
-# to be installed on your system. This is most often
-# done typing "make install" when using the complete
-# sources of wxWindows or by installing the two
-# RPM packages wxGTK.XXX.rpm and wxGTK-devel.XXX.rpm
-# under Linux.
-#
+# Purpose: makefile for notebook example (Unix)
+# Created: 2000-03-15
 
 CC = gcc
 
-PROGRAM = test
+PROGRAM = notebook
 
 OBJECTS = $(PROGRAM).o
 
@@ -31,5 +19,5 @@ all:    $(PROGRAM)
 $(PROGRAM):	$(OBJECTS)
 	$(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
 
-clean: 
+clean:
 	rm -f *.o $(PROGRAM)
diff --git a/samples/notebook/makefile.vc b/samples/notebook/makefile.vc
index 4ada748eda..731c76c91c 100644
--- a/samples/notebook/makefile.vc
+++ b/samples/notebook/makefile.vc
@@ -1,17 +1,10 @@
-#
-# 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.
+# Purpose: makefile for notebook example (VC++ 32bit)
+# Created: 2000-03-15
 
 # Set WXDIR for your system
 WXDIR = $(WXWIN)
 
-PROGRAM=test
+PROGRAM=notebook
 OBJECTS = $(PROGRAM).obj
 
 !include $(WXDIR)\src\makeprog.vc
diff --git a/samples/notebook/makefile.wat b/samples/notebook/makefile.wat
index 81a83e42a9..d121835cc3 100644
--- a/samples/notebook/makefile.wat
+++ b/samples/notebook/makefile.wat
@@ -1,13 +1,9 @@
-#
-# Makefile for WATCOM
-#
-# Created by Julian Smart, January 1999
-# 
-#
+# Purpose: makefile for notebook example (Watcom)
+# Created: 2000-03-15
 
 WXDIR = $(%WXWIN)
 
-PROGRAM = test
+PROGRAM = notebook
 OBJECTS = $(PROGRAM).obj
 
 !include $(WXDIR)\src\makeprog.wat
diff --git a/samples/notebook/test.cpp b/samples/notebook/notebook.cpp
similarity index 99%
rename from samples/notebook/test.cpp
rename to samples/notebook/notebook.cpp
index 02e81062fd..7ffa097f23 100644
--- a/samples/notebook/test.cpp
+++ b/samples/notebook/notebook.cpp
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        test.cpp
+// Name:        notebook.cpp
 // Purpose:     wxNotebook demo
 // Author:      Julian Smart
 // Modified by:
@@ -20,7 +20,7 @@
     #include "wx/wx.h"
 #endif
 
-#include "test.h"
+#include "notebook.h"
 
 // If 1, use a dialog. Otherwise use a frame.
 #define USE_TABBED_DIALOG 0
diff --git a/samples/notebook/test.def b/samples/notebook/notebook.def
similarity index 89%
rename from samples/notebook/test.def
rename to samples/notebook/notebook.def
index 43b2ed3907..af6749376b 100644
--- a/samples/notebook/test.def
+++ b/samples/notebook/notebook.def
@@ -1,4 +1,4 @@
-NAME         Test
+NAME         Notebook
 DESCRIPTION  'Notebook test'
 EXETYPE      WINDOWS
 STUB         'WINSTUB.EXE'
diff --git a/samples/notebook/test.h b/samples/notebook/notebook.h
similarity index 97%
rename from samples/notebook/test.h
rename to samples/notebook/notebook.h
index 6690464ae1..7cad0bed4c 100644
--- a/samples/notebook/test.h
+++ b/samples/notebook/notebook.h
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        test.h
+// Name:        notebook.h
 // Purpose:     wxNotebook demo
 // Author:      Julian Smart
 // Modified by:
@@ -9,7 +9,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#include <wx/notebook.h>
+#include "wx/notebook.h"
 
 // Define a new application
 class MyApp: public wxApp
diff --git a/samples/notebook/test.rc b/samples/notebook/notebook.rc
similarity index 100%
rename from samples/notebook/test.rc
rename to samples/notebook/notebook.rc
-- 
2.50.0

