From 273b7ed9d0727d94f80e6ac65778ceea5fd87d43 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 3 Jan 2000 13:36:21 +0000 Subject: [PATCH] makefile for the calendar sample as generated by makegen git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/calendar/Makefile.in | 13 ++++++++++++ samples/calendar/calendar.cpp | 8 ++++++-- samples/calendar/makefile.b32 | 10 ++++++++++ samples/calendar/makefile.bcc | 14 +++++++++++++ samples/calendar/makefile.dos | 10 ++++++++++ samples/calendar/makefile.g95 | 10 ++++++++++ samples/calendar/makefile.sc | 37 +++++++++++++++++++++++++++++++++++ samples/calendar/makefile.sl | 14 +++++++++++++ samples/calendar/makefile.twn | 35 +++++++++++++++++++++++++++++++++ samples/calendar/makefile.unx | 23 ++++++++++++++++++++++ samples/calendar/makefile.vc | 11 +++++++++++ samples/calendar/makefile.wat | 11 +++++++++++ 12 files changed, 194 insertions(+), 2 deletions(-) create mode 100644 samples/calendar/Makefile.in create mode 100644 samples/calendar/makefile.b32 create mode 100644 samples/calendar/makefile.bcc create mode 100644 samples/calendar/makefile.dos create mode 100644 samples/calendar/makefile.g95 create mode 100644 samples/calendar/makefile.sc create mode 100644 samples/calendar/makefile.sl create mode 100644 samples/calendar/makefile.twn create mode 100644 samples/calendar/makefile.unx create mode 100644 samples/calendar/makefile.vc create mode 100644 samples/calendar/makefile.wat diff --git a/samples/calendar/Makefile.in b/samples/calendar/Makefile.in new file mode 100644 index 0000000000..cc04139c6d --- /dev/null +++ b/samples/calendar/Makefile.in @@ -0,0 +1,13 @@ +# Purpose: makefile for calendar example (UNIX). +# Created: 2000-01-03 + +top_srcdir = @top_srcdir@ +top_builddir = ../.. +program_dir = samples/calendar + +PROGRAM=calendar + +OBJECTS=$(PROGRAM).o + +include ../../src/makeprog.env + diff --git a/samples/calendar/calendar.cpp b/samples/calendar/calendar.cpp index 4dbe677028..88d1c08284 100644 --- a/samples/calendar/calendar.cpp +++ b/samples/calendar/calendar.cpp @@ -29,11 +29,15 @@ #pragma hdrstop #endif -// for all others, include the necessary headers (this file is usually all you -// need because it includes almost all "standard" wxWindows headers +// for all others, include the necessary headers #ifndef WX_PRECOMP #include "wx/app.h" #include "wx/frame.h" + #include "wx/panel.h" + #include "wx/stattext.h" + #include "wx/menu.h" + #include "wx/layout.h" + #include "wx/msgdlg.h" #endif #include "wx/calctrl.h" diff --git a/samples/calendar/makefile.b32 b/samples/calendar/makefile.b32 new file mode 100644 index 0000000000..dd15b3673f --- /dev/null +++ b/samples/calendar/makefile.b32 @@ -0,0 +1,10 @@ +# Purpose: makefile for calendar example (BC++ 32bit) +# Created: 2000-01-03 + +WXDIR = $(WXWIN) + +TARGET=calendar +OBJECTS = $(TARGET).obj + +!include $(WXDIR)\src\makeprog.b32 + diff --git a/samples/calendar/makefile.bcc b/samples/calendar/makefile.bcc new file mode 100644 index 0000000000..160696d2ca --- /dev/null +++ b/samples/calendar/makefile.bcc @@ -0,0 +1,14 @@ +# Purpose: makefile for calendar example (BC++ 16bit) +# Created: 2000-01-03 + +!if "$(WXWIN)" == "" +!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx +!endif + +WXDIR = $(WXWIN) + +TARGET=calendar +OBJECTS=$(TARGET).obj + +!include $(WXDIR)\src\makeprog.bcc + diff --git a/samples/calendar/makefile.dos b/samples/calendar/makefile.dos new file mode 100644 index 0000000000..40ec5adf6a --- /dev/null +++ b/samples/calendar/makefile.dos @@ -0,0 +1,10 @@ +# Purpose: makefile for calendar example (VC++ 1.5x) +# Created: 2000-01-03 + +WXDIR = $(WXWIN) + +TARGET=calendar +OBJECTS=$(TARGET).obj + +!include $(WXDIR)\src\makeprog.msc + diff --git a/samples/calendar/makefile.g95 b/samples/calendar/makefile.g95 new file mode 100644 index 0000000000..82ac2e3311 --- /dev/null +++ b/samples/calendar/makefile.g95 @@ -0,0 +1,10 @@ +# Purpose: makefile for calendar example (Cygwin/Mingw32) +# Created: #03.01.00 + +WXDIR = ../.. + +TARGET=calendar +OBJECTS = $(TARGET).o + +include $(WXDIR)\src\makeprog.g95 + diff --git a/samples/calendar/makefile.sc b/samples/calendar/makefile.sc new file mode 100644 index 0000000000..551ef29b7f --- /dev/null +++ b/samples/calendar/makefile.sc @@ -0,0 +1,37 @@ +# Purpose: makefile for calendar example (Symantec C++) +# Created: 2000-01-03 + +WXDIR = $(WXWIN) +WXLIB = $(WXDIR)\lib\wx.lib +INCDIR = $(WXDIR)\include +INCLUDE=$(INCDIR) +TARGET=calendar + +include $(WXDIR)\src\makesc.env + +calendar.exe: calendar.obj $(DEFFILE) calendar.res + *$(CC) $(LDFLAGS) -o$@ $** $(LIBS) + *$(RC) -k calendar.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/calendar/makefile.sl b/samples/calendar/makefile.sl new file mode 100644 index 0000000000..9fb20039da --- /dev/null +++ b/samples/calendar/makefile.sl @@ -0,0 +1,14 @@ +# Purpose: makefile for calendar example (Salford C++) +# Created: 2000-01-03 + +PROGRAM = calendar +OBJECTS = $(PROGRAM).obj + +include ..\..\src\makeprog.sl + +all: wx $(TARGET) + +wx: + cd $(WXDIR)\src\msw ^ mk32 -f makefile.sl all + cd $(WXDIR)\samples\calendar + diff --git a/samples/calendar/makefile.twn b/samples/calendar/makefile.twn new file mode 100644 index 0000000000..541d3b7008 --- /dev/null +++ b/samples/calendar/makefile.twn @@ -0,0 +1,35 @@ +# Purpose: makefile for calendar example (TWIN) +# Created: 2000-01-03 + +WXDIR = ../.. + +# All common UNIX compiler flags and options are now in +# this central makefile. +include $(WXDIR)/src/maketwin.env + +OBJECTS = $(OBJDIR)/calendar.$(OBJSUFF) $(OBJDIR)/calendar.$(OBJSUFF) + +all: $(OBJDIR) calendar$(GUISUFFIX)$(EXESUFF) + +wx: + +$(OBJDIR): + mkdir $(OBJDIR) + +calendar$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB) + $(CC) $(LDFLAGS) -o calendar$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS) + +$(OBJDIR)/calendar.$(OBJSUFF): calendar.$(SRCSUFF) + $(CC) -c $(CPPFLAGS) -o $@ calendar.$(SRCSUFF) + +calendar.c: calendar.rc + $(RESCOMP) $(RCINPUTSWITCH) calendar.rc $(RCOUTPUTSWITCH) calendar.c $(RESFLAGS) + +$(OBJDIR)/calendar.$(OBJSUFF): calendar.c + $(CC) -c $(CPPFLAGS) -o $@ calendar.c + +#$(OBJDIR)/calendar.o: calendar.rc +# $(RESCOMP) $(RCINPUTSWITCH) calendar.rc $(RCOUTPUTSWITCH) $(OBJDIR)/calendar.o $(RESFLAGS) + +clean: + rm -f $(OBJECTS) calendar$(GUISUFFIX).exe core *.rsc *.res diff --git a/samples/calendar/makefile.unx b/samples/calendar/makefile.unx new file mode 100644 index 0000000000..c67a14ad14 --- /dev/null +++ b/samples/calendar/makefile.unx @@ -0,0 +1,23 @@ +# Purpose: makefile for calendar example (Unix) +# Created: 2000-01-03 + +CC = gcc + +PROGRAM = calendar + +OBJECTS = $(PROGRAM).o + +# implementation + +.SUFFIXES: .o .cpp + +.cpp.o : + $(CC) -c `wx-config --cflags` -o $@ $< + +all: $(PROGRAM) + +$(PROGRAM): $(OBJECTS) + $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` + +clean: + rm -f *.o $(PROGRAM) diff --git a/samples/calendar/makefile.vc b/samples/calendar/makefile.vc new file mode 100644 index 0000000000..c7c4210d98 --- /dev/null +++ b/samples/calendar/makefile.vc @@ -0,0 +1,11 @@ +# Purpose: makefile for calendar example (VC++ 32bit) +# Created: 2000-01-03 + +# Set WXDIR for your system +WXDIR = $(WXWIN) + +PROGRAM=calendar +OBJECTS = $(PROGRAM).obj + +!include $(WXDIR)\src\makeprog.vc + diff --git a/samples/calendar/makefile.wat b/samples/calendar/makefile.wat new file mode 100644 index 0000000000..61ebd2d109 --- /dev/null +++ b/samples/calendar/makefile.wat @@ -0,0 +1,11 @@ +# Purpose: makefile for calendar example (Watcom) +# Created: 2000-01-03 + +WXDIR = $(%WXWIN) + +PROGRAM = calendar +OBJECTS = $(PROGRAM).obj + +!include $(WXDIR)\src\makeprog.wat + + -- 2.47.2