home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / thx / source / make.cfg < prev   
Text File  |  1995-05-30  |  5KB  |  127 lines

  1. #==============================================================
  2. # MAKE.CFG - common make configuration (!included in makefiles)
  3. #==============================================================
  4. #         --->    User-configurable macros    <---
  5. #--------------------------------------------------------------
  6. # Set DRIVE to where you installed everything
  7. # Example: DRIVE=c:
  8. # (you can override individual DRIVE usages if you install on
  9. # multiple drives>)
  10. #--------------------------------------------------------------
  11. DRIVE=c:
  12. #--------------------------------------------------------------
  13. # Set COMPILER to where you installed Borland C++
  14. # Example: COMPILER=$(DRIVE)\bc45
  15. #--------------------------------------------------------------
  16. COMPILER=$(DRIVE)\bc45
  17. #--------------------------------------------------------------
  18. # Set MODEL to the memory model (t,s,m,c,l,h) of the compile
  19. # Example: MODEL=l (recommended)
  20. #--------------------------------------------------------------
  21. MODEL=l
  22. #--------------------------------------------------------------
  23. # Comment out FGLITE to use Fastgraph commercial edition
  24. #--------------------------------------------------------------
  25. FGLITE=l
  26. #--------------------------------------------------------------
  27. # Set FASTGRAF to where you installed Fastgraph
  28. # Example: FASTGRAF=$(DRIVE)\fg
  29. #--------------------------------------------------------------
  30. FASTGRAF=$(DRIVE)\fg$(FGLITE)
  31. #--------------------------------------------------------------
  32. # Set THEATRIX to where you installed Theatrix
  33. # Example: THEATRIX=$(DRIVE)\thx
  34. #--------------------------------------------------------------
  35. THEATRIX=$(DRIVE)\thx
  36. #--------------------------------------------------------------
  37. # Set DTA to where you installed Dave's .TGA Animator
  38. # Example: DTA=$(DRIVE)\dta22
  39. #--------------------------------------------------------------
  40. DTA=$(DRIVE)\dta22b
  41. #--------------------------------------------------------------
  42. # Set POVRAY to where you installed POV-Ray
  43. # Example: POVRAY=$(DRIVE)\povray2
  44. #--------------------------------------------------------------
  45. POVRAY=$(DRIVE)\povray2
  46. #--------------------------------------------------------------
  47. # Borland C++ work space
  48. #--------------------------------------------------------------
  49. HEADERS=$(DRIVE)\temp\tcdef.sym
  50. #--------------------------------------------------------------
  51. # Delete the COMPILEDEBUG macro to build without 
  52. # debugging information in the .EXE
  53. #--------------------------------------------------------------
  54. COMPILEDEBUG = -v
  55. #--------------------------------------------------------------
  56. #      --->    End of user-configurable macros    <---
  57. #==============================================================
  58. #  Set up debugging / nondebugging environment
  59. #--------------------------------------------------------------
  60. !if $d(COMPILEDEBUG)
  61. LINKDEBUG = /v
  62. !else
  63. COMPILEDEBUG = -DNDEBUG
  64. !endif
  65. #--------------------------------------------------------------
  66. #  Test for all required user-configurable macros
  67. #--------------------------------------------------------------
  68. !if !$d(DRIVE)
  69. !error DRIVE isn't defined
  70. !endif
  71. #--------------------------------------------------------------
  72. !if !$d(COMPILER)
  73. !error COMPILER isn't defined
  74. !endif
  75. #--------------------------------------------------------------
  76. !if !$d(MODEL)
  77. !error MODEL isn't defined
  78. !endif
  79. #--------------------------------------------------------------
  80. !if !$d(FASTGRAF)
  81. !error FASTGRAF isn't defined
  82. !endif
  83. #--------------------------------------------------------------
  84. !if !$d(THEATRIX)
  85. !error THEATRIX isn't defined
  86. !endif
  87. #--------------------------------------------------------------
  88. !if !$d(POVRAY)
  89. !error POVRAY isn't defined
  90. !endif
  91. #--------------------------------------------------------------
  92. !if !$d(DTA)
  93. !error DTA isn't defined
  94. !endif
  95. #--------------------------------------------------------------
  96. THXINC=$(THEATRIX)\include
  97. THXBIN=$(THEATRIX)\bin
  98. THXLIB=$(THEATRIX)\lib\theatrix.lib
  99. FGINC=$(FASTGRAF)\include
  100. FGLIB=$(FASTGRAF)\lib\fg$(FGLITE)$(MODEL).lib
  101. COMPILEPARMS=-d -c -w -m$(MODEL) -H=$(HEADERS) $(COMPILEDEBUG)
  102. INCLUDES=-I$(FGINC) -I$(THXINC)
  103. COMPILE=bcc $(COMPILEPARMS) $(INCLUDES)
  104. LINK=tlink $(LINKDEBUG) $(COMPILER)\lib\c0$(MODEL)
  105. CLIB=$(COMPILER)\lib\c$(MODEL)
  106. EXEC=..\exec
  107. #--------------------------------------------------------------
  108.  
  109. .cpp.obj:
  110.     $(COMPILE) {$* }
  111.  
  112. #--------------------------------------------------------------
  113. POVFILES=$*.def -i$*.pov -o$*.tga 
  114. POVSW=+v +x
  115. POVDIRS=-l$(POVRAY)\include
  116. #--------------------------------------------------------------
  117.  
  118. .pov.pcx:
  119.     povray $(POVDIRS) $(POVFILES) $(POVSW)
  120.     alchemy -o -p -8 $*.tga
  121.     del $*.tga
  122.     copy $*.pcx $(EXEC) /Y
  123.     del $*.pcx
  124.  
  125. #--------------------------------------------------------------
  126.  
  127.