Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

211 lines
5.9 KiB

  1. #
  2. # Microsoft Confidential
  3. # Copyright (C) Microsoft Corporation 1994,95,96,97
  4. # All Rights Reserved.
  5. #
  6. # Makefile for:
  7. #
  8. # Cabinet File Viewer DLL
  9. #
  10. # Built with C 10.0 (VC 4.2)
  11. #
  12. #
  13. # target of this makefile
  14. #
  15. all: cabview.dll
  16. #
  17. # DEBUG=YES builds with debugging information (and opts. disabled)
  18. # DEBUG=NO builds retail
  19. #
  20. DEBUG=NO
  21. #
  22. # compiler options
  23. #
  24. !include <ntwin32.mak>
  25. CFLAGS_COMMON = /nologo /c /Gz /MT /W3 /D WIN32 /D _WINDOWS
  26. CFLAGS_DEBUG = $(CFLAGS_COMMON) /D _DEBUG /Od /Z7
  27. CFLAGS_RETAIL = $(CFLAGS_COMMON) /D NDEBUG /Ox /Os
  28. LFLAGS_COMMON = /nologo /entry:DllMain /subsystem:windows /DLL /nodefaultlib \
  29. /incremental:no
  30. LFLAGS_DEBUG = $(LFLAGS_COMMON) /debug /debugtype:cv
  31. LFLAGS_RETAIL = $(LFLAGS_COMMON)
  32. LIBS = comctl32.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib \
  33. advapi32.lib libcmt.lib shell32.lib ole32.lib uuid.lib
  34. !if "$(DEBUG)" == "YES"
  35. CFLAGS = $(CFLAGS_DEBUG)
  36. LFLAGS = $(LFLAGS_DEBUG)
  37. !else
  38. CFLAGS = $(CFLAGS_RETAIL)
  39. LFLAGS = $(LFLAGS_RETAIL)
  40. !endif
  41. CL = cl $(CFLAGS)
  42. RC = rc -r
  43. #
  44. # rules
  45. #
  46. .c.obj:
  47. $(CL) $*.c
  48. .cpp.obj:
  49. $(CL) $*.cpp
  50. .rc.res:
  51. $(RC) $*.rc
  52. #
  53. # dependencies
  54. #
  55. cabitms.obj: cabitms.cpp pch.h thisdll.h resource.h path.h fdi.h \
  56. cabitms.h dpda.h cabobj.h cabvw2.h cabp.h shlobj.h
  57. da.obj: da.c pch.h dpda.h cabobj.h cabvw2.h cabp.h shlobj.h
  58. dataobj.obj: dataobj.cpp pch.h path.h thisdll.h folder.h dataobj.h \
  59. cabitms.h fdi.h dpda.h cabobj.h cabvw2.h cabp.h shlobj.h
  60. debug.obj: debug.c pch.h debug.h dpda.h cabobj.h cabvw2.h cabp.h shlobj.h
  61. dlg.obj: dlg.cpp pch.h thisdll.h dlg.h dpda.h cabobj.h cabvw2.h cabp.h \
  62. shlobj.h
  63. enum.obj: enum.cpp pch.h thisdll.h enum.h folder.h dpda.h cabobj.h \
  64. cabvw2.h cabp.h shlobj.h
  65. fdidll.obj: fdidll.c fdi.h
  66. folder.obj: folder.cpp pch.h thisdll.h thisguid.h sfview.h folder.h \
  67. enum.h view.h icon.h menu.h dataobj.h cabitms.h resource.h \
  68. fdi.h dpda.h cabobj.h cabvw2.h cabp.h shlobj.h
  69. icon.obj: icon.cpp pch.h thisdll.h path.h icon.h dpda.h cabobj.h \
  70. cabvw2.h cabp.h shlobj.h
  71. iutil.obj: iutil.c pch.h cabvw2.h dpda.h cabobj.h cabvw2.h cabp.h \
  72. shlobj.h
  73. logger.obj: logger.c logger.h
  74. menu.obj: menu.cpp pch.h thisdll.h resource.h folder.h menu.h \
  75. cabitms.h fdi.h dpda.h cabobj.h cabvw2.h cabp.h shlobj.h
  76. os.obj: os.cpp pch.h os.h dpda.h cabobj.h cabvw2.h cabp.h shlobj.h
  77. path.obj: path.c pch.h path.h debug.h strings.h dpda.h cabobj.h \
  78. cabvw2.h cabp.h shlobj.h
  79. sfview.obj: sfview.cpp pch.h sfview.h sfvwnd.h resource.h thisguid.h \
  80. sfview.h dpda.h cabobj.h cabvw2.h cabp.h thisdll.h sfview.h \
  81. xicon.h dlg.h unknown.h shlobj.h
  82. sfvmenu.obj: sfvmenu.cpp pch.h sfview.h sfvwnd.h resource.h dpda.h \
  83. cabobj.h cabvw2.h cabp.h thisdll.h sfview.h xicon.h dlg.h \
  84. unknown.h shlobj.h
  85. sfvwnd.obj: sfvwnd.cpp pch.h sfvwnd.h thisdll.h resource.h dpda.h \
  86. cabobj.h cabvw2.h cabp.h thisdll.h sfview.h xicon.h dlg.h \
  87. unknown.h shlobj.h
  88. strings.obj: strings.c pch.h strings.h dpda.h cabobj.h cabvw2.h cabp.h \
  89. shlobj.h
  90. thisdll.obj: thisdll.cpp pch.h thisguid.h thisdll.h resource.h dpda.h \
  91. cabobj.h cabvw2.h cabp.h shlobj.h
  92. unknown.obj: unknown.cpp pch.h thisdll.h unknown.h dpda.h cabobj.h \
  93. cabvw2.h cabp.h shlobj.h
  94. view.obj: view.cpp pch.h thisdll.h resource.h folder.h view.h os.h \
  95. unknown.h dpda.h cabobj.h cabvw2.h cabp.h sfview.h shlobj.h
  96. xicon.obj: xicon.cpp pch.h thisdll.h unknown.h path.h xicon.h dpda.h \
  97. cabobj.h cabvw2.h cabp.h shlobj.h
  98. cabview.res: cabview.rc resource.h cabview.ver
  99. #
  100. # link CABVIEW.DLL
  101. #
  102. cabview.dll: cabview.def cabview.res \
  103. cabitms.obj da.obj dataobj.obj debug.obj dlg.obj enum.obj \
  104. fdidll.obj folder.obj icon.obj iutil.obj menu.obj os.obj \
  105. path.obj sfview.obj sfvmenu.obj sfvwnd.obj strings.obj \
  106. thisdll.obj unknown.obj view.obj xicon.obj
  107. @echo >nul <<cabview.crf
  108. -def:cabview.def
  109. cabitms.obj
  110. da.obj
  111. dataobj.obj
  112. debug.obj
  113. dlg.obj
  114. enum.obj
  115. fdidll.obj
  116. folder.obj
  117. icon.obj
  118. iutil.obj
  119. menu.obj
  120. os.obj
  121. path.obj
  122. sfview.obj
  123. sfvmenu.obj
  124. sfvwnd.obj
  125. strings.obj
  126. thisdll.obj
  127. unknown.obj
  128. view.obj
  129. xicon.obj
  130. cabview.res
  131. -out:cabview.dll
  132. $(LIBS)
  133. <<nokeep
  134. link $(LFLAGS) @cabview.crf
  135. @if exist cabview.lib erase cabview.lib
  136. @if exist cabview.exp erase cabview.exp
  137. #
  138. # directory cleanup
  139. #
  140. clean:
  141. @if exist cabitms.obj erase cabitms.obj
  142. @if exist da.obj erase da.obj
  143. @if exist dataobj.obj erase dataobj.obj
  144. @if exist debug.obj erase debug.obj
  145. @if exist dlg.obj erase dlg.obj
  146. @if exist enum.obj erase enum.obj
  147. @if exist fdidll.obj erase fdidll.obj
  148. @if exist folder.obj erase folder.obj
  149. @if exist icon.obj erase icon.obj
  150. @if exist iutil.obj erase iutil.obj
  151. @if exist logger.obj erase logger.obj
  152. @if exist menu.obj erase menu.obj
  153. @if exist os.obj erase os.obj
  154. @if exist path.obj erase path.obj
  155. @if exist sfview.obj erase sfview.obj
  156. @if exist sfvmenu.obj erase sfvmenu.obj
  157. @if exist sfvwnd.obj erase sfvwnd.obj
  158. @if exist strings.obj erase strings.obj
  159. @if exist thisdll.obj erase thisdll.obj
  160. @if exist unknown.obj erase unknown.obj
  161. @if exist view.obj erase view.obj
  162. @if exist xicon.obj erase xicon.obj
  163. @if exist cabview.res erase cabview.res
  164. @if exist cabview.dll erase cabview.dll
  165. @if exist cabview.lib erase cabview.lib
  166. @if exist cabview.exp erase cabview.exp