MAKEFILE 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. !ifndef %PRJ || %PRJVCS || %WATCOM
  49. !error Environment not configured.
  50. !endif
  51. .OPTIMIZE
  52. .ERASE
  53. #----------------------------------------------------------------------------
  54. # PROJECTS DEPENDENT MACROS
  55. #----------------------------------------------------------------------------
  56. PRJNAME = vqa32wp
  57. PRJDIR = $(%PRJ)\VQA32
  58. OBJECTS = &
  59. config.obj &
  60. task.obj &
  61. loader.obj &
  62. drawer.obj &
  63. audio.obj &
  64. monodisp.obj &
  65. dstream.obj &
  66. unvqbuff.obj &
  67. unvqvesa.obj &
  68. vertag.obj &
  69. caption.obj &
  70. # unvqxmde.obj
  71. #----------------------------------------------------------------------------
  72. # PATH MACROS
  73. #----------------------------------------------------------------------------
  74. !ifdef %LIB
  75. LIBPATH = $(%PRJ)\LIB;$(%LIB)
  76. !else
  77. LIBPATH = $(%PRJ)\LIB;$(%WATCOM)\LIB386
  78. !endif
  79. !ifdef %INCLUDE
  80. INCLUDEPATH = $(%PRJ)\INCLUDE;$(%INCLUDE)
  81. !else
  82. INCLUDEPATH = $(%PRJ)\INCLUDE;$(%WATCOM)\H
  83. !endif
  84. path_c = .\
  85. path_cpp = .\
  86. path_h = .\
  87. path_asm = .\
  88. path_i = .\
  89. path_obj = .\O
  90. path_lib = $(%PRJ)\LIB
  91. path_exe = .\
  92. #----------------------------------------------------------------------------
  93. # IMPLICIT RULE EXTENSIONS AND PATHS
  94. #----------------------------------------------------------------------------
  95. .EXTENSIONS :
  96. .EXTENSIONS : .exe .lib .obj .c .cpp .asm .h .i
  97. .c : $(path_c)
  98. .cpp : $(path_cpp)
  99. .h : $(path_h)
  100. .asm : $(path_asm)
  101. .i : $(path_i)
  102. .obj : $(path_obj)
  103. .lib : $(path_lib)
  104. .exe : $(path_exe)
  105. #----------------------------------------------------------------------------
  106. # Tools/commands & configurations
  107. #----------------------------------------------------------------------------
  108. CC_CMD = wcc386
  109. CCP_CMD = wpp386
  110. ASM_CMD = tasm32
  111. LINK_CMD = wlink
  112. LIB_CMD = wlib
  113. CC_OPTS = -i$(INCLUDEPATH) -j -zp1 -5s -mf -oaeilrt -s -zq
  114. ASM_OPTS = /t /m /w+ /jJUMPS /ml /p /z /i$(%PRJ)\INCLUDE\VQM32 /dPHARLAP_TNT=0
  115. LIB_OPTS = /b /c /q
  116. LINK_CFG = $(PRJNAME).lnk
  117. #----------------------------------------------------------------------------
  118. # DEFAULT TARGET
  119. #----------------------------------------------------------------------------
  120. all : $(PRJNAME).lib .SYMBOLIC
  121. $(PRJNAME).lib : $(OBJECTS) .SYMBOLIC
  122. #----------------------------------------------------------------------------
  123. # IMPLICIT RULES
  124. #----------------------------------------------------------------------------
  125. .c.obj :
  126. $(CC_CMD) $(CC_OPTS) -fo=$(PATH_OBJ)\$^. $<
  127. $(LIB_CMD) $(LIB_OPTS) $(path_lib)\$(PRJNAME).lib -+$(path_obj)\$]&
  128. .cpp.obj :
  129. $(CCP_CMD) $(CC_OPTS) -fo=$(PATH_OBJ)\$^. $<
  130. $(LIB_CMD) $(LIB_OPTS) $(path_lib)\$(PRJNAME).lib -+$(path_obj)\$]&
  131. .asm.obj:
  132. $(ASM_CMD) $(ASM_OPTS) $<,$(path_obj)\$^.
  133. $(LIB_CMD) $(LIB_OPTS) $(path_lib)\$(PRJNAME).lib -+$(path_obj)\$]&
  134. update: .SYMBOLIC
  135. @echo Updating VQAPlay32 header files!
  136. @copy vqaplay.h ..\include\vqa32 >NUL
  137. @copy vqafile.h ..\include\vqa32 >NUL