MAKEFILE 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #
  2. # Command & Conquer Red Alert(tm)
  3. # Copyright 2025 Electronic Arts Inc.
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. #
  18. #* $Header$
  19. #***********************************************************************************************
  20. #*** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  21. #***********************************************************************************************
  22. #* *
  23. #* Project Name : Command & Conquer *
  24. #* *
  25. #* File Name : MAKEFILE *
  26. #* *
  27. #* Programmer : Joe L. Bostic *
  28. #* *
  29. #* Start Date : 03/02/95 *
  30. #* *
  31. #* Last Update : March 2, 1995 [JLB] *
  32. #* *
  33. #*---------------------------------------------------------------------------------------------*
  34. #* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
  35. .SILENT
  36. .OPTIMIZE
  37. .ERASE
  38. #---------------------------------------------------------------------------
  39. # Working values depending on what target executable will be created.
  40. #---------------------------------------------------------------------------
  41. OBJ=obj
  42. CC=..\..\WAT11\BINNT\wpp386
  43. LIB=..\..\WATCOM\BINNT\wlib
  44. #---------------------------------------------------------------------------
  45. # Path macros: one path for each file type.
  46. # These paths are used to tell make where to find/put each file type.
  47. #---------------------------------------------------------------------------
  48. .cpp: .
  49. .h: .
  50. .obj: $(OBJ)
  51. #===========================================================================
  52. # Compiler and assembler flags.
  53. #===========================================================================
  54. CC_CFG = /d0 # No debugging information
  55. CC_CFG += /DWIN32=1
  56. CC_CFG += /D_WIN32
  57. CC_CFG += /i=..\..\dxmedia\include
  58. CC_CFG += /i=..\..\dxmedia\classes\base
  59. CC_CFG += /i=..\..\dxsdk\inc
  60. CC_CFG += /i=..\..\wat11\h\nt # NT include directory.
  61. CC_CFG += /i=..\..\wat11\H # Normal Watcom include directory.
  62. CC_CFG += /bt=NT
  63. CC_CFG += /otxan
  64. CC_CFG += /5r # Pentium optimized register calling conventions.
  65. CC_CFG += /of+ # Generate traceable stack frames.
  66. CC_CFG += /zp1 # Pack structures on byte boundary.
  67. CC_CFG += /s # Remove stack check calls.
  68. CC_CFG += /j # char is now signed.
  69. CC_CFG += /fhq
  70. CC_CFG += /we # Treat all warnings as errors.
  71. CC_CFG += /w8 # Most warnings enabled.
  72. CC_CFG += /ri # char and shorts are returned as int.
  73. CC_CFG += /zq # Operate quietly.
  74. #---------------------------------------------------------------------------
  75. # Implicit rules
  76. # Compiler:
  77. # ($< = full dependent with path)
  78. # Assembler:
  79. # output obj's are constructed from .obj: & the $& macro
  80. # ($< = full dependent with path)
  81. # tasm's cfg file is not invoked as a response file.
  82. #---------------------------------------------------------------------------
  83. .c.obj: .AUTODEPEND
  84. echo Compiling $<
  85. *$(CC) $(CC_CFG) -fo$(OBJ)\$^. $<
  86. .cpp.obj: .AUTODEPEND
  87. echo Compiling $<
  88. *$(CC) $(CC_CFG) -fo$(OBJ)\$^. $<
  89. #---------------------------------------------------------------------------
  90. # Object modules.
  91. #---------------------------------------------------------------------------
  92. OBJECTS = &
  93. movie.obj
  94. ############################################################################
  95. # If there is an abnormal termination in make process (e.g., error in compile).
  96. .ERROR
  97. #############################################################################
  98. # Default target
  99. all: mpeg.lib
  100. #############################################################################
  101. # Builds the MPEG.LIB file.
  102. mpeg.lib: $(OBJECTS) mpeg.lnk
  103. $(LIB) -c $^@ @mpeg.lnk
  104. mpeg.lnk: makefile
  105. %create $^@
  106. for %index in ($(OBJECTS)) do %append $^@ -+ $(OBJ)\%index