MAKEFILE.BAK 4.3 KB

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