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.

590 lines
17 KiB

  1. ##########################################################################
  2. #
  3. # Makefile for OUTLUI.DLL
  4. #
  5. # Usage: NMAKE (builds DEBUG library)
  6. # or: NMAKE RELEASE=1 (builds RELEASE library -- no debug symbols)
  7. # or: NMAKE clean (erase all compiled files)
  8. #
  9. # Environment variables:
  10. # DEVROOT_DIR=<path> (root dir for sample code development)
  11. #
  12. ##########################################################################
  13. LIBNAME = outlui
  14. !ifndef DEVROOT_DIR
  15. !error You must define DEVROOT_DIR (ole20 sub-tree)
  16. !endif
  17. !ifndef INCLUDE
  18. !error You must define INCLUDE (non ole20 include files)
  19. !endif
  20. !ifndef LIB
  21. !error You must deinfe LIB (non ole20 libraries)
  22. !endif
  23. !ifndef OLEBUILD
  24. OLEBUILD=NT
  25. !endif
  26. OLE2_H=$(DEVROOT_DIR)\h
  27. OLE2_LIB=$(DEVROOT_DIR)\lib
  28. !ifndef SAMPLE_DIR
  29. SAMPLE_DIR = $(DEVROOT_DIR)\samples
  30. !endif
  31. SRC_DIR = $(SAMPLE_DIR)\$(APP)
  32. MAKEFILE = makefile.32
  33. # ============================================================================
  34. # File: M A K E F I L E
  35. #
  36. # NMAKE description file for the OLE2.0 User Interface DLL
  37. #
  38. # Copyright (C) Microsoft Corporation, 1992-1993. All Rights Reserved.
  39. # Microsoft Confidential.
  40. # ============================================================================
  41. # ----------------------------------------------------------------------------
  42. # U I M A K E . I N I
  43. # ----------------------------------------------------------------------------
  44. !if "$(OLEBUILD)" == "DOS" || "$(OLEBUILD)" == ""
  45. DOS=1
  46. !endif
  47. !if "$(OLEBUILD)" == "NT"
  48. NT=1
  49. !if "$(MACHINE)" == "i386" || "$(MACHINE)" == ""
  50. MACHINE = i386
  51. MACHINE_D = _X86_
  52. MACHINE_CC = cl386
  53. !endif
  54. !if "$(MACHINE)" == "MIPS"
  55. MACHINE = mips
  56. MACHINE_D = _MIPS_
  57. MACHINE_CC = cc
  58. !endif
  59. !endif
  60. !include "uimake.ini"
  61. !ifndef LANG
  62. LANG=USA
  63. !endif
  64. !ifndef BUILD
  65. BUILD=dll
  66. !endif
  67. GOAL: MAKEINI
  68. nmake -f $(MAKEFILE) PRELUDE SETFLAGS $(LIBNAME).$(BUILD)
  69. MAKEINI:
  70. nmake -f $(MAKEFILE) LIBNAME=$(LIBNAME) LANG=$(LANG) BUILD=$(BUILD) RESOURCE=RESOUCE REL_DIR=$(OLEREL_DIR) DEBUG
  71. !if "$(INSTALL_DIR)"==""
  72. INSTALL_DIR = $(REL_DIR)
  73. !endif
  74. #use src/tok pairs to build if localized version
  75. !if ("$(LANG)"!="USA") && ("$(LANG)"!="usa")
  76. SRCTOK=1
  77. !endif
  78. # ----------------------------------------------------------------------------
  79. # O B J E C T F I L E L I S T
  80. # ----------------------------------------------------------------------------
  81. UI_COBJS = \
  82. D^\busy.obj\
  83. D^\common.obj\
  84. D^\convert.obj\
  85. D^\dbgutil.obj\
  86. D^\drawicon.obj\
  87. D^\hatch.obj\
  88. D^\icon.obj\
  89. D^\iconbox.obj\
  90. D^\insobj.obj\
  91. D^\links.obj\
  92. D^\msgfiltr.obj\
  93. D^\enumfetc.obj\
  94. D^\objfdbk.obj\
  95. D^\ole2ui.obj\
  96. D^\olestd.obj\
  97. D^\targtdev.obj\
  98. D^\oleutl.obj\
  99. D^\pastespl.obj\
  100. D^\regdb.obj\
  101. D^\resimage.obj\
  102. D^\utility.obj\
  103. UI_NOPCOBJS = \
  104. D^\geticon.obj\
  105. UI_DLLOBJS = \
  106. D^\dllfuncs.obj\
  107. PRECOMPOBJ=$(O)precomp.obj
  108. PRECOMP=$(O)precomp.pch
  109. # ----------------------------------------------------------------------------
  110. # R E S O U R C E L I S T
  111. # ----------------------------------------------------------------------------
  112. RES = \
  113. busy.h \
  114. common.h \
  115. convert.h \
  116. edlinks.h \
  117. geticon.h \
  118. icon.h \
  119. iconbox.h \
  120. insobj.h \
  121. msgfiltr.h \
  122. enumfetc.h \
  123. ole2ui.h \
  124. pastespl.h \
  125. resimage.h \
  126. $(RESOURCE)\STATIC\default.ico \
  127. $(RESOURCE)\STATIC\bang.ico \
  128. $(RESOURCE)\STATIC\egares.bmp \
  129. $(RESOURCE)\STATIC\hivgares.bmp \
  130. $(RESOURCE)\STATIC\vgares.bmp \
  131. $(RESOURCE)\$(LANG)\strings.rc \
  132. $(RESOURCE)\$(LANG)\busy.dlg \
  133. $(RESOURCE)\$(LANG)\convert.dlg \
  134. $(RESOURCE)\$(LANG)\fileopen.dlg \
  135. $(RESOURCE)\$(LANG)\icon.dlg \
  136. $(RESOURCE)\$(LANG)\insobj.dlg \
  137. $(RESOURCE)\$(LANG)\links.dlg \
  138. $(RESOURCE)\$(LANG)\pastespl.dlg \
  139. $(RESOURCE)\$(LANG)\prompt.dlg \
  140. $(RESOURCE)\ole2ui.rcv \
  141. $(RESOURCE)\$(LANG)\verlocal.h \
  142. # ----------------------------------------------------------------------------
  143. # D E B U G S T A T I C L I B M A K E P A R A M E T E R S
  144. # ----------------------------------------------------------------------------
  145. DEBUGLIB:
  146. @echo Creating DEBUG LIB <<uimake.ini
  147. # This is the DEBUG static .LIB UILibrary INI file
  148. MSG=DEBUG Static LIB Version ($$(LANG))
  149. DEBUG=1
  150. MODEL=M
  151. # Make a static library called OLE2UI.LIB
  152. LIBNAME=OLE2UI
  153. REL_DIR=$(REL_DIR)
  154. OLEREL_DIR=$(OLEREL_DIR)
  155. OBJ=DEBUGLIB
  156. BUILD=LIB
  157. RESOURCE=RESOURCE
  158. CFLAGS=-c -Od -GA2s -W3 -Zpei -A$(MODEL) -D_DEBUG
  159. RFLAGS=-D DEBUG
  160. LFLAGS=/MAP:FULL /CO /LINE /NOD /NOE /SE:300
  161. UILIBS=mlibcew libw ole2 storage shell commdlg toolhelp
  162. CC=cl
  163. AS=masm
  164. RS=rc
  165. LK=link
  166. LANG=$(LANG)
  167. LIBOBJS = $$(UI_COBJS:D^\=DEBUGLIB^\) $$(UI_NOPCOBJS:D^\=DEBUGLIB\NOPC^\)
  168. <<KEEP
  169. @echo Creating <<uiclass.h
  170. #define OLEUICLASS1 "$(LIBNAME)Class1"
  171. #define OLEUICLASS2 "$(LIBNAME)Class2"
  172. <<KEEP
  173. @echo Enter "$(MAKE)" to make Debug static LIB UILibrary
  174. # ----------------------------------------------------------------------------
  175. # R E T A I L S T A T I C L I B M A K E P A R A M E T E R S
  176. # ----------------------------------------------------------------------------
  177. RETAILIB:
  178. @echo Creating RETAIL LIB <<uimake.ini
  179. # This is the RETAIL static .LIB UILibrary INI file
  180. MSG=RETAIL Static LIB Version ($$(LANG))
  181. RETAIL=1
  182. MODEL=M
  183. # Make a static library called OLE2UI.LIB
  184. LIBNAME=OLE2UI
  185. REL_DIR=$(REL_DIR)
  186. OLEREL_DIR=$(OLEREL_DIR)
  187. OBJ=RETAILIB
  188. BUILD=LIB
  189. RESOURCE=RESOURCE
  190. CFLAGS=-c -Os -GA2s -W3 -Zpe -A$(MODEL)
  191. RFLAGS=
  192. LFLAGS=/MAP:FULL /LINE /NOD /NOE /SE:300
  193. UILIBS=mlibcew libw ole2 storage shell commdlg toolhelp
  194. CC=cl
  195. AS=masm
  196. RS=rc
  197. LK=link
  198. LANG=$(LANG)
  199. LIBOBJS = $$(UI_COBJS:D^\=RETAILIB^\) $$(UI_NOPCOBJS:D^\=RETAILIB\NOPC^\)
  200. <<KEEP
  201. @echo Creating <<uiclass.h
  202. #define OLEUICLASS1 "$(LIBNAME)Class1"
  203. #define OLEUICLASS2 "$(LIBNAME)Class2"
  204. <<KEEP
  205. @echo Enter "$(MAKE)" to make Retail static LIB UILibrary
  206. # ----------------------------------------------------------------------------
  207. # D E B U G M A K E P A R A M E T E R S
  208. # ----------------------------------------------------------------------------
  209. !ifdef NT
  210. DEBUG:
  211. @echo Creating DEBUG for NT <<uimake.ini
  212. # This is the DEBUG UILibrary INI file
  213. MSG=DEBUG Version ($$(LANG))
  214. DEBUG=1
  215. LIBNAME=$(LIBNAME)
  216. REL_DIR=$(REL_DIR)
  217. OLEREL_DIR=$(OLEREL_DIR)
  218. OBJ=DEBUG
  219. RESOURCE=RESOURCE
  220. CC = $(MACHINE_CC)
  221. DEFS1 = /D$(MACHINE_D) /D_DEBUG /D_DEBUGTRACE=0 /DWIN32 /DOLE2SHIP
  222. DEFS2 = /D$(MACHINE)=1 /D_NTWIN /D_WINDOWS /DWINVER=0x030A /D_NTDLL /D_DLL
  223. CFLAGS = $$(DEFS1) $$(DEFS2) /Z7 /Od /c /Fc /G3 /W3 /nologo $(CL)
  224. LFLAGS = -subsystem:windows -machine:$(MACHINE) -debug:mapped,full -debugtype:both
  225. RFLAGS = /DWIN32 /D_DEBUG
  226. UILIBS1 = mpr.lib crtdll.lib ntdll.lib
  227. UILIBS2 = ole2w32.lib storag32.lib
  228. UILIBS3 = kernel32.lib user32.lib gdi32.lib advapi32.lib shell32.lib comdlg32.lib
  229. UILIBS = $$(UILIBS1) $$(UILIBS2) $$(UILIBS3)
  230. LK = link32
  231. LANG = $(LANG)
  232. RS = rc
  233. DLLOBJS = $$(UI_DLLOBJS:D^\=DEBUG^\)
  234. LIBOBJS = $$(UI_COBJS:D^\=DEBUG^\) $$(UI_NOPCOBJS:D^\=DEBUG\NOPC^\)
  235. <<KEEP
  236. @echo Enter "$(MAKE)" to make Debug UILibrary
  237. !else
  238. DEBUG:
  239. @echo Creating DEBUG <<uimake.ini
  240. # This is the DEBUG UILibrary INI file
  241. MSG=DEBUG DLL Version ($$(LANG))
  242. DEBUG=1
  243. MODEL=M
  244. LIBNAME=$(LIBNAME)
  245. REL_DIR=$(REL_DIR)
  246. OLEREL_DIR=$(OLEREL_DIR)
  247. OBJ=DEBUG
  248. BUILD=DLL
  249. RESOURCE=RESOURCE
  250. CFLAGS=-c -Od -GD2s -W3 -Zpei -AMw -D_DEBUG -DDLL_VER -D_WINDLL
  251. RFLAGS=-D DEBUG -D DLL_VER
  252. LFLAGS=/MAP:FULL /CO /LINE /NOD /NOE /SE:300
  253. UILIBS=mdllcew libw ole2 storage shell commdlg toolhelp
  254. CC=cl
  255. RS=rc
  256. LK=link
  257. LANG=$(LANG)
  258. DLLOBJS = $$(UI_DLLOBJS:D^\=DEBUG^\)
  259. LIBOBJS = $$(UI_COBJS:D^\=DEBUG^\) $$(UI_NOPCOBJS:D^\=DEBUG\NOPC^\)
  260. <<KEEP
  261. @echo Creating <<uiclass.h
  262. #define OLEUICLASS1 "$(LIBNAME)Class1"
  263. #define OLEUICLASS2 "$(LIBNAME)Class2"
  264. <<KEEP
  265. @echo Enter "$(MAKE)" to make Debug UILibrary
  266. !endif
  267. # ----------------------------------------------------------------------------
  268. # R E T A I L D L L M A K E P A R A M E T E R S
  269. # ----------------------------------------------------------------------------
  270. RETAIL:
  271. @echo Creating RETAIL <<uimake.ini
  272. # This is the RETAIL UILibrary INI file
  273. MSG=RETAIL DLL Version ($$(LANG))
  274. RETAIL=1
  275. MODEL=M
  276. LIBNAME=$(LIBNAME)
  277. REL_DIR=$(REL_DIR)
  278. OLEREL_DIR=$(OLEREL_DIR)
  279. OBJ=RETAIL
  280. BUILD=DLL
  281. RESOURCE=RESOURCE
  282. CFLAGS=-c -Os -GD2s -W3 -Zpe -AMw -DOPTIMIZE -DDLL_VER -D_WINDLL
  283. RFLAGS=-D DLL_VER
  284. LFLAGS=/MAP /NOD /NOE /SE:300 /AL:16
  285. UILIBS=mdllcew libw ole2 storage shell commdlg toolhelp
  286. CC=cl
  287. RS=rc
  288. LK=link
  289. LANG=$(LANG)
  290. DLLOBJS = $$(UI_DLLOBJS:D^\=RETAIL^\)
  291. LIBOBJS = $$(UI_COBJS:D^\=RETAIL^\) $$(UI_NOPCOBJS:D^\=RETAIL\NOPC^\)
  292. <<KEEP
  293. @echo Creating <<uiclass.h
  294. #define OLEUICLASS1 "$(LIBNAME)Class1"
  295. #define OLEUICLASS2 "$(LIBNAME)Class2"
  296. <<KEEP
  297. @echo Enter "$(MAKE)" to make Retail UILibrary
  298. !if [if not exist $(OBJ)\*. md $(OBJ) >nul]
  299. !error Object subdirectory $(OBJ)\ could not be created
  300. !endif
  301. !if [if not exist $(OBJ)\NOPC\*. md $(OBJ)\NOPC > nul]
  302. !error non-precompiled header object subdirectory $(OBJ)\NOPC\ could not be created
  303. !endif
  304. #select language for version resource if localized version
  305. !if ("$(LANG)"!="USA") && ("$(LANG)"!="usa")
  306. RFLAGS=$(RFLAGS) -D VER_LOC
  307. !endif
  308. !if ("$(LIBNAME)"=="PUBOLEUI")
  309. RFLAGS=$(RFLAGS) -D PUBLISHER
  310. !endif
  311. .SUFFIXES: .c .asm .obj .res .rc .def .bmp .ico .exe .dll .cod .str
  312. O=.\$(OBJ)^\
  313. # ----------------------------------------------------------------------------
  314. # I N F E R E N C E R U L E S
  315. # ----------------------------------------------------------------------------
  316. # compile C file without precompiled headers into object directory\NOPC
  317. # dont compile c files etc for lcoalized builds.
  318. !ifndef SRCTOK
  319. {}.c{$(O)NOPC\}.obj:
  320. @echo ������������������������� Compiling $(@B).c �������������������������
  321. !ifdef DOS
  322. SET CL=$(CFLAGS)
  323. $(CC) -Fo$(O)NOPC\$(@B) $(@B).c
  324. !else
  325. $(CC) $(CFLAGS) -Fo$(O)NOPC\$(@B) $(@B).c
  326. !endif
  327. # compile C file into object directory
  328. {}.c{$(O)}.obj:
  329. @echo ������������������������� Compiling $(@B).c �������������������������
  330. !ifdef DOS
  331. SET CL=$(CFLAGS) -Yuole2ui.h -Fp$(O)precomp.pch
  332. $(CC) -Fo$(O)$(@B) $(@B).c
  333. !else
  334. $(CC) $(CFLAGS) -Yuole2ui.h -Fp$(O)precomp.pch -Fo$(O)$(@B) $(@B).c
  335. !endif
  336. !endif
  337. #endif SRCTOK
  338. {}.rc{$(O)}.res:
  339. @echo ������������������� Resource Compiling $(@B).res ��������������������
  340. $(RS) -I $(RESOURCE)\$(LANG);$(RESOURCE)\static;$(RESOURCE) -FO $(O)$(@B).res -R $(RFLAGS) $(@B).rc
  341. -del $(LIBNAME).dll
  342. !ifndef SRCTOK
  343. {}.c.cod:
  344. @echo ����������������������� Making $(@B).cod �����������������������
  345. !ifdef DOS
  346. SET CL=$(CFLAGS) -f -Fc
  347. $(CC) $(@B).c
  348. !else
  349. $(CC) $(CFLAGS) -f- -Fc $(@B).c
  350. !endif
  351. !endif
  352. #endif SRCTOK
  353. # rules for creating rc & dlg files for localized verisons from src/tok pairs
  354. !ifdef SRCTOK
  355. $(RESOURCE)\$(LANG)\busy.dlg : $(RESOURCE)\$(LANG)\busy.tok $(RESOURCE)\src\busy.src
  356. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  357. $(RESOURCE)\$(LANG)\convert.dlg : $(RESOURCE)\$(LANG)\convert.tok $(RESOURCE)\src\convert.src
  358. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  359. $(RESOURCE)\$(LANG)\fileopen.dlg : $(RESOURCE)\$(LANG)\fileopen.tok $(RESOURCE)\src\fileopen.src
  360. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  361. $(RESOURCE)\$(LANG)\icon.dlg : $(RESOURCE)\$(LANG)\icon.tok $(RESOURCE)\src\icon.src
  362. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  363. $(RESOURCE)\$(LANG)\insobj.dlg : $(RESOURCE)\$(LANG)\insobj.tok $(RESOURCE)\src\insobj.src
  364. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  365. $(RESOURCE)\$(LANG)\links.dlg : $(RESOURCE)\$(LANG)\links.tok $(RESOURCE)\src\links.src
  366. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  367. $(RESOURCE)\$(LANG)\pastespl.dlg : $(RESOURCE)\$(LANG)\pastespl.tok $(RESOURCE)\src\pastespl.src
  368. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  369. $(RESOURCE)\$(LANG)\prompt.dlg : $(RESOURCE)\$(LANG)\prompt.tok $(RESOURCE)\src\prompt.src
  370. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  371. $(RESOURCE)\$(LANG)\strings.rc : $(RESOURCE)\$(LANG)\strings.tok $(RESOURCE)\src\strings.src
  372. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  373. !endif
  374. # ----------------------------------------------------------------------------
  375. # D E P E N D F I L E C R E A T I O N
  376. # ----------------------------------------------------------------------------
  377. UI_CFILE = $(UI_COBJS:.obj=.c) $(UI_DLLOBJS:.obj=.c)
  378. UI_NOPCFILE = $(UI_NOPCOBJS:.obj=.c)
  379. DEPEND: nul
  380. @echo Making a NEW dependancy file.
  381. mkdep -p $$(O) -s .obj $(UI_CFILE:D^\=) > tmp.tmp
  382. sed "s/:/: $$(PRECOMP)/g" < tmp.tmp > depend
  383. -del tmp.tmp
  384. mkdep -p $$(O)NOPC\ -s .obj $(UI_NOPCFILE:D^\=) >> depend
  385. mkdep -p $$(O) -s .pch precomp.c >> depend
  386. # ----------------------------------------------------------------------------
  387. # W E L C O M E B A N N E R
  388. # ----------------------------------------------------------------------------
  389. PRELUDE:
  390. @echo ������������������������ͻ
  391. @echo � Makefile for UILibrary �
  392. @echo ������������������������ͼ
  393. @echo $(MSG)
  394. !ifndef SRCTOK
  395. set INCLUDE=$(OLEREL_DIR);$(INCLUDE)
  396. set LIB=$(OLEREL_DIR);$(LIB)
  397. !endif
  398. SETFLAGS:
  399. set INCLUDE=$(INCLUDE);$(OLE2_H)
  400. set LIB=$(LIB);$(OLE2_LIB)
  401. # ----------------------------------------------------------------------------
  402. # G O A L T A R G E T S
  403. # ----------------------------------------------------------------------------
  404. !include "depend"
  405. CLEAN: CleanUp GOAL
  406. CleanUp: MAKEINI
  407. nmake -f $(MAKEFILE) SETFLAGS Delete
  408. Delete:
  409. -echo y|del .\$(OBJ)\*.*
  410. -del $(LIBNAME).dll
  411. -del $(LIBNAME).lib
  412. !ifndef SRCTOK
  413. $(O)precomp.pch: precomp.c
  414. !ifdef DOS
  415. SET CL=$(CFLAGS) -Fp$(O)precomp.pch -Ycole2ui.h
  416. $(CC) -Fo$(O)$(@B) precomp.c
  417. !else
  418. $(CC) $(CFLAGS) -Fp$(O)precomp.pch -Ycole2ui.h -Fo$(O)$(@B) precomp.c
  419. !endif
  420. !endif
  421. #endif SRCTOK
  422. $(O)ole2ui.res: ole2ui.rc $(RES)
  423. ole2ui.rc : $(RESOURCE)\$(LANG)\strings.rc
  424. #
  425. # Build .LIB static library
  426. #
  427. $(LIBNAME).lib: $(LIBOBJS) $(PRECOMPOBJ)
  428. -del $(O)$(LIBNAME).lib
  429. lib @<<
  430. $(O)$(LIBNAME).lib
  431. y
  432. $(PRECOMPOBJ: = +) $(LIBOBJS: = +)
  433. <<
  434. copy $(O)$(LIBNAME).lib $(LIBNAME).lib
  435. #
  436. # Build .DLL dynamic-link library
  437. #
  438. !if "$(OLEBUILD)" == "NT"
  439. !else
  440. $(O)$(LIBNAME).lib: $(LIBOBJS) $(PRECOMPOBJS)
  441. -del $(O)$(LIBNAME).lib
  442. lib @<<
  443. $(O)$(LIBNAME).lib
  444. y
  445. $(PRECOMPOBJ: = +) $(LIBOBJS: = +)
  446. <<
  447. !endif
  448. !if "$(OLEBUILD)" == "NT"
  449. $(LIBNAME).dll: $(LIBNAME).d32 $(PRECOMPOBJS) $(LIBOBJS) $(DLLOBJS) $(O)ole2ui.res
  450. @echo Linking ...
  451. lib32 -out:$*.lib -def:$(LIBNAME).d32 -machine:$(MACHINE) $(LIBOBJS) $(DLLOBJS)
  452. cvtres -$(MACHINE) $(O)ole2ui.res -o $*.rs
  453. link32 $(LFLAGS) -entry:LibMain@12 @<<$(BUILD_DIR)\ole2util.lnk
  454. $(LIBNAME).exp $(LIBOBJS) $(DLLOBJS) $(PRECOMPOBJ) $(UILIBS) $*.rs -out:$@ -map:$*.map -dll $(UILIBS)
  455. <<KEEP
  456. !else
  457. $(O)$(LIBNAME).exe: $(O)$(LIBNAME).lib $(DLLOBJS) $(O)ole2ui.res
  458. @echo �����������������������į Linking UILibrary �������������������������
  459. @echo Creating <<$(O)$(@B).lnk
  460. $(LFLAGS) +
  461. $(PRECOMPOBJ: = +^
  462. )+
  463. $(DLLOBJS: = +^
  464. )+
  465. $(O)$(@B)
  466. $(@B).map
  467. $(UILIBS) $(O)$(LIBNAME).lib
  468. $(LIBNAME).def
  469. <<KEEP
  470. $(LK) @$(O)$(@B).lnk
  471. $(RS) -31 $(RFLAGS) $(O)ole2ui.res $(O)$(LIBNAME).exe
  472. !ifndef SRCTOK
  473. $(LIBNAME).dll: $(O)$(LIBNAME).exe ole2ui.def
  474. copy $(O)$(LIBNAME).exe $(LIBNAME).dll
  475. mapsym -n -l $(LIBNAME).map
  476. implib $(LIBNAME).lib $(LIBNAME).dll
  477. !else
  478. $(LIBNAME).dll: $(O)ole2ui.res
  479. copy $(RESOURCE)\USA\$(LIBNAME).dll $(LIBNAME).dll
  480. $(RS) -31 -K $(RFLAGS) $(O)ole2ui.res $(LIBNAME).dll
  481. !endif
  482. !endif
  483. #endif SRCTOK
  484. install: MAKEINI
  485. nmake -f $(MAKEFILE) SETFLAGS InstallAll
  486. # install built library to $(INSTALL_DIR) dir
  487. InstallAll:
  488. copy $(LIBNAME).dll $(INSTALL_DIR)
  489. copy $(LIBNAME).lib $(INSTALL_DIR)
  490. copy $(LIBNAME).sym $(INSTALL_DIR)
  491. copy ole2ui.h $(INSTALL_DIR)
  492. copy msgfiltr.h $(INSTALL_DIR)
  493. copy enumfetc.h $(INSTALL_DIR)
  494. copy regdb.h $(INSTALL_DIR)
  495. copy olestd.h $(INSTALL_DIR)
  496. copy geticon.h $(INSTALL_DIR)
  497. copy ole2ui.rc $(INSTALL_DIR)
  498. copy uiclass.h $(INSTALL_DIR)
  499. # EOF ========================================================================