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.

272 lines
8.2 KiB

  1. # ============================================================================
  2. # File: OLE2UI.MAK
  3. #
  4. # NMAKE description file to build STATIC version of OLE2.0 User Interface LIB
  5. #
  6. # Copyright (C) Microsoft Corporation, 1992-1993. All Rights Reserved.
  7. # ============================================================================
  8. #
  9. # Usage Notes:
  10. # -----------
  11. #
  12. # This makefile is designed to be used in one step. This makefile does
  13. # NOT use the file called UIMAKE.INI. This makefile builds the OLE2UI.LIB
  14. # library. It is NOT necessary to build custom versions of the static
  15. # library version of OLE2UI. Everyone can use the same OLE2UI.LIB library
  16. # as built by this makefile.
  17. #
  18. # NMAKE -F OLE2UI.MAK
  19. #
  20. #
  21. # The following lists a few of the settings in this makefile file which
  22. # you might change, and what effect those changes might have. For a
  23. # complete listing of all the available options and how they are used,
  24. # see the makefile below.
  25. #
  26. # MODEL=[S|M|C|L] -- The memory model.
  27. #
  28. # ============================================================================
  29. # ----------------------------------------------------------------------------
  30. # U I M A K E . I N I
  31. # ----------------------------------------------------------------------------
  32. DOS=1
  33. # Make a static library called OLE2UI.LIB
  34. DEBUG=0
  35. MODEL=M
  36. RESOURCE=RESOURCE
  37. !ifndef REL_DIR
  38. REL_DIR=c:\ole2samp\release
  39. !endif
  40. !ifndef OLERELDIR
  41. OLEREL_DIR=c:\ole2samp\release
  42. !endif
  43. !if "$(INSTALL_DIR)"==""
  44. INSTALL_DIR = $(REL_DIR)
  45. !endif
  46. # ----------------------------------------------------------------------------
  47. # O B J E C T F I L E L I S T
  48. # ----------------------------------------------------------------------------
  49. UI_COBJS = \
  50. D^\busy.obj\
  51. D^\common.obj\
  52. D^\convert.obj\
  53. D^\dbgutil.obj\
  54. D^\drawicon.obj\
  55. D^\hatch.obj\
  56. D^\icon.obj\
  57. D^\iconbox.obj\
  58. D^\insobj.obj\
  59. D^\links.obj\
  60. D^\msgfiltr.obj\
  61. D^\enumfetc.obj\
  62. D^\enumstat.obj\
  63. D^\objfdbk.obj\
  64. D^\ole2ui.obj\
  65. D^\olestd.obj\
  66. D^\targtdev.obj\
  67. D^\oleutl.obj\
  68. D^\pastespl.obj\
  69. D^\regdb.obj\
  70. D^\resimage.obj\
  71. D^\utility.obj\
  72. UI_NOPCOBJS = \
  73. D^\geticon.obj\
  74. D^\dballoc.obj\
  75. D^\suminfo.obj\
  76. D^\stdpal.obj\
  77. PRECOMPOBJ= $(O)precomp.obj
  78. PRECOMP=$(O)precomp.pch
  79. !if ("$(DEBUG)"=="1")
  80. MSG=DEBUG Static LIB Version
  81. LIBNAME=$(MODEL)OLE2UID
  82. CFLAGS=-c -Od -GA2s -W3 -Zpei -A$(MODEL) -D_DEBUG
  83. RFLAGS=-D DEBUG
  84. LFLAGS=/MAP:FULL /CO /LINE /NOD /NOE /SE:300 /NOPACKCODE
  85. UILIBS=mlibcew libw ole2 storage shell commdlg toolhelp
  86. CC=cl
  87. AS=masm
  88. RS=rc
  89. LK=link
  90. OBJ=DEBUGLIB
  91. LIBOBJS = $(UI_COBJS:D^\=DEBUGLIB^\) $(UI_NOPCOBJS:D^\=DEBUGLIB\NOPC^\)
  92. !else
  93. MSG=RETAIL Static LIB Version
  94. LIBNAME=$(MODEL)OLE2UI
  95. CFLAGS=-c -Os -GA2s -W3 -Zpe -A$(MODEL)
  96. RFLAGS=
  97. LFLAGS=/MAP:FULL /LINE /NOD /NOE /SE:300 /NOPACKCODE
  98. UILIBS=mlibcew libw ole2 storage shell commdlg toolhelp
  99. CC=cl
  100. AS=masm
  101. RS=rc
  102. LK=link
  103. OBJ=RETAILIB
  104. LIBOBJS = $(UI_COBJS:D^\=RETAILIB^\) $(UI_NOPCOBJS:D^\=RETAILIB\NOPC^\)
  105. !endif
  106. !if [if not exist $(OBJ)\*. md $(OBJ) >nul]
  107. !error Object subdirectory $(OBJ)\ could not be created
  108. !endif
  109. !if [if not exist $(OBJ)\NOPC\*. md $(OBJ)\NOPC > nul]
  110. !error non-precompiled header object subdirectory $(OBJ)\NOPC\ could not be created
  111. !endif
  112. # ----------------------------------------------------------------------------
  113. # R E S O U R C E L I S T
  114. # ----------------------------------------------------------------------------
  115. RES = \
  116. busy.h \
  117. common.h \
  118. convert.h \
  119. edlinks.h \
  120. geticon.h \
  121. icon.h \
  122. iconbox.h \
  123. insobj.h \
  124. msgfiltr.h \
  125. enumfetc.h \
  126. ole2ui.h \
  127. pastespl.h \
  128. resimage.h \
  129. dballoc.h \
  130. suminfo.h \
  131. stdpal.h \
  132. .SUFFIXES: .c .cpp .obj
  133. O=.\$(OBJ)^\
  134. GOAL: PRELUDE $(LIBNAME).LIB
  135. # ----------------------------------------------------------------------------
  136. # I N F E R E N C E R U L E S
  137. # ----------------------------------------------------------------------------
  138. # compile C file without precompiled headers into object directory\NOPC
  139. # dont compile c files etc for lcoalized builds.
  140. {}.c{$(O)NOPC\}.obj:
  141. @echo ������������������������� Compiling $(@B).c �������������������������
  142. !ifdef DOS
  143. SET CL=$(CFLAGS)
  144. $(CC) -Fo$(O)NOPC\$(@B) $(@B).c
  145. !else
  146. $(CC) $(CFLAGS) -D_FILE_=\"$(*B).c\" -Fo$(O)NOPC\$(@B) $(@B).c
  147. !endif
  148. # compile C file into object directory
  149. {}.c{$(O)}.obj:
  150. @echo ������������������������� Compiling $(@B).c �������������������������
  151. !ifdef DOS
  152. SET CL=$(CFLAGS) -Yuole2ui.h -Fp$(O)precomp.pch
  153. $(CC) -Fo$(O)$(@B) $(@B).c
  154. !else
  155. $(CC) $(CFLAGS) -Yuole2ui.h -Fp$(O)precomp.pch -D_FILE_=\"$(*B).c\" -Fo$(O)$(@B) $(@B).c
  156. !endif
  157. # compile CPP file without precompiled headers into object directory\NOPC
  158. # dont compile cpp files etc for lcoalized builds.
  159. {}.cpp{$(O)NOPC\}.obj:
  160. @echo ������������������������� Compiling $(@B).cpp �������������������������
  161. !ifdef DOS
  162. SET CL=$(CFLAGS)
  163. $(CC) -Fo$(O)NOPC\$(@B) $(@B).cpp
  164. !else
  165. $(CC) $(CFLAGS) -D_FILE_=\"$(*B).cpp\" -Fo$(O)NOPC\$(@B) $(@B).cpp
  166. !endif
  167. # compile CPP file into object directory
  168. {}.cpp{$(O)}.obj:
  169. @echo ������������������������� Compiling $(@B).cpp �������������������������
  170. !ifdef DOS
  171. SET CL=$(CFLAGS) -Yuole2ui.h -Fp$(O)precomp.pch
  172. $(CC) -Fo$(O)$(@B) $(@B).cpp
  173. !else
  174. $(CC) $(CFLAGS) -Yuole2ui.h -Fp$(O)precomp.pch -D_FILE_=\"$(*B).cpp\" -Fo$(O)$(@B) $(@B).cpp
  175. !endif
  176. # ----------------------------------------------------------------------------
  177. # D E P E N D F I L E C R E A T I O N
  178. # ----------------------------------------------------------------------------
  179. UI_CFILE = $(UI_COBJS:.obj=.c) $(UI_DLLOBJS:.obj=.c)
  180. UI_NOPCFILE = $(UI_NOPCOBJS:.obj=.c)
  181. DEPEND: nul
  182. @echo Making a NEW dependancy file.
  183. mkdep -p $$(O) -s .obj $(UI_CFILE:D^\=) > tmp.tmp
  184. sed "s/:/: $$(PRECOMP)/g" < tmp.tmp > depend
  185. -del tmp.tmp
  186. mkdep -p $$(O)NOPC\ -s .obj $(UI_NOPCFILE:D^\=) >> depend
  187. mkdep -p $$(O) -s .pch precomp.c >> depend
  188. # ----------------------------------------------------------------------------
  189. # W E L C O M E B A N N E R
  190. # ----------------------------------------------------------------------------
  191. PRELUDE:
  192. @echo ������������������������ͻ
  193. @echo � Makefile for UILibrary �
  194. @echo ������������������������ͼ
  195. @echo $(MSG)
  196. !ifndef SRCTOK
  197. set INCLUDE=$(OLEREL_DIR);$(INCLUDE)
  198. set LIB=$(OLEREL_DIR);$(LIB)
  199. !endif
  200. # ----------------------------------------------------------------------------
  201. # G O A L T A R G E T S
  202. # ----------------------------------------------------------------------------
  203. !include "depend"
  204. CLEAN: CleanUp GOAL
  205. CleanUp:
  206. -echo y|del .\$(OBJ)\*.*
  207. -del $(LIBNAME).lib
  208. $(O)precomp.pch: precomp.c
  209. !ifdef DOS
  210. SET CL=$(CFLAGS) -Fp$(O)precomp.pch -Ycole2ui.h
  211. $(CC) -Fo$(O)$(@B) precomp.c
  212. !else
  213. $(CC) $(CFLAGS) -Fp$(O)precomp.pch -Ycole2ui.h -D_FILE_=\"precomp.c\" -Fo$(O)$(@B) precomp.c
  214. !endif
  215. #
  216. # Build .LIB static library
  217. #
  218. $(LIBNAME).lib: $(LIBOBJS) $(PRECOMPOBJ)
  219. -del $(O)$(LIBNAME).lib
  220. lib @<<
  221. $(O)$(LIBNAME).lib
  222. y
  223. $(PRECOMPOBJ: = +) $(LIBOBJS: = +)
  224. <<
  225. copy $(O)$(LIBNAME).lib $(LIBNAME).lib
  226. # install built library to $(INSTALL_DIR) dir
  227. install:
  228. copy $(LIBNAME).lib $(INSTALL_DIR)
  229. copy ole2ui.h $(INSTALL_DIR)
  230. copy olestd.h $(INSTALL_DIR)
  231. copy msgfiltr.h $(INSTALL_DIR)
  232. copy enumfetc.h $(INSTALL_DIR)
  233. copy uiclass.h $(INSTALL_DIR)
  234. # EOF ========================================================================