MAKEFILE 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. #****************************************************************************
  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. #
  24. # PROJECT
  25. # VQAPlay 32-bit library.
  26. #
  27. # FILE
  28. # makefile (Watcom C/C++ 10.0a)
  29. #
  30. # DESCRIPTION
  31. # Makefile for generating the 32-bit VQAPlay library.
  32. #
  33. # PROGRAMMER
  34. # Denzil E. Long, Jr.
  35. #
  36. # DATE
  37. # February 10, 1995
  38. #
  39. # ENVIROMENT
  40. # PRJ - Projects path.
  41. # PRJVCS - Version control archive path.
  42. # WATCOM - Watcom C installation path.
  43. #
  44. #****************************************************************************
  45. #----------------------------------------------------------------------------
  46. # VERIFY ENVIROMENT
  47. #----------------------------------------------------------------------------
  48. .OPTIMIZE
  49. .ERASE
  50. #----------------------------------------------------------------------------
  51. # PROJECTS DEPENDENT MACROS
  52. #----------------------------------------------------------------------------
  53. PRJ = ..
  54. WATCOM = C:\WATCOM
  55. PRJNAME = vqa32wp
  56. PRJDIR = $(PRJ)\VQA32
  57. OBJECTS = &
  58. config.obj &
  59. task.obj &
  60. loader.obj &
  61. drawer.obj &
  62. audio.obj &
  63. monodisp.obj &
  64. dstream.obj &
  65. unvqbuff.obj &
  66. unvqvesa.obj &
  67. vertag.obj &
  68. caption.obj &
  69. # unvqxmde.obj
  70. #----------------------------------------------------------------------------
  71. # PATH MACROS
  72. #----------------------------------------------------------------------------
  73. !ifdef %LIB
  74. LIBPATH = $(PRJ)\LIB;$(%LIB)
  75. !else
  76. LIBPATH = $(PRJ)\LIB;$(WATCOM)\LIB386
  77. !endif
  78. !ifdef %INCLUDE
  79. INCLUDEPATH = $(PRJ)\INCLUDE;$(%INCLUDE)
  80. !else
  81. INCLUDEPATH = $(PRJ)\INCLUDE;$(WATCOM)\H
  82. !endif
  83. path_c = .\
  84. path_cpp = .\
  85. path_h = .\
  86. path_asm = .\
  87. path_i = .\
  88. path_obj = .\O
  89. path_lib = $(PRJ)\LIB
  90. path_exe = .\
  91. #----------------------------------------------------------------------------
  92. # IMPLICIT RULE EXTENSIONS AND PATHS
  93. #----------------------------------------------------------------------------
  94. .EXTENSIONS :
  95. .EXTENSIONS : .exe .lib .obj .c .cpp .asm .h .i
  96. .c : $(path_c)
  97. .cpp : $(path_cpp)
  98. .h : $(path_h)
  99. .asm : $(path_asm)
  100. .i : $(path_i)
  101. .obj : $(path_obj)
  102. .lib : $(path_lib)
  103. .exe : $(path_exe)
  104. #----------------------------------------------------------------------------
  105. # Tools/commands & configurations
  106. #----------------------------------------------------------------------------
  107. CC_CMD = wcc386
  108. CCP_CMD = wpp386
  109. ASM_CMD = tasm32
  110. LINK_CMD = wlink
  111. LIB_CMD = wlib
  112. CC_OPTS = -i$(INCLUDEPATH) -j -zp1 -5r -mf -oaeilrt -s -zq -d1
  113. ASM_OPTS = /t /m /w+ /jJUMPS /ml /p /z /i$(PRJ)\INCLUDE\VQM32 /dPHARLAP_TNT=0
  114. LIB_OPTS = /b /c /q
  115. LINK_CFG = $(PRJNAME).lnk
  116. #----------------------------------------------------------------------------
  117. # DEFAULT TARGET
  118. #----------------------------------------------------------------------------
  119. all : $(PRJNAME).lib .SYMBOLIC
  120. $(PRJNAME).lib : $(OBJECTS) .SYMBOLIC
  121. #----------------------------------------------------------------------------
  122. # IMPLICIT RULES
  123. #----------------------------------------------------------------------------
  124. .c.obj :
  125. $(CC_CMD) $(CC_OPTS) -fo=$(PATH_OBJ)\$^. $<
  126. $(LIB_CMD) $(LIB_OPTS) $(path_lib)\$(PRJNAME).lib -+$(path_obj)\$]&
  127. .cpp.obj :
  128. $(CCP_CMD) $(CC_OPTS) -fo=$(PATH_OBJ)\$^. $<
  129. $(LIB_CMD) $(LIB_OPTS) $(path_lib)\$(PRJNAME).lib -+$(path_obj)\$]&
  130. .asm.obj:
  131. $(ASM_CMD) $(ASM_OPTS) $<,$(path_obj)\$^.
  132. $(LIB_CMD) $(LIB_OPTS) $(path_lib)\$(PRJNAME).lib -+$(path_obj)\$]&
  133. update: .SYMBOLIC
  134. @echo Updating VQAPlay32 header files!
  135. @copy vqaplay.h ..\include\vqa32 >NUL
  136. @copy vqafile.h ..\include\vqa32 >NUL