makefile for the calendar sample as generated by makegen
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 3 Jan 2000 13:36:21 +0000 (13:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 3 Jan 2000 13:36:21 +0000 (13:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 files changed:
samples/calendar/Makefile.in [new file with mode: 0644]
samples/calendar/calendar.cpp
samples/calendar/makefile.b32 [new file with mode: 0644]
samples/calendar/makefile.bcc [new file with mode: 0644]
samples/calendar/makefile.dos [new file with mode: 0644]
samples/calendar/makefile.g95 [new file with mode: 0644]
samples/calendar/makefile.sc [new file with mode: 0644]
samples/calendar/makefile.sl [new file with mode: 0644]
samples/calendar/makefile.twn [new file with mode: 0644]
samples/calendar/makefile.unx [new file with mode: 0644]
samples/calendar/makefile.vc [new file with mode: 0644]
samples/calendar/makefile.wat [new file with mode: 0644]

diff --git a/samples/calendar/Makefile.in b/samples/calendar/Makefile.in
new file mode 100644 (file)
index 0000000..cc04139
--- /dev/null
@@ -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
+
index 4dbe677028b657408a92a2b14529e6e5bcd87a3a..88d1c082847f4336563c5705ae155dadb48625bf 100644 (file)
     #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 (file)
index 0000000..dd15b36
--- /dev/null
@@ -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 (file)
index 0000000..160696d
--- /dev/null
@@ -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 (file)
index 0000000..40ec5ad
--- /dev/null
@@ -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 (file)
index 0000000..82ac2e3
--- /dev/null
@@ -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 (file)
index 0000000..551ef29
--- /dev/null
@@ -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 (file)
index 0000000..9fb2003
--- /dev/null
@@ -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 (file)
index 0000000..541d3b7
--- /dev/null
@@ -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 (file)
index 0000000..c67a14a
--- /dev/null
@@ -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 (file)
index 0000000..c7c4210
--- /dev/null
@@ -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 (file)
index 0000000..61ebd2d
--- /dev/null
@@ -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
+
+