From 410cb77e910dbb799e9201d54ce56e744ac0a631 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 27 May 1999 20:38:29 +0000 Subject: [PATCH] Added some makefiles for caret, scroll and drawing samples. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/caret/makefile.b32 | 16 ++++++++++++++ samples/caret/makefile.bcc | 19 ++++++++++++++++ samples/caret/makefile.dos | 17 ++++++++++++++ samples/caret/makefile.g95 | 16 ++++++++++++++ samples/caret/makefile.twn | 43 ++++++++++++++++++++++++++++++++++++ samples/caret/makefile.unx | 17 ++++++++++++++ samples/caret/makefile.vc | 18 +++++++++++++++ samples/caret/makefile.wat | 15 +++++++++++++ samples/drawing/makefile.b32 | 16 ++++++++++++++ samples/drawing/makefile.bcc | 19 ++++++++++++++++ samples/drawing/makefile.dos | 17 ++++++++++++++ samples/drawing/makefile.g95 | 16 ++++++++++++++ samples/drawing/makefile.twn | 43 ++++++++++++++++++++++++++++++++++++ samples/drawing/makefile.unx | 17 ++++++++++++++ samples/drawing/makefile.vc | 18 +++++++++++++++ samples/drawing/makefile.wat | 15 +++++++++++++ samples/scroll/makefile.b32 | 16 ++++++++++++++ samples/scroll/makefile.bcc | 19 ++++++++++++++++ samples/scroll/makefile.dos | 17 ++++++++++++++ samples/scroll/makefile.g95 | 16 ++++++++++++++ samples/scroll/makefile.twn | 43 ++++++++++++++++++++++++++++++++++++ samples/scroll/makefile.unx | 17 ++++++++++++++ samples/scroll/makefile.vc | 18 +++++++++++++++ samples/scroll/makefile.wat | 15 +++++++++++++ 24 files changed, 483 insertions(+) create mode 100644 samples/caret/makefile.b32 create mode 100644 samples/caret/makefile.bcc create mode 100644 samples/caret/makefile.dos create mode 100644 samples/caret/makefile.g95 create mode 100644 samples/caret/makefile.twn create mode 100644 samples/caret/makefile.unx create mode 100644 samples/caret/makefile.vc create mode 100644 samples/caret/makefile.wat create mode 100644 samples/drawing/makefile.b32 create mode 100644 samples/drawing/makefile.bcc create mode 100644 samples/drawing/makefile.dos create mode 100644 samples/drawing/makefile.g95 create mode 100644 samples/drawing/makefile.twn create mode 100644 samples/drawing/makefile.unx create mode 100644 samples/drawing/makefile.vc create mode 100644 samples/drawing/makefile.wat create mode 100644 samples/scroll/makefile.b32 create mode 100644 samples/scroll/makefile.bcc create mode 100644 samples/scroll/makefile.dos create mode 100644 samples/scroll/makefile.g95 create mode 100644 samples/scroll/makefile.twn create mode 100644 samples/scroll/makefile.unx create mode 100644 samples/scroll/makefile.vc create mode 100644 samples/scroll/makefile.wat diff --git a/samples/caret/makefile.b32 b/samples/caret/makefile.b32 new file mode 100644 index 0000000000..79ed3ebb90 --- /dev/null +++ b/samples/caret/makefile.b32 @@ -0,0 +1,16 @@ +# +# File: makefile.b32 +# Author: Julian Smart +# Created: 1999 +# Updated: +# Copyright: +# +# Makefile : Builds sample for 32-bit BC++ + +WXDIR = $(WXWIN) + +TARGET=caret +OBJECTS = $(TARGET).obj + +!include $(WXDIR)\src\makeprog.b32 + diff --git a/samples/caret/makefile.bcc b/samples/caret/makefile.bcc new file mode 100644 index 0000000000..8849c0a542 --- /dev/null +++ b/samples/caret/makefile.bcc @@ -0,0 +1,19 @@ +# +# File: makefile.bcc +# Author: Julian Smart +# Created: 1998 +# Updated: +# +# Builds a BC++ 16-bit sample + +!if "$(WXWIN)" == "" +!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx +!endif + +WXDIR = $(WXWIN) + +TARGET=caret +OBJECTS=$(TARGET).obj + +!include $(WXDIR)\src\makeprog.bcc + diff --git a/samples/caret/makefile.dos b/samples/caret/makefile.dos new file mode 100644 index 0000000000..170747a6a1 --- /dev/null +++ b/samples/caret/makefile.dos @@ -0,0 +1,17 @@ +# +# 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 + +WXDIR = $(WXWIN) + +TARGET=caret +OBJECTS=$(TARGET).obj + +!include $(WXDIR)\src\makeprog.msc + diff --git a/samples/caret/makefile.g95 b/samples/caret/makefile.g95 new file mode 100644 index 0000000000..32f1406e2f --- /dev/null +++ b/samples/caret/makefile.g95 @@ -0,0 +1,16 @@ +# +# File: makefile.g95 +# Author: Julian Smart +# Created: 1999 +# Updated: +# Copyright: (c) Julian Smart, 1999 +# +# Makefile for wxWindows sample (Cygwin/Mingw32). + +WXDIR = ../.. + +TARGET=caret +OBJECTS = $(TARGET).o + +include $(WXDIR)/src/makeprog.g95 + diff --git a/samples/caret/makefile.twn b/samples/caret/makefile.twn new file mode 100644 index 0000000000..cd75a73860 --- /dev/null +++ b/samples/caret/makefile.twn @@ -0,0 +1,43 @@ +# +# File: makefile.unx +# Author: Julian Smart +# Created: 1993 +# Updated: +# Copyright: (c) 1993, AIAI, University of Edinburgh +# +# "%W% %G%" +# +# Makefile for caret example (UNIX). + +WXDIR = ../.. + +# All common UNIX compiler flags and options are now in +# this central makefile. +include $(WXDIR)/src/maketwin.env + +OBJECTS = $(OBJDIR)/caret.$(OBJSUFF) $(OBJDIR)/caret_resources.$(OBJSUFF) + +all: $(OBJDIR) caret$(GUISUFFIX)$(EXESUFF) + +wx: + +$(OBJDIR): + mkdir $(OBJDIR) + +caret$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB) + $(CC) $(LDFLAGS) -o caret$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS) + +$(OBJDIR)/caret.$(OBJSUFF): caret.$(SRCSUFF) + $(CC) -c $(CPPFLAGS) -o $@ caret.$(SRCSUFF) + +caret_resources.c: caret.rc + $(RESCOMP) $(RCINPUTSWITCH) caret.rc $(RCOUTPUTSWITCH) caret_resources.c $(RESFLAGS) + +$(OBJDIR)/caret_resources.$(OBJSUFF): caret_resources.c + $(CC) -c $(CPPFLAGS) -o $@ caret_resources.c + +#$(OBJDIR)/caret_resources.o: caret.rc +# $(RESCOMP) $(RCINPUTSWITCH) caret.rc $(RCOUTPUTSWITCH) $(OBJDIR)/caret_resources.o $(RESFLAGS) + +clean: + rm -f $(OBJECTS) caret$(GUISUFFIX).exe core *.rsc *.res diff --git a/samples/caret/makefile.unx b/samples/caret/makefile.unx new file mode 100644 index 0000000000..e7897f65e8 --- /dev/null +++ b/samples/caret/makefile.unx @@ -0,0 +1,17 @@ +# +# File: makefile.unx +# Author: Julian Smart +# Created: 1998 +# Updated: +# Copyright: (c) 1998 Julian Smart +# +# "%W% %G%" +# +# Makefile for caret example (UNIX). + +PROGRAM=caret + +OBJECTS=$(PROGRAM).o + +include ../../src/makeprog.env + diff --git a/samples/caret/makefile.vc b/samples/caret/makefile.vc new file mode 100644 index 0000000000..3fedef300c --- /dev/null +++ b/samples/caret/makefile.vc @@ -0,0 +1,18 @@ +# +# 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) + +PROGRAM=caret +OBJECTS = $(PROGRAM).obj + +!include $(WXDIR)\src\makeprog.vc + diff --git a/samples/caret/makefile.wat b/samples/caret/makefile.wat new file mode 100644 index 0000000000..a234176792 --- /dev/null +++ b/samples/caret/makefile.wat @@ -0,0 +1,15 @@ +# +# Makefile for WATCOM +# +# Created by Julian Smart, January 1999 +# +# + +WXDIR = $(%WXWIN) + +PROGRAM = caret +OBJECTS = $(PROGRAM).obj + +!include $(WXDIR)\src\makeprog.wat + + diff --git a/samples/drawing/makefile.b32 b/samples/drawing/makefile.b32 new file mode 100644 index 0000000000..ed9f0191e0 --- /dev/null +++ b/samples/drawing/makefile.b32 @@ -0,0 +1,16 @@ +# +# File: makefile.b32 +# Author: Julian Smart +# Created: 1999 +# Updated: +# Copyright: +# +# Makefile : Builds sample for 32-bit BC++ + +WXDIR = $(WXWIN) + +TARGET=drawing +OBJECTS = $(TARGET).obj + +!include $(WXDIR)\src\makeprog.b32 + diff --git a/samples/drawing/makefile.bcc b/samples/drawing/makefile.bcc new file mode 100644 index 0000000000..a8d9d70964 --- /dev/null +++ b/samples/drawing/makefile.bcc @@ -0,0 +1,19 @@ +# +# File: makefile.bcc +# Author: Julian Smart +# Created: 1998 +# Updated: +# +# Builds a BC++ 16-bit sample + +!if "$(WXWIN)" == "" +!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx +!endif + +WXDIR = $(WXWIN) + +TARGET=drawing +OBJECTS=$(TARGET).obj + +!include $(WXDIR)\src\makeprog.bcc + diff --git a/samples/drawing/makefile.dos b/samples/drawing/makefile.dos new file mode 100644 index 0000000000..d04f9c3dba --- /dev/null +++ b/samples/drawing/makefile.dos @@ -0,0 +1,17 @@ +# +# 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 + +WXDIR = $(WXWIN) + +TARGET=drawing +OBJECTS=$(TARGET).obj + +!include $(WXDIR)\src\makeprog.msc + diff --git a/samples/drawing/makefile.g95 b/samples/drawing/makefile.g95 new file mode 100644 index 0000000000..581ec7408b --- /dev/null +++ b/samples/drawing/makefile.g95 @@ -0,0 +1,16 @@ +# +# File: makefile.g95 +# Author: Julian Smart +# Created: 1999 +# Updated: +# Copyright: (c) Julian Smart, 1999 +# +# Makefile for wxWindows sample (Cygwin/Mingw32). + +WXDIR = ../.. + +TARGET=drawing +OBJECTS = $(TARGET).o + +include $(WXDIR)/src/makeprog.g95 + diff --git a/samples/drawing/makefile.twn b/samples/drawing/makefile.twn new file mode 100644 index 0000000000..580d997375 --- /dev/null +++ b/samples/drawing/makefile.twn @@ -0,0 +1,43 @@ +# +# File: makefile.unx +# Author: Julian Smart +# Created: 1993 +# Updated: +# Copyright: (c) 1993, AIAI, University of Edinburgh +# +# "%W% %G%" +# +# Makefile for drawing example (UNIX). + +WXDIR = ../.. + +# All common UNIX compiler flags and options are now in +# this central makefile. +include $(WXDIR)/src/maketwin.env + +OBJECTS = $(OBJDIR)/drawing.$(OBJSUFF) $(OBJDIR)/drawing_resources.$(OBJSUFF) + +all: $(OBJDIR) drawing$(GUISUFFIX)$(EXESUFF) + +wx: + +$(OBJDIR): + mkdir $(OBJDIR) + +drawing$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB) + $(CC) $(LDFLAGS) -o drawing$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS) + +$(OBJDIR)/drawing.$(OBJSUFF): drawing.$(SRCSUFF) + $(CC) -c $(CPPFLAGS) -o $@ drawing.$(SRCSUFF) + +drawing_resources.c: drawing.rc + $(RESCOMP) $(RCINPUTSWITCH) drawing.rc $(RCOUTPUTSWITCH) drawing_resources.c $(RESFLAGS) + +$(OBJDIR)/drawing_resources.$(OBJSUFF): drawing_resources.c + $(CC) -c $(CPPFLAGS) -o $@ drawing_resources.c + +#$(OBJDIR)/drawing_resources.o: drawing.rc +# $(RESCOMP) $(RCINPUTSWITCH) drawing.rc $(RCOUTPUTSWITCH) $(OBJDIR)/drawing_resources.o $(RESFLAGS) + +clean: + rm -f $(OBJECTS) drawing$(GUISUFFIX).exe core *.rsc *.res diff --git a/samples/drawing/makefile.unx b/samples/drawing/makefile.unx new file mode 100644 index 0000000000..9b1b4e058a --- /dev/null +++ b/samples/drawing/makefile.unx @@ -0,0 +1,17 @@ +# +# File: makefile.unx +# Author: Julian Smart +# Created: 1998 +# Updated: +# Copyright: (c) 1998 Julian Smart +# +# "%W% %G%" +# +# Makefile for drawing example (UNIX). + +PROGRAM=drawing + +OBJECTS=$(PROGRAM).o + +include ../../src/makeprog.env + diff --git a/samples/drawing/makefile.vc b/samples/drawing/makefile.vc new file mode 100644 index 0000000000..4871acbce1 --- /dev/null +++ b/samples/drawing/makefile.vc @@ -0,0 +1,18 @@ +# +# 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) + +PROGRAM=drawing +OBJECTS = $(PROGRAM).obj + +!include $(WXDIR)\src\makeprog.vc + diff --git a/samples/drawing/makefile.wat b/samples/drawing/makefile.wat new file mode 100644 index 0000000000..91a4751a5e --- /dev/null +++ b/samples/drawing/makefile.wat @@ -0,0 +1,15 @@ +# +# Makefile for WATCOM +# +# Created by Julian Smart, January 1999 +# +# + +WXDIR = $(%WXWIN) + +PROGRAM = drawing +OBJECTS = $(PROGRAM).obj + +!include $(WXDIR)\src\makeprog.wat + + diff --git a/samples/scroll/makefile.b32 b/samples/scroll/makefile.b32 new file mode 100644 index 0000000000..1c1fd190d4 --- /dev/null +++ b/samples/scroll/makefile.b32 @@ -0,0 +1,16 @@ +# +# File: makefile.b32 +# Author: Julian Smart +# Created: 1999 +# Updated: +# Copyright: +# +# Makefile : Builds sample for 32-bit BC++ + +WXDIR = $(WXWIN) + +TARGET=scroll +OBJECTS = $(TARGET).obj + +!include $(WXDIR)\src\makeprog.b32 + diff --git a/samples/scroll/makefile.bcc b/samples/scroll/makefile.bcc new file mode 100644 index 0000000000..855d4f58b7 --- /dev/null +++ b/samples/scroll/makefile.bcc @@ -0,0 +1,19 @@ +# +# File: makefile.bcc +# Author: Julian Smart +# Created: 1998 +# Updated: +# +# Builds a BC++ 16-bit sample + +!if "$(WXWIN)" == "" +!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx +!endif + +WXDIR = $(WXWIN) + +TARGET=scroll +OBJECTS=$(TARGET).obj + +!include $(WXDIR)\src\makeprog.bcc + diff --git a/samples/scroll/makefile.dos b/samples/scroll/makefile.dos new file mode 100644 index 0000000000..c9c49ed45b --- /dev/null +++ b/samples/scroll/makefile.dos @@ -0,0 +1,17 @@ +# +# 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 + +WXDIR = $(WXWIN) + +TARGET=scroll +OBJECTS=$(TARGET).obj + +!include $(WXDIR)\src\makeprog.msc + diff --git a/samples/scroll/makefile.g95 b/samples/scroll/makefile.g95 new file mode 100644 index 0000000000..d3e183de84 --- /dev/null +++ b/samples/scroll/makefile.g95 @@ -0,0 +1,16 @@ +# +# File: makefile.g95 +# Author: Julian Smart +# Created: 1999 +# Updated: +# Copyright: (c) Julian Smart, 1999 +# +# Makefile for wxWindows sample (Cygwin/Mingw32). + +WXDIR = ../.. + +TARGET=scroll +OBJECTS = $(TARGET).o + +include $(WXDIR)/src/makeprog.g95 + diff --git a/samples/scroll/makefile.twn b/samples/scroll/makefile.twn new file mode 100644 index 0000000000..93b6bce1d7 --- /dev/null +++ b/samples/scroll/makefile.twn @@ -0,0 +1,43 @@ +# +# File: makefile.unx +# Author: Julian Smart +# Created: 1993 +# Updated: +# Copyright: (c) 1993, AIAI, University of Edinburgh +# +# "%W% %G%" +# +# Makefile for scroll example (UNIX). + +WXDIR = ../.. + +# All common UNIX compiler flags and options are now in +# this central makefile. +include $(WXDIR)/src/maketwin.env + +OBJECTS = $(OBJDIR)/scroll.$(OBJSUFF) $(OBJDIR)/scroll_resources.$(OBJSUFF) + +all: $(OBJDIR) scroll$(GUISUFFIX)$(EXESUFF) + +wx: + +$(OBJDIR): + mkdir $(OBJDIR) + +scroll$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB) + $(CC) $(LDFLAGS) -o scroll$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS) + +$(OBJDIR)/scroll.$(OBJSUFF): scroll.$(SRCSUFF) + $(CC) -c $(CPPFLAGS) -o $@ scroll.$(SRCSUFF) + +scroll_resources.c: scroll.rc + $(RESCOMP) $(RCINPUTSWITCH) scroll.rc $(RCOUTPUTSWITCH) scroll_resources.c $(RESFLAGS) + +$(OBJDIR)/scroll_resources.$(OBJSUFF): scroll_resources.c + $(CC) -c $(CPPFLAGS) -o $@ scroll_resources.c + +#$(OBJDIR)/scroll_resources.o: scroll.rc +# $(RESCOMP) $(RCINPUTSWITCH) scroll.rc $(RCOUTPUTSWITCH) $(OBJDIR)/scroll_resources.o $(RESFLAGS) + +clean: + rm -f $(OBJECTS) scroll$(GUISUFFIX).exe core *.rsc *.res diff --git a/samples/scroll/makefile.unx b/samples/scroll/makefile.unx new file mode 100644 index 0000000000..9f0381fbbb --- /dev/null +++ b/samples/scroll/makefile.unx @@ -0,0 +1,17 @@ +# +# File: makefile.unx +# Author: Julian Smart +# Created: 1998 +# Updated: +# Copyright: (c) 1998 Julian Smart +# +# "%W% %G%" +# +# Makefile for scroll example (UNIX). + +PROGRAM=scroll + +OBJECTS=$(PROGRAM).o + +include ../../src/makeprog.env + diff --git a/samples/scroll/makefile.vc b/samples/scroll/makefile.vc new file mode 100644 index 0000000000..1dcc7c4080 --- /dev/null +++ b/samples/scroll/makefile.vc @@ -0,0 +1,18 @@ +# +# 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) + +PROGRAM=scroll +OBJECTS = $(PROGRAM).obj + +!include $(WXDIR)\src\makeprog.vc + diff --git a/samples/scroll/makefile.wat b/samples/scroll/makefile.wat new file mode 100644 index 0000000000..1db3a07c59 --- /dev/null +++ b/samples/scroll/makefile.wat @@ -0,0 +1,15 @@ +# +# Makefile for WATCOM +# +# Created by Julian Smart, January 1999 +# +# + +WXDIR = $(%WXWIN) + +PROGRAM = scroll +OBJECTS = $(PROGRAM).obj + +!include $(WXDIR)\src\makeprog.wat + + -- 2.45.2