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.

607 lines
19 KiB

  1. # ============================================================================
  2. # File: M A K E F I L E
  3. #
  4. # NMAKE description file for the OLE2.0 User Interface DLL
  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 two steps. The first time you
  13. # call the makefile, it generates a file called UIMAKE.INI. The second time
  14. # you call the makefile, it reads settings from UIMAKE.INI and actually
  15. # performs the build. See the section below "UIMAKE.INI" for more information
  16. # on this file.
  17. #
  18. # 1. Initial Step -- Before building your library for the first time, you
  19. # need to run one of the following commands. (This step will only be needed
  20. # to run again if you want to build a different variant of the library, for
  21. # instance if you want to switch from a DEBUG to a RETAIL build).
  22. #
  23. # NMAKE DEBUG - Prepares for building DEBUG DLL version
  24. # NMAKE RETAIL - Prepares for building RETAIL DLL version
  25. # NMAKE DEBUGLIB - Prepares for building DEBUG static LIB version
  26. # NMAKE RETAILIB - Prepares for building RETAIL static LIB version
  27. #
  28. # This step builds the UIMAKE.INI file, which contains the settings
  29. # which specify what version of the library you want to build.
  30. #
  31. # 2. Build Step
  32. #
  33. # NMAKE
  34. #
  35. # This second step reads the settings in the UIMAKE.INI file and builds
  36. # the requested library.
  37. #
  38. #
  39. # UIMAKE.INI
  40. # ----------
  41. #
  42. # This file is used to specify which variant of the library to build,
  43. # as well as details like which compiler and linker options to use. The
  44. # file is created based on the settings in the "MAKE PARAMETERS" section
  45. # of this makefile.
  46. #
  47. # For most builds, using the default settings will work fine, but if you
  48. # need to change how you build the library, the UIMAKE.INI file is a
  49. # simple way to make this change without changing the makefile.
  50. #
  51. # The following lists a few of the settings in the UIMAKE.INI file which
  52. # you might change, and what effect those changes might have. For a
  53. # complete listing of all the available options and how they are used,
  54. # see the makefile below.
  55. #
  56. # MODEL=[S|M|C|L] -- The memory model. Only available
  57. # on static .LIB version. This flag is
  58. # also included (but not used) in the DLL
  59. # version of UIMAKE.INI in order to allow
  60. # switching between the DLL and LIB version.
  61. # LIBNAME= -- The library name. For building your own
  62. # library (other than the ones for the samples),
  63. # this must be set to a unique name for your
  64. # application.
  65. # LANG= -- Used for international versions of this
  66. # library. Specifies which directory the
  67. # resources come from. Default is USA
  68. #
  69. # ============================================================================
  70. # ----------------------------------------------------------------------------
  71. # U I M A K E . I N I
  72. # ----------------------------------------------------------------------------
  73. # XXXXXXX DOS=1
  74. !ifndef LANG
  75. LANG=USA
  76. !endif
  77. !if [if not exist uimake.ini dir uimake.ini >nul] != 0
  78. #!if [test -f uimake.ini] != 0
  79. LIBNAME=
  80. MODEL=M
  81. RESOURCE=RESOURCE
  82. !ifndef REL_DIR
  83. @echo REL_DIR not defined
  84. REL_DIR=c:\ole2samp\release
  85. !endif
  86. !ifndef OLERELDIR
  87. @echo OLEREL_DIR not defined
  88. OLEREL_DIR=c:\ole2samp\release
  89. !endif
  90. GOAL: DEBUG
  91. !else
  92. !include "uimake.ini"
  93. GOAL: PRELUDE $(LIBNAME).$(BUILD)
  94. !endif
  95. !if "$(INSTALL_DIR)"==""
  96. INSTALL_DIR = $(REL_DIR)
  97. !endif
  98. #use src/tok pairs to build if localized version
  99. !if ("$(LANG)"!="USA") && ("$(LANG)"!="usa")
  100. SRCTOK=1
  101. !endif
  102. # ----------------------------------------------------------------------------
  103. # O B J E C T F I L E L I S T
  104. # ----------------------------------------------------------------------------
  105. UI_COBJS = \
  106. D^\ole2ui.obj\
  107. D^\busy.obj\
  108. D^\common.obj\
  109. D^\convert.obj\
  110. D^\dbgutil.obj\
  111. D^\drawicon.obj\
  112. D^\hatch.obj\
  113. D^\icon.obj\
  114. D^\iconbox.obj\
  115. D^\insobj.obj\
  116. D^\links.obj\
  117. D^\msgfiltr.obj\
  118. D^\enumfetc.obj\
  119. D^\enumstat.obj\
  120. D^\objfdbk.obj\
  121. D^\olestd.obj\
  122. D^\targtdev.obj\
  123. D^\oleutl.obj\
  124. D^\pastespl.obj\
  125. D^\regdb.obj\
  126. D^\resimage.obj\
  127. D^\utility.obj\
  128. UI_NOPCOBJS = \
  129. D^\geticon.obj\
  130. D^\dballoc.obj\
  131. D^\suminfo.obj\
  132. D^\stdpal.obj\
  133. UI_DLLOBJS = \
  134. D^\dllfuncs.obj\
  135. PRECOMPOBJ= $(O)precomp.obj
  136. PRECOMP=$(O)precomp.pch
  137. # ----------------------------------------------------------------------------
  138. # R E S O U R C E L I S T
  139. # ----------------------------------------------------------------------------
  140. RES = \
  141. busy.h \
  142. common.h \
  143. convert.h \
  144. edlinks.h \
  145. geticon.h \
  146. icon.h \
  147. iconbox.h \
  148. insobj.h \
  149. msgfiltr.h \
  150. enumfetc.h \
  151. ole2ui.h \
  152. pastespl.h \
  153. resimage.h \
  154. dballoc.h \
  155. suminfo.h \
  156. stdpal.h \
  157. $(RESOURCE)\STATIC\default.ico \
  158. $(RESOURCE)\STATIC\bang.ico \
  159. $(RESOURCE)\STATIC\egares.bmp \
  160. $(RESOURCE)\STATIC\hivgares.bmp \
  161. $(RESOURCE)\STATIC\vgares.bmp \
  162. $(RESOURCE)\$(LANG)\strings.rc \
  163. $(RESOURCE)\$(LANG)\busy.dlg \
  164. $(RESOURCE)\$(LANG)\convert.dlg \
  165. $(RESOURCE)\$(LANG)\fileopen.dlg \
  166. $(RESOURCE)\$(LANG)\icon.dlg \
  167. $(RESOURCE)\$(LANG)\insobj.dlg \
  168. $(RESOURCE)\$(LANG)\links.dlg \
  169. $(RESOURCE)\$(LANG)\pastespl.dlg \
  170. $(RESOURCE)\$(LANG)\prompt.dlg \
  171. $(RESOURCE)\ole2ui.rcv \
  172. $(RESOURCE)\$(LANG)\verlocal.h \
  173. # ----------------------------------------------------------------------------
  174. # 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
  175. # ----------------------------------------------------------------------------
  176. DEBUGLIB: DbgUI
  177. DbgUI:
  178. @echo Creating DEBUG LIB <<uimake.ini
  179. # This is the DEBUG static .LIB UILibrary INI file
  180. MSG=DEBUG Static LIB Version ($$(LANG))
  181. DEBUG=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=DEBUGLIB
  188. BUILD=LIB
  189. RESOURCE=RESOURCE
  190. # 16 bit CFLAGS=-c -Od -GA2s -W3 -Zpei -A$(MODEL) -D_DEBUG -DWIN32 -DUNICODE
  191. CFLAGS=-c -Od -Gs -W3 -Zpei -D_DEBUG -DWIN32 -DUNICODE
  192. RFLAGS=-D DEBUG
  193. LFLAGS=/MAP:FULL /CO /LINE /NOD /NOE /SE:300 /NOPACKCODE
  194. UILIBS=mlibcew libw ole2 storage shell commdlg toolhelp
  195. CC=cl
  196. AS=masm
  197. RS=rc
  198. LK=link
  199. LANG=$(LANG)
  200. LIBOBJS = $$(UI_COBJS:D^\=DEBUGLIB^\) $$(UI_NOPCOBJS:D^\=DEBUGLIB\NOPC^\)
  201. <<KEEP
  202. @echo Creating <<uiclass.h
  203. #define SZCLASSICONBOX TEXT("$(LIBNAME)IBClass")
  204. #define SZCLASSRESULTIMAGE TEXT("$(LIBNAME)RIClass")
  205. <<KEEP
  206. @echo Enter "$(MAKE)" to make Debug static LIB UILibrary
  207. # ----------------------------------------------------------------------------
  208. # 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
  209. # ----------------------------------------------------------------------------
  210. RETAILIB:
  211. @echo Creating RETAIL LIB <<uimake.ini
  212. # This is the RETAIL static .LIB UILibrary INI file
  213. MSG=RETAIL Static LIB Version ($$(LANG))
  214. RETAIL=1
  215. MODEL=M
  216. # Make a static library called OLE2UI.LIB
  217. LIBNAME=OLE2UI
  218. REL_DIR=$(REL_DIR)
  219. OLEREL_DIR=$(OLEREL_DIR)
  220. OBJ=RETAILIB
  221. BUILD=LIB
  222. RESOURCE=RESOURCE
  223. # 16 bit CFLAGS=-c -Os -GA2s -W3 -Zpe -A$(MODEL) -DWIN32 -DUNICODE
  224. CFLAGS=-c -Os -Gs -W3 -Zpe -DWIN32 -DUNICODE
  225. RFLAGS=
  226. LFLAGS=/MAP:FULL /LINE /NOD /NOE /SE:300 /NOPACKCODE
  227. UILIBS=mlibcew libw ole2 storage shell commdlg toolhelp
  228. CC=cl
  229. AS=masm
  230. RS=rc
  231. LK=link
  232. LANG=$(LANG)
  233. LIBOBJS = $$(UI_COBJS:D^\=RETAILIB^\) $$(UI_NOPCOBJS:D^\=RETAILIB\NOPC^\)
  234. <<KEEP
  235. @echo Creating <<uiclass.h
  236. #define SZCLASSICONBOX TEXT("$(LIBNAME)IBClass")
  237. #define SZCLASSRESULTIMAGE TEXT("$(LIBNAME)RIClass")
  238. <<KEEP
  239. @echo Enter "$(MAKE)" to make Retail static LIB UILibrary
  240. # ----------------------------------------------------------------------------
  241. # D E B U G D L L M A K E P A R A M E T E R S
  242. # ----------------------------------------------------------------------------
  243. DEBUG: Dbg
  244. Dbg:
  245. @echo Creating DEBUG <<uimake.ini
  246. # This is the DEBUG UILibrary INI file
  247. MSG=DEBUG DLL Version ($$(LANG))
  248. DEBUG=1
  249. MODEL=M
  250. LIBNAME=$(LIBNAME)
  251. REL_DIR=$(REL_DIR)
  252. OLEREL_DIR=$(OLEREL_DIR)
  253. OBJ=DEBUG
  254. BUILD=DLL
  255. RESOURCE=RESOURCE
  256. #CFLAGS=-c -Od -GD2s -W3 -Zpei -AMw -D_DEBUG -DDLL_VER -D_WINDLL
  257. # 16 bit CFLAGS=-c -Od -GA2s -GEd -W3 -Zpei -AMw -D_DEBUG -DDLL_VER -D_WINDLL -DWIN32 -DUNICODE
  258. CFLAGS=-c -Od -Gs -Gd -W3 -Zpei -AMw -D_DEBUG -DDLL_VER -D_WINDLL -DWIN32 -DUNICODE -DNOASSERT
  259. RFLAGS=-D DEBUG -D DLL_VER
  260. # 16 bit LFLAGS=/MAP:FULL /CO /LINE /NOD /NOE /SE:300 /NOPACKCODE
  261. LFLAGS=/MAP:$(LIBNAME).map /NOD /DLL /IMPLIB:$(LIBNAME).lib
  262. # 16 bit UILIBS=mdllcew libw ole2 storage shell commdlg toolhelp
  263. UILIBS= $(IMPORT)\nt475\lib\objind\advapi32.lib \
  264. $(IMPORT)\nt475\lib\objind\comdlg32.lib \
  265. $(IMPORT)\nt475\lib\objind\crtdll.lib \
  266. $(IMPORT)\nt475\lib\objind\gdi32.lib \
  267. $(IMPORT)\nt475\lib\objind\kernel32.lib \
  268. $(IMPORT)\nt475\lib\objind\libcnt.lib \
  269. $(IMPORT)\nt475\lib\objind\shell32.lib \
  270. $(IMPORT)\nt475\lib\objind\user32.lib \
  271. $(COMMON)\ilib\OBJind\ole232.lib \
  272. $(COMMON)\types\OBJind\uuid.lib \
  273. $(COMMON)\ilib\OBJind\storag32.lib \
  274. $(COMMON)\ilib\OBJind\compob32.lib
  275. CC=cl
  276. RS=rc
  277. LK=link
  278. LANG=$(LANG)
  279. DLLOBJS = $$(UI_DLLOBJS:D^\=DEBUG^\)
  280. LIBOBJS = $$(UI_COBJS:D^\=DEBUG^\) $$(UI_NOPCOBJS:D^\=DEBUG\NOPC^\)
  281. <<KEEP
  282. @echo Creating <<uiclass.h
  283. #define SZCLASSICONBOX "$(LIBNAME)IBClass"
  284. #define SZCLASSRESULTIMAGE "$(LIBNAME)RIClass"
  285. <<KEEP
  286. @echo Enter "$(MAKE)" to make Debug UILibrary
  287. # ----------------------------------------------------------------------------
  288. # R E T A I L M A K E P A R A M E T E R S
  289. # ----------------------------------------------------------------------------
  290. RETAIL:
  291. @echo Creating RETAIL <<uimake.ini
  292. # This is the RETAIL UILibrary INI file
  293. MSG=RETAIL DLL Version ($$(LANG))
  294. RETAIL=1
  295. MODEL=M
  296. LIBNAME=$(LIBNAME)
  297. REL_DIR=$(REL_DIR)
  298. OLEREL_DIR=$(OLEREL_DIR)
  299. OBJ=RETAIL
  300. BUILD=DLL
  301. RESOURCE=RESOURCE
  302. #CFLAGS=-c -Os -GD2s -W3 -Zpe -AMw -DOPTIMIZE -DDLL_VER -D_WINDLL
  303. # 16 bit CFLAGS=-c -Os -GA2s -GEd -W3 -Zpe -AMw -DOPTIMIZE -DDLL_VER -D_WINDLL -DWIN32 -DUNICODE
  304. CFLAGS=-c -Os -Gs -Gd -W3 -Zpe -DOPTIMIZE -DDLL_VER -D_WINDLL -DWIN32 -DUNICODE
  305. RFLAGS=-D DLL_VER
  306. LFLAGS=/MAP /NOD /NOE /SE:300 /AL:16 /NOPACKCODE
  307. UILIBS=mdllcew libw ole2 storage shell commdlg toolhelp
  308. CC=cl
  309. RS=rc
  310. LK=link
  311. LANG=$(LANG)
  312. DLLOBJS = $$(UI_DLLOBJS:D^\=RETAIL^\)
  313. LIBOBJS = $$(UI_COBJS:D^\=RETAIL^\) $$(UI_NOPCOBJS:D^\=RETAIL\NOPC^\)
  314. <<KEEP
  315. @echo Creating <<uiclass.h
  316. #define SZCLASSICONBOX TEXT("$(LIBNAME)IBClass")
  317. #define SZCLASSRESULTIMAGE TEXT("$(LIBNAME)RIClass")
  318. <<KEEP
  319. @echo Enter "$(MAKE)" to make Retail UILibrary
  320. !if [if not exist $(OBJ)\*. md $(OBJ) >nul]
  321. !error Object subdirectory $(OBJ)\ could not be created
  322. !endif
  323. !if [if not exist $(OBJ)\NOPC\*. md $(OBJ)\NOPC > nul]
  324. !error non-precompiled header object subdirectory $(OBJ)\NOPC\ could not be created
  325. !endif
  326. #select language for version resource if localized version
  327. !if ("$(LANG)"!="USA") && ("$(LANG)"!="usa")
  328. RFLAGS=$(RFLAGS) -D VER_LOC
  329. !endif
  330. .SUFFIXES: .c .asm .obj .res .rc .def .bmp .ico .exe .dll .cod .str
  331. O=.\$(OBJ)^\
  332. # ----------------------------------------------------------------------------
  333. # I N F E R E N C E R U L E S
  334. # ----------------------------------------------------------------------------
  335. !ifndef SRCTOK
  336. # compile C file without precompiled headers into object directory\NOPC
  337. # dont compile c files etc for lcoalized builds.
  338. {}.c{$(O)NOPC\}.obj:
  339. @echo ������������������������� Compiling $(@B).c �������������������������
  340. !ifdef DOS
  341. SET CL=$(CFLAGS)
  342. $(CC) -Fo$(O)NOPC\$(@B) $(@B).c
  343. !else
  344. !undef _FILE_
  345. $(CC) $(CFLAGS) -D_FILE_=\"$(*B).c\" -Fo$(O)NOPC\$(@B) $(@B).c
  346. !endif
  347. # compile C file into object directory
  348. {}.c{$(O)}.obj:
  349. @echo ������������������������� Compiling $(@B).c �������������������������
  350. !ifdef DOS
  351. SET CL=$(CFLAGS) -Yuole2ui.h -Fp$(O)precomp.pch
  352. $(CC) -Fo$(O)$(@B) $(@B).c
  353. !else
  354. !undef _FILE_
  355. # $(CC) $(CFLAGS) -Yuole2ui.h -Fp$(O)precomp.pch -D_FILE_=\"$(*B).c\" -Fo$(O)$(@B) $(@B).c
  356. $(CC) $(CFLAGS) -D_FILE_=\"$(*B).c\" -Fo$(O)$(@B) $(@B).c
  357. !endif
  358. # compile CPP file without precompiled headers into object directory\NOPC
  359. # dont compile cpp files etc for lcoalized builds.
  360. {}.cpp{$(O)NOPC\}.obj:
  361. @echo ������������������������� Compiling $(@B).cpp �������������������������
  362. !ifdef DOS
  363. SET CL=$(CFLAGS)
  364. $(CC) -Fo$(O)NOPC\$(@B) $(@B).cpp
  365. !else
  366. !undef _FILE_
  367. $(CC) $(CFLAGS) -D_FILE_=\"$(*B).cpp\" -Fo$(O)NOPC\$(@B) $(@B).cpp
  368. !endif
  369. # compile CPP file into object directory
  370. {}.cpp{$(O)}.obj:
  371. @echo ������������������������� Compiling $(@B).cpp �������������������������
  372. !ifdef DOS
  373. SET CL=$(CFLAGS) -Yuole2ui.h -Fp$(O)precomp.pch
  374. $(CC) -Fo$(O)$(@B) $(@B).cpp
  375. !else
  376. !undef _FILE_
  377. # $(CC) $(CFLAGS) -Yuole2ui.h -Fp$(O)precomp.pch -D_FILE_=\"$(*B).cpp\" -Fo$(O)$(@B) $(@B).cpp
  378. $(CC) $(CFLAGS) -D_FILE_=\"$(*B).cpp\" -Fo$(O)$(@B) $(@B).cpp
  379. !endif
  380. !endif
  381. #endif SRCTOK
  382. {}.rc{$(O)}.res:
  383. @echo ������������������� Resource Compiling $(@B).res ��������������������
  384. $(RS) -I $(RESOURCE)\$(LANG);$(RESOURCE)\static;$(RESOURCE) -FO $(O)$(@B).res -DWIN32 -DUNICODE -R $(RFLAGS) $(@B).rc
  385. -del $(LIBNAME).dll
  386. !ifndef SRCTOK
  387. {}.c.cod:
  388. @echo ����������������������� Making $(@B).cod �����������������������
  389. !ifdef DOS
  390. SET CL=$(CFLAGS) -f -Fc
  391. $(CC) $(@B).c
  392. !else
  393. !undef _FILE_
  394. $(CC) $(CFLAGS) -f- -Fc -D_FILE_=\"$(*B).c\" $(@B).c
  395. !endif
  396. !endif
  397. # rules for creating rc & dlg files for localized verisons from src/tok pairs
  398. !ifdef SRCTOK
  399. $(RESOURCE)\$(LANG)\busy.dlg : $(RESOURCE)\$(LANG)\busy.tok $(RESOURCE)\src\busy.src
  400. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  401. $(RESOURCE)\$(LANG)\convert.dlg : $(RESOURCE)\$(LANG)\convert.tok $(RESOURCE)\src\convert.src
  402. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  403. $(RESOURCE)\$(LANG)\fileopen.dlg : $(RESOURCE)\$(LANG)\fileopen.tok $(RESOURCE)\src\fileopen.src
  404. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  405. $(RESOURCE)\$(LANG)\icon.dlg : $(RESOURCE)\$(LANG)\icon.tok $(RESOURCE)\src\icon.src
  406. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  407. $(RESOURCE)\$(LANG)\insobj.dlg : $(RESOURCE)\$(LANG)\insobj.tok $(RESOURCE)\src\insobj.src
  408. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  409. $(RESOURCE)\$(LANG)\links.dlg : $(RESOURCE)\$(LANG)\links.tok $(RESOURCE)\src\links.src
  410. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  411. $(RESOURCE)\$(LANG)\pastespl.dlg : $(RESOURCE)\$(LANG)\pastespl.tok $(RESOURCE)\src\pastespl.src
  412. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  413. $(RESOURCE)\$(LANG)\prompt.dlg : $(RESOURCE)\$(LANG)\prompt.tok $(RESOURCE)\src\prompt.src
  414. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  415. $(RESOURCE)\$(LANG)\strings.rc : $(RESOURCE)\$(LANG)\strings.tok $(RESOURCE)\src\strings.src
  416. tok -q -f $*.tok $(RESOURCE)\src\$(@B).src > $@
  417. !endif
  418. # ----------------------------------------------------------------------------
  419. # D E P E N D F I L E C R E A T I O N
  420. # ----------------------------------------------------------------------------
  421. UI_CFILE = $(UI_COBJS:.obj=.c) $(UI_DLLOBJS:.obj=.c)
  422. UI_NOPCFILE = $(UI_NOPCOBJS:.obj=.c)
  423. DEPEND: nul
  424. @echo Making a NEW dependancy file.
  425. mkdep -p $$(O) -s .obj $(UI_CFILE:D^\=) > tmp.tmp
  426. sed "s/:/: $$(PRECOMP)/g" < tmp.tmp > depend
  427. -del tmp.tmp
  428. mkdep -p $$(O)NOPC\ -s .obj $(UI_NOPCFILE:D^\=) >> depend
  429. mkdep -p $$(O) -s .pch precomp.c >> depend
  430. # ----------------------------------------------------------------------------
  431. # W E L C O M E B A N N E R
  432. # ----------------------------------------------------------------------------
  433. PRELUDE:
  434. @echo ������������������������ͻ
  435. @echo � Makefile for UILibrary �
  436. @echo ������������������������ͼ
  437. @echo $(MSG)
  438. !ifndef SRCTOK
  439. set INCLUDE=$(OLEREL_DIR);$(INCLUDE)
  440. set LIB=$(OLEREL_DIR);$(LIB)
  441. !endif
  442. # ----------------------------------------------------------------------------
  443. # G O A L T A R G E T S
  444. # ----------------------------------------------------------------------------
  445. !include "depend"
  446. CLEAN: CleanUp GOAL
  447. CleanUp:
  448. -echo y|del .\$(OBJ)\*.*
  449. -del $(LIBNAME).dll
  450. -del $(LIBNAME).lib
  451. !ifndef SRCTOK
  452. $(O)precomp.pch: precomp.c
  453. !ifdef DOS
  454. SET CL=$(CFLAGS) -Fp$(O)precomp.pch -Ycole2ui.h
  455. $(CC) -Fo$(O)$(@B) precomp.c
  456. !else
  457. !undef _FILE_
  458. @echo Precompiling Header Files....
  459. $(CC) $(CFLAGS) -Fp$(O)precomp.pch -Ycole2ui.h -D_FILE_=\"precomp.c\" -Fo$(O)$(@B) precomp.c
  460. !endif
  461. !endif
  462. $(O)ole2ui.res: ole2ui.rc $(RES)
  463. ole2ui.rc : $(RESOURCE)\$(LANG)\strings.rc
  464. #
  465. # Build .LIB static library
  466. #
  467. $(LIBNAME).lib: $(LIBOBJS) $(PRECOMPOBJ)
  468. -del $(O)$(LIBNAME).lib
  469. lib @<<
  470. $(O)$(LIBNAME).lib
  471. y
  472. $(PRECOMPOBJ: = +) $(LIBOBJS: = +)
  473. <<
  474. copy $(O)$(LIBNAME).lib $(LIBNAME).lib
  475. #
  476. # Build .DLL dynamic-link library
  477. #
  478. # HACK!
  479. # XXXXX
  480. # after echo LIBRARY $(LIBNAME) INITINSTANCE
  481. $(O)$(LIBNAME).exe: $(LIBOBJS) $(PRECOMPOBJ) $(DLLOBJS) $(O)ole2ui.res defoleui.def
  482. @echo �����������������������į Linking UILibrary �������������������������
  483. -del $(LIBNAME).def
  484. @echo Creating <<$(LIBNAME).def
  485. LIBRARY ole2ui
  486. DESCRIPTION 'OLE 2.0 UI Support Library.'
  487. <<KEEP
  488. type defoleui.def >> $(LIBNAME).def
  489. $(LK) @<<
  490. $(LFLAGS)
  491. $(LIBOBJS: = ^
  492. )
  493. $(DLLOBJS: = ^
  494. )
  495. $(O)$(LIBNAME).res
  496. $(UILIBS)
  497. /DEF:$(LIBNAME).def
  498. <<KEEP
  499. # $(RS) $(O)ole2ui.res $(O)$(LIBNAME).dll
  500. #$(LIBOBJS: = +^
  501. #) +
  502. #$(DLLOBJS: = +^
  503. #)+
  504. #$(PRECOMPOBJ: = +^
  505. #)
  506. #$(LFLAGS)
  507. #$(O)$(@B)
  508. #$(@B).map
  509. #$(UILIBS)
  510. #$(LIBNAME).def
  511. #<<KEEP
  512. # $(RS) -31 -K $(RFLAGS) $(O)ole2ui.res $(O)$(LIBNAME).exe
  513. !ifndef SRCTOK
  514. $(LIBNAME).dll: $(O)$(LIBNAME).exe ole2ui.def
  515. # copy $(O)$(LIBNAME).exe $(LIBNAME).dll
  516. mapsym -n -l $(LIBNAME).map
  517. # implib -NOWEP $(LIBNAME).lib $(LIBNAME).dll
  518. !else
  519. $(LIBNAME).dll: $(O)ole2ui.res
  520. copy $(RESOURCE)\USA\$(LIBNAME).dll $(LIBNAME).dll
  521. # 16 bit $(RS) -31 -K $(RFLAGS) $(O)ole2ui.res $(LIBNAME).dll
  522. $(RS) $(O)ole2ui.res $(LIBNAME).dll
  523. !endif
  524. # install built library to $(INSTALL_DIR) dir
  525. install:
  526. @echo Gets HERE!!!!!!
  527. copy $(LIBNAME).dll $(RESOURCE)\USA
  528. copy $(LIBNAME).dll $(INSTALL_DIR)
  529. copy $(LIBNAME).lib $(INSTALL_DIR)
  530. copy $(LIBNAME).sym $(INSTALL_DIR)
  531. copy ole2ui.h $(INSTALL_DIR)
  532. copy olestd.h $(INSTALL_DIR)
  533. copy msgfiltr.h $(INSTALL_DIR)
  534. copy enumfetc.h $(INSTALL_DIR)
  535. copy uiclass.h $(INSTALL_DIR)
  536. # EOF ========================================================================
  537.