makegen program for makefile generation for the samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
13
utils/makegen/templates/Makefile.in
Normal file
13
utils/makegen/templates/Makefile.in
Normal file
@@ -0,0 +1,13 @@
|
||||
# Purpose: makefile for #NAME example (UNIX).
|
||||
# Created: #DATE
|
||||
|
||||
top_srcdir = @top_srcdir@
|
||||
top_builddir = ../..
|
||||
program_dir = samples/#NAME
|
||||
|
||||
PROGRAM=#NAME
|
||||
|
||||
OBJECTS=$(PROGRAM).o
|
||||
|
||||
include ../../src/makeprog.env
|
||||
|
10
utils/makegen/templates/makefile.b32
Normal file
10
utils/makegen/templates/makefile.b32
Normal file
@@ -0,0 +1,10 @@
|
||||
# Purpose: makefile for #NAME example (BC++ 32bit)
|
||||
# Created: #DATE
|
||||
|
||||
WXDIR = $(WXWIN)
|
||||
|
||||
TARGET=#NAME
|
||||
OBJECTS = $(TARGET).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.b32
|
||||
|
14
utils/makegen/templates/makefile.bcc
Normal file
14
utils/makegen/templates/makefile.bcc
Normal file
@@ -0,0 +1,14 @@
|
||||
# Purpose: makefile for #NAME example (BC++ 16bit)
|
||||
# Created: #DATE
|
||||
|
||||
!if "$(WXWIN)" == ""
|
||||
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
||||
!endif
|
||||
|
||||
WXDIR = $(WXWIN)
|
||||
|
||||
TARGET=#NAME
|
||||
OBJECTS=$(TARGET).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.bcc
|
||||
|
10
utils/makegen/templates/makefile.dos
Normal file
10
utils/makegen/templates/makefile.dos
Normal file
@@ -0,0 +1,10 @@
|
||||
# Purpose: makefile for #NAME example (VC++ 1.5x)
|
||||
# Created: #DATE
|
||||
|
||||
WXDIR = $(WXWIN)
|
||||
|
||||
TARGET=#NAME
|
||||
OBJECTS=$(TARGET).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.msc
|
||||
|
10
utils/makegen/templates/makefile.g95
Normal file
10
utils/makegen/templates/makefile.g95
Normal file
@@ -0,0 +1,10 @@
|
||||
# Purpose: makefile for #NAME example (Cygwin/Mingw32)
|
||||
# Created: #03.01.00
|
||||
|
||||
WXDIR = ../..
|
||||
|
||||
TARGET=#NAME
|
||||
OBJECTS = $(TARGET).o
|
||||
|
||||
include $(WXDIR)\src\makeprog.g95
|
||||
|
37
utils/makegen/templates/makefile.sc
Normal file
37
utils/makegen/templates/makefile.sc
Normal file
@@ -0,0 +1,37 @@
|
||||
# Purpose: makefile for #NAME example (Symantec C++)
|
||||
# Created: #DATE
|
||||
|
||||
WXDIR = $(WXWIN)
|
||||
WXLIB = $(WXDIR)\lib\wx.lib
|
||||
INCDIR = $(WXDIR)\include
|
||||
INCLUDE=$(INCDIR)
|
||||
TARGET=#NAME
|
||||
|
||||
include $(WXDIR)\src\makesc.env
|
||||
|
||||
#NAME.exe: #NAME.obj $(DEFFILE) #NAME.res
|
||||
*$(CC) $(LDFLAGS) -o$@ $** $(LIBS)
|
||||
*$(RC) -k #NAME.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
|
||||
|
14
utils/makegen/templates/makefile.sl
Normal file
14
utils/makegen/templates/makefile.sl
Normal file
@@ -0,0 +1,14 @@
|
||||
# Purpose: makefile for #NAME example (Salford C++)
|
||||
# Created: #DATE
|
||||
|
||||
PROGRAM = #NAME
|
||||
OBJECTS = $(PROGRAM).obj
|
||||
|
||||
include ..\..\src\makeprog.sl
|
||||
|
||||
all: wx $(TARGET)
|
||||
|
||||
wx:
|
||||
cd $(WXDIR)\src\msw ^ mk32 -f makefile.sl all
|
||||
cd $(WXDIR)\samples\#NAME
|
||||
|
35
utils/makegen/templates/makefile.twn
Normal file
35
utils/makegen/templates/makefile.twn
Normal file
@@ -0,0 +1,35 @@
|
||||
# Purpose: makefile for #NAME example (TWIN)
|
||||
# Created: #DATE
|
||||
|
||||
WXDIR = ../..
|
||||
|
||||
# All common UNIX compiler flags and options are now in
|
||||
# this central makefile.
|
||||
include $(WXDIR)/src/maketwin.env
|
||||
|
||||
OBJECTS = $(OBJDIR)/#NAME.$(OBJSUFF) $(OBJDIR)/#NAME.$(OBJSUFF)
|
||||
|
||||
all: $(OBJDIR) #NAME$(GUISUFFIX)$(EXESUFF)
|
||||
|
||||
wx:
|
||||
|
||||
$(OBJDIR):
|
||||
mkdir $(OBJDIR)
|
||||
|
||||
#NAME$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
|
||||
$(CC) $(LDFLAGS) -o #NAME$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS)
|
||||
|
||||
$(OBJDIR)/#NAME.$(OBJSUFF): #NAME.$(SRCSUFF)
|
||||
$(CC) -c $(CPPFLAGS) -o $@ #NAME.$(SRCSUFF)
|
||||
|
||||
#NAME.c: #NAME.rc
|
||||
$(RESCOMP) $(RCINPUTSWITCH) #NAME.rc $(RCOUTPUTSWITCH) #NAME.c $(RESFLAGS)
|
||||
|
||||
$(OBJDIR)/#NAME.$(OBJSUFF): #NAME.c
|
||||
$(CC) -c $(CPPFLAGS) -o $@ #NAME.c
|
||||
|
||||
#$(OBJDIR)/#NAME.o: #NAME.rc
|
||||
# $(RESCOMP) $(RCINPUTSWITCH) #NAME.rc $(RCOUTPUTSWITCH) $(OBJDIR)/#NAME.o $(RESFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS) #NAME$(GUISUFFIX).exe core *.rsc *.res
|
23
utils/makegen/templates/makefile.unx
Normal file
23
utils/makegen/templates/makefile.unx
Normal file
@@ -0,0 +1,23 @@
|
||||
# Purpose: makefile for #NAME example (Unix)
|
||||
# Created: #DATE
|
||||
|
||||
CC = gcc
|
||||
|
||||
PROGRAM = #NAME
|
||||
|
||||
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)
|
11
utils/makegen/templates/makefile.vc
Normal file
11
utils/makegen/templates/makefile.vc
Normal file
@@ -0,0 +1,11 @@
|
||||
# Purpose: makefile for #NAME example (VC++ 32bit)
|
||||
# Created: #DATE
|
||||
|
||||
# Set WXDIR for your system
|
||||
WXDIR = $(WXWIN)
|
||||
|
||||
PROGRAM=#NAME
|
||||
OBJECTS = $(PROGRAM).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.vc
|
||||
|
11
utils/makegen/templates/makefile.wat
Normal file
11
utils/makegen/templates/makefile.wat
Normal file
@@ -0,0 +1,11 @@
|
||||
# Purpose: makefile for #NAME example (Watcom)
|
||||
# Created: #DATE
|
||||
|
||||
WXDIR = $(%WXWIN)
|
||||
|
||||
PROGRAM = #NAME
|
||||
OBJECTS = $(PROGRAM).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.wat
|
||||
|
||||
|
Reference in New Issue
Block a user