home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
thx
/
source
/
make.cfg
< prev
Wrap
Text File
|
1995-05-30
|
5KB
|
127 lines
#==============================================================
# MAKE.CFG - common make configuration (!included in makefiles)
#==============================================================
# ---> User-configurable macros <---
#--------------------------------------------------------------
# Set DRIVE to where you installed everything
# Example: DRIVE=c:
# (you can override individual DRIVE usages if you install on
# multiple drives>)
#--------------------------------------------------------------
DRIVE=c:
#--------------------------------------------------------------
# Set COMPILER to where you installed Borland C++
# Example: COMPILER=$(DRIVE)\bc45
#--------------------------------------------------------------
COMPILER=$(DRIVE)\bc45
#--------------------------------------------------------------
# Set MODEL to the memory model (t,s,m,c,l,h) of the compile
# Example: MODEL=l (recommended)
#--------------------------------------------------------------
MODEL=l
#--------------------------------------------------------------
# Comment out FGLITE to use Fastgraph commercial edition
#--------------------------------------------------------------
FGLITE=l
#--------------------------------------------------------------
# Set FASTGRAF to where you installed Fastgraph
# Example: FASTGRAF=$(DRIVE)\fg
#--------------------------------------------------------------
FASTGRAF=$(DRIVE)\fg$(FGLITE)
#--------------------------------------------------------------
# Set THEATRIX to where you installed Theatrix
# Example: THEATRIX=$(DRIVE)\thx
#--------------------------------------------------------------
THEATRIX=$(DRIVE)\thx
#--------------------------------------------------------------
# Set DTA to where you installed Dave's .TGA Animator
# Example: DTA=$(DRIVE)\dta22
#--------------------------------------------------------------
DTA=$(DRIVE)\dta22b
#--------------------------------------------------------------
# Set POVRAY to where you installed POV-Ray
# Example: POVRAY=$(DRIVE)\povray2
#--------------------------------------------------------------
POVRAY=$(DRIVE)\povray2
#--------------------------------------------------------------
# Borland C++ work space
#--------------------------------------------------------------
HEADERS=$(DRIVE)\temp\tcdef.sym
#--------------------------------------------------------------
# Delete the COMPILEDEBUG macro to build without
# debugging information in the .EXE
#--------------------------------------------------------------
COMPILEDEBUG = -v
#--------------------------------------------------------------
# ---> End of user-configurable macros <---
#==============================================================
# Set up debugging / nondebugging environment
#--------------------------------------------------------------
!if $d(COMPILEDEBUG)
LINKDEBUG = /v
!else
COMPILEDEBUG = -DNDEBUG
!endif
#--------------------------------------------------------------
# Test for all required user-configurable macros
#--------------------------------------------------------------
!if !$d(DRIVE)
!error DRIVE isn't defined
!endif
#--------------------------------------------------------------
!if !$d(COMPILER)
!error COMPILER isn't defined
!endif
#--------------------------------------------------------------
!if !$d(MODEL)
!error MODEL isn't defined
!endif
#--------------------------------------------------------------
!if !$d(FASTGRAF)
!error FASTGRAF isn't defined
!endif
#--------------------------------------------------------------
!if !$d(THEATRIX)
!error THEATRIX isn't defined
!endif
#--------------------------------------------------------------
!if !$d(POVRAY)
!error POVRAY isn't defined
!endif
#--------------------------------------------------------------
!if !$d(DTA)
!error DTA isn't defined
!endif
#--------------------------------------------------------------
THXINC=$(THEATRIX)\include
THXBIN=$(THEATRIX)\bin
THXLIB=$(THEATRIX)\lib\theatrix.lib
FGINC=$(FASTGRAF)\include
FGLIB=$(FASTGRAF)\lib\fg$(FGLITE)$(MODEL).lib
COMPILEPARMS=-d -c -w -m$(MODEL) -H=$(HEADERS) $(COMPILEDEBUG)
INCLUDES=-I$(FGINC) -I$(THXINC)
COMPILE=bcc $(COMPILEPARMS) $(INCLUDES)
LINK=tlink $(LINKDEBUG) $(COMPILER)\lib\c0$(MODEL)
CLIB=$(COMPILER)\lib\c$(MODEL)
EXEC=..\exec
#--------------------------------------------------------------
.cpp.obj:
$(COMPILE) {$* }
#--------------------------------------------------------------
POVFILES=$*.def -i$*.pov -o$*.tga
POVSW=+v +x
POVDIRS=-l$(POVRAY)\include
#--------------------------------------------------------------
.pov.pcx:
povray $(POVDIRS) $(POVFILES) $(POVSW)
alchemy -o -p -8 $*.tga
del $*.tga
copy $*.pcx $(EXEC) /Y
del $*.pcx
#--------------------------------------------------------------