Added more makefiles; fixed some samples for Cygwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
18
utils/glcanvas/samples/cube/makefile.b32
Normal file
18
utils/glcanvas/samples/cube/makefile.b32
Normal file
@@ -0,0 +1,18 @@
|
||||
#
|
||||
# File: makefile.b32
|
||||
# Author: Julian Smart
|
||||
# Created: 1999
|
||||
# Updated:
|
||||
# Copyright:
|
||||
#
|
||||
# Makefile : Builds sample for 32-bit BC++
|
||||
|
||||
WXDIR = $(WXWIN)
|
||||
|
||||
TARGET=cube
|
||||
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
|
||||
EXTRACPPFLAGS=-I$(WXDIR)\utils\glcanvas\win
|
||||
OBJECTS = $(TARGET).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.b32
|
||||
|
21
utils/glcanvas/samples/cube/makefile.bcc
Normal file
21
utils/glcanvas/samples/cube/makefile.bcc
Normal file
@@ -0,0 +1,21 @@
|
||||
#
|
||||
# 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=cube
|
||||
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
|
||||
EXTRACPPFLAGS=-I$(WXDIR)\utils\glcanvas\win
|
||||
OBJECTS = $(TARGET).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.bcc
|
||||
|
@@ -1,37 +1,18 @@
|
||||
#
|
||||
# File: makefile.unx
|
||||
# Author: Julian Smart
|
||||
# Created: 1993
|
||||
# Updated:
|
||||
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
||||
# File: makefile.g95
|
||||
# Author: Julian Smart
|
||||
# Created: 1999
|
||||
# Updated:
|
||||
# Copyright: (c) Julian Smart, 1999
|
||||
#
|
||||
# "%W% %G%"
|
||||
#
|
||||
# Makefile for cube example (UNIX).
|
||||
# Makefile for wxWindows sample (Cygwin/Mingw32).
|
||||
|
||||
WXDIR = ../..
|
||||
WXDIR = ../../../..
|
||||
|
||||
# All common UNIX compiler flags and options are now in
|
||||
# this central makefile.
|
||||
include $(WXDIR)/src/makeg95.env
|
||||
TARGET=cube
|
||||
EXTRACPPFLAGS=-I../../win
|
||||
EXTRALIBS=-lglcanvas -lopengl32 -lglu32
|
||||
OBJECTS = $(TARGET).o
|
||||
|
||||
OBJECTS = $(OBJDIR)/cube.$(OBJSUFF)
|
||||
include $(WXDIR)/src/makeprog.g95
|
||||
|
||||
all: $(OBJDIR) cube$(GUISUFFIX)$(EXESUFF)
|
||||
|
||||
wx:
|
||||
|
||||
$(OBJDIR):
|
||||
mkdir $(OBJDIR)
|
||||
|
||||
cube$(GUISUFFIX)$(EXESUFF): $(OBJDIR)/cube.$(OBJSUFF) cube.res $(WXLIB)
|
||||
$(CC) $(LDFLAGS) -o cube$(GUISUFFIX)$(EXESUFF) $(OBJDIR)/cube.$(OBJSUFF) $(LDLIBS)
|
||||
$(RSRC) cube.$(RESSUFF) cube.exe
|
||||
|
||||
$(OBJDIR)/cube.$(OBJSUFF): cube.$(SRCSUFF)
|
||||
$(CC) -c $(CPPFLAGS) -o $@ cube.$(SRCSUFF)
|
||||
|
||||
cube.res: cube.rc
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS) cube$(GUISUFFIX).exe core *.rsc *.res
|
||||
|
17
utils/glcanvas/samples/cube/makefile.wat
Normal file
17
utils/glcanvas/samples/cube/makefile.wat
Normal file
@@ -0,0 +1,17 @@
|
||||
#
|
||||
# Makefile for WATCOM
|
||||
#
|
||||
# Created by Julian Smart, January 1999
|
||||
#
|
||||
#
|
||||
|
||||
WXDIR = $(%WXWIN)
|
||||
|
||||
PROGRAM = cube
|
||||
OBJECTS = $(PROGRAM).obj
|
||||
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
|
||||
EXTRACPPFLAGS=-I$(WXDIR)\utils\glcanvas\win
|
||||
|
||||
!include $(WXDIR)\src\makeprog.wat
|
||||
|
||||
|
22
utils/glcanvas/samples/isosurf/makefile.b32
Normal file
22
utils/glcanvas/samples/isosurf/makefile.b32
Normal file
@@ -0,0 +1,22 @@
|
||||
#
|
||||
# File: makefile.b32
|
||||
# Author: Julian Smart
|
||||
# Created: 1999
|
||||
# Updated:
|
||||
# Copyright:
|
||||
#
|
||||
# Makefile : Builds sample for 32-bit BC++
|
||||
|
||||
WXDIR = $(WXWIN)
|
||||
|
||||
TARGET=isosurf
|
||||
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
|
||||
EXTRACPPFLAGS=-I$(WXDIR)\utils\glcanvas\win
|
||||
OBJECTS = $(TARGET).obj
|
||||
EXTRATARGETS=isosurf.dat
|
||||
|
||||
!include $(WXDIR)\src\makeprog.b32
|
||||
|
||||
isosurf.dat: isosurf.dat.gz
|
||||
gzip -c -d isosurf.dat.gz > isosurf.dat
|
||||
|
25
utils/glcanvas/samples/isosurf/makefile.bcc
Normal file
25
utils/glcanvas/samples/isosurf/makefile.bcc
Normal file
@@ -0,0 +1,25 @@
|
||||
#
|
||||
# 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=isosurf
|
||||
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
|
||||
EXTRACPPFLAGS=-I$(WXDIR)\utils\glcanvas\win
|
||||
OBJECTS = $(TARGET).obj
|
||||
EXTRATARGETS=isosurf.dat
|
||||
|
||||
!include $(WXDIR)\src\makeprog.bcc
|
||||
|
||||
isosurf.dat: isosurf.dat.gz
|
||||
gzip -c -d isosurf.dat.gz > isosurf.dat
|
||||
|
20
utils/glcanvas/samples/isosurf/makefile.g95
Normal file
20
utils/glcanvas/samples/isosurf/makefile.g95
Normal file
@@ -0,0 +1,20 @@
|
||||
#
|
||||
# File: makefile.g95
|
||||
# Author: Julian Smart
|
||||
# Created: 1999
|
||||
# Updated:
|
||||
# Copyright: (c) Julian Smart, 1999
|
||||
#
|
||||
# Makefile for wxWindows sample (Cygwin/Mingw32).
|
||||
|
||||
WXDIR = ../../../..
|
||||
|
||||
TARGET=isosurf
|
||||
EXTRACPPFLAGS=-I../../win
|
||||
EXTRALIBS=-lglcanvas -lopengl32 -lglu32
|
||||
OBJECTS = $(TARGET).o
|
||||
|
||||
include $(WXDIR)/src/makeprog.g95
|
||||
|
||||
isosurf.dat: isosurf.dat.gz
|
||||
gzip -c -d isosurf.dat.gz > isosurf.dat
|
20
utils/glcanvas/samples/isosurf/makefile.wat
Normal file
20
utils/glcanvas/samples/isosurf/makefile.wat
Normal file
@@ -0,0 +1,20 @@
|
||||
#
|
||||
# Makefile for WATCOM
|
||||
#
|
||||
# Created by Julian Smart, January 1999
|
||||
#
|
||||
#
|
||||
|
||||
WXDIR = $(%WXWIN)
|
||||
|
||||
PROGRAM = isosurf
|
||||
OBJECTS = $(PROGRAM).obj
|
||||
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
|
||||
EXTRACPPFLAGS=-I$(WXDIR)\utils\glcanvas\win
|
||||
EXTRATARGETS=isosurf.dat
|
||||
|
||||
!include $(WXDIR)\src\makeprog.wat
|
||||
|
||||
isosurf.dat: isosurf.dat.gz
|
||||
gzip -c -d isosurf.dat.gz > isosurf.dat
|
||||
|
18
utils/glcanvas/samples/penguin/makefile.b32
Normal file
18
utils/glcanvas/samples/penguin/makefile.b32
Normal file
@@ -0,0 +1,18 @@
|
||||
#
|
||||
# File: makefile.b32
|
||||
# Author: Julian Smart
|
||||
# Created: 1999
|
||||
# Updated:
|
||||
# Copyright:
|
||||
#
|
||||
# Makefile : Builds sample for 32-bit BC++
|
||||
|
||||
WXDIR = $(WXWIN)
|
||||
|
||||
TARGET=penguin
|
||||
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
|
||||
EXTRACPPFLAGS=-I$(WXDIR)\utils\glcanvas\win
|
||||
OBJECTS = $(TARGET).obj lw.obj trackball.obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.b32
|
||||
|
21
utils/glcanvas/samples/penguin/makefile.bcc
Normal file
21
utils/glcanvas/samples/penguin/makefile.bcc
Normal file
@@ -0,0 +1,21 @@
|
||||
#
|
||||
# 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=cube
|
||||
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
|
||||
EXTRACPPFLAGS=-I$(WXDIR)\utils\glcanvas\win
|
||||
OBJECTS = $(TARGET).obj
|
||||
|
||||
!include $(WXDIR)\src\makeprog.bcc
|
||||
|
18
utils/glcanvas/samples/penguin/makefile.g95
Normal file
18
utils/glcanvas/samples/penguin/makefile.g95
Normal file
@@ -0,0 +1,18 @@
|
||||
#
|
||||
# File: makefile.g95
|
||||
# Author: Julian Smart
|
||||
# Created: 1999
|
||||
# Updated:
|
||||
# Copyright: (c) Julian Smart, 1999
|
||||
#
|
||||
# Makefile for wxWindows sample (Cygwin/Mingw32).
|
||||
|
||||
WXDIR = ../../../..
|
||||
|
||||
TARGET=penguin
|
||||
EXTRACPPFLAGS=-I../../win
|
||||
EXTRALIBS=-lglcanvas -lopengl32 -lglu32
|
||||
OBJECTS = $(TARGET).o lw.o trackball.o
|
||||
|
||||
include $(WXDIR)/src/makeprog.g95
|
||||
|
17
utils/glcanvas/samples/penguin/makefile.wat
Normal file
17
utils/glcanvas/samples/penguin/makefile.wat
Normal file
@@ -0,0 +1,17 @@
|
||||
#
|
||||
# Makefile for WATCOM
|
||||
#
|
||||
# Created by Julian Smart, January 1999
|
||||
#
|
||||
#
|
||||
|
||||
WXDIR = $(%WXWIN)
|
||||
|
||||
PROGRAM = cube
|
||||
OBJECTS = $(PROGRAM).obj
|
||||
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
|
||||
EXTRACPPFLAGS=-I$(WXDIR)\utils\glcanvas\win
|
||||
|
||||
!include $(WXDIR)\src\makeprog.wat
|
||||
|
||||
|
Reference in New Issue
Block a user