home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xwplascr.zip / XWPL0208.ZIP / makefile < prev    next >
Makefile  |  2002-08-10  |  32KB  |  914 lines

  1.  
  2. #
  3. # makefile:
  4. #       This is XWorkplace's main makefile.
  5. #       For use with IBM NMAKE, which comes with the IBM compilers,
  6. #       the Developer's Toolkit, and the DDK.
  7. #
  8. #       All the makefiles have been restructured with V0.9.0.
  9. #
  10. #       Called from:    nowhere, this is the main makefile.
  11. #                       This recurses into the subdirectories.
  12. #
  13. #       Input:          specify the target(s) to be made, which can be:
  14. #
  15. #                       --  "dep": create dependencies for all makefiles.
  16. #                           Run this first before the regular "all"
  17. #                           target.
  18. #
  19. #                       --  "all" (default): build XFLDR.DLL, XWPHOOK.DLL,
  20. #                           XWPDAEMN.EXE, plus the default plugin DLLs.
  21. #
  22. #                       --  "really_all": "all" plus external EXEs
  23. #                           (Treesize, Netscape DDE, et al) plus NLS
  24. #                           specified by the XWP_LANG_CODE variable,
  25. #                           which defaults to "001" (setup.in).
  26. #
  27. #                       The following subtargets exist (which get called
  28. #                       by the "all" or "really_all" targets):
  29. #
  30. #                       --  nls: compile $(XWP_LANG_CODE)\ directory
  31. #                       --  tools: compile TOOLS\ directory
  32. #                       --  idl: update SOM headers (include\classes\*)
  33. #                       --  cpl_main: compile *.c files for DLLs, no link
  34. #                       --  link: link bin\*.obj to DLLs and copy to XWorkplace
  35. #                                 install directory
  36. #
  37. #                       Use "nmake -a [<targets>] to _re_build the targets,
  38. #                       even if they are up to date.
  39. #
  40. #                       Other special targets not used by "all" or "really_all"
  41. #                       (these must be specified explicitly on the nmake
  42. #                       command line):
  43. #
  44. #                       --  dlgedit: invoke dialog editor on NLS DLL
  45. #                       --  release: create/update release tree in directory
  46. #                           specified by XWPRELEASE; this invokes "really_all"
  47. #                           in turn.
  48. #
  49. #       Environment:    You MUST set a number of environment variables before
  50. #                       compiling. See PROGREF.INF.
  51. #
  52. #       Output:         All XWorkplace Files code files. This calls the other
  53. #                       makefiles in the subdirectories.
  54. #
  55. #                       Output files are first created in bin\ (which is
  56. #                       created if it doesn't exist), then copied to
  57. #                       $(XWPRUNNING), which must be defined externally or
  58. #                       thru "setup.in".
  59. #
  60. #       Edit "setup.in" to set up the make process (compilation flags etc.).
  61. #
  62.  
  63. # Say hello to yourself.
  64. !if [@echo +++++ Entering $(MAKEDIR)]
  65. !endif
  66.  
  67. # include setup (compiler options etc.)
  68. !include setup.in
  69.  
  70. # VARIABLES
  71. # ---------
  72.  
  73. # objects.in defines the .OBJ files to be compiled.
  74. !include objects.in
  75.  
  76. OUTPUTDIR = $(XWP_OUTPUT_ROOT)
  77.  
  78. # The OBJS macro contains all the .OBJ files which have been
  79. # created from the files in MAIN\. The definitions below are
  80. # from the objects.in include file.
  81. OBJS = \
  82. $(XFLDR_OBJS_CLASSES) \
  83. $(XFLDR_OBJS_SHARED) \
  84. $(XFLDR_OBJS_CONFIG) \
  85. $(XFLDR_OBJS_FILESYS) \
  86. $(XFLDR_OBJS_MEDIA) \
  87. $(XFLDR_OBJS_STARTSHUT) \
  88. $(XFLDR_OBJS_XCENTER)
  89.  
  90. # The HLPOBJS macro contains all the .OBJ files which have been
  91. # created from the files in HELPERS\. You probably won't have to change this.
  92. HLPOBJS = $(XWP_OUTPUT_ROOT)\helpers.lib
  93.  
  94. # The following macros contains the .OBJ files for the XCenter plugins.
  95. DISKFREEOBJS = $(XWP_OUTPUT_ROOT)\widgets\w_diskfree.obj $(PMPRINTF_LIB)
  96. WINLISTOBJS = $(XWP_OUTPUT_ROOT)\widgets\w_winlist.obj $(PMPRINTF_LIB)
  97. IPMONOBJS = $(XWP_OUTPUT_ROOT)\widgets\w_ipmon.obj $(PMPRINTF_LIB) libs\tcp32dll.lib libs\so32dll.lib
  98. MONITOROBJS = $(XWP_OUTPUT_ROOT)\widgets\w_monitors.obj $(PMPRINTF_LIB)
  99. SENTINELOBJS = $(XWP_OUTPUT_ROOT)\widgets\w_sentinel.obj $(PMPRINTF_LIB) libs\win32k.lib
  100. HEALTHOBJS = $(XWP_OUTPUT_ROOT)\widgets\xwHealth.obj $(PMPRINTF_LIB)
  101. SAMPLEOBJS = $(XWP_OUTPUT_ROOT)\widgets\____sample.obj $(PMPRINTF_LIB)
  102.  
  103. D_CDFSOBJS = $(XWP_OUTPUT_ROOT)\widgets\d_cdfs.obj $(PMPRINTF_LIB)
  104.  
  105. # objects for XDEBUG.DLL (debugging only)
  106. DEBUG_OBJS = $(XWP_OUTPUT_ROOT)\xdebug.obj $(XWP_OUTPUT_ROOT)\xdebug_folder.obj
  107.  
  108. # Define the suffixes for files which NMAKE will work on.
  109. # .SUFFIXES is a reserved NMAKE keyword ("pseudotarget") for
  110. # defining file extensions that NMAKE will recognize.
  111. .SUFFIXES: .obj .dll .exe .h .rc .res
  112.  
  113. # The LIBS macro contains all the .LIB files, either from the compiler or
  114. # others, which are needed for this project:
  115. #   somtk       is the SOM toolkit lib
  116. #   pmprintf    is for debugging
  117. # The other OS/2 libraries are used by default.
  118. LIBS = $(TKBASE)\som\lib\somtk.lib $(PMPRINTF_LIB)
  119.  
  120. # some variable strings to pass to sub-nmakes
  121. SUBMAKE_PASS_STRING = "PROJECT_BASE_DIR=$(PROJECT_BASE_DIR)" "PROJECT_INCLUDE=$(PROJECT_INCLUDE)"
  122.  
  123. # store current directory so we can change back later
  124. CURRENT_DIR = $(MAKEDIR)
  125.  
  126. # REGULAR MAIN TARGETS
  127. # --------------------
  128.  
  129. # "all": default, does a regular compile, but leaves
  130. # out the not-so-important stuff such as netscdee and treesize.
  131. # Basically, this is for updating XFLDR.DLL and the hook/daemon
  132. # for speed.
  133. all:            compile_all link
  134.     @echo ----- Leaving $(MAKEDIR)
  135.     @echo Yo, done!
  136.  
  137. # "really_all" references "all" and compiles really everything.
  138. # This must be used for the release version.
  139. really_all:     compile_really_all tools link nls
  140.     @echo ----- Leaving $(MAKEDIR)
  141.     @echo Yo, done!
  142.  
  143. # "dep": create dependencies.
  144. dep:
  145.     @echo $(MAKEDIR)\makefile [$@]: Going for subdir src (dep)
  146.     @cd src
  147.     $(MAKE) -nologo dep "SUBTARGET=dep" "RUNDEPONLY=1" "REALLYALL=1"
  148.     @cd $(CURRENT_DIR)
  149.     @echo $(MAKEDIR)\makefile [$@]: Going for src\helpers (DLL version)
  150.     @cd $(HELPERS_BASE)\src\helpers
  151.     @nmake -nologo dep "NOINCLUDEDEPEND=1" $(SUBMAKE_PASS_STRING)
  152.     @cd $(CURRENT_DIR)
  153.     @echo ----- Leaving $(MAKEDIR)
  154.     @echo Yo, done!
  155.  
  156. # "COMPILE" PSEUDOTARGETS
  157. # -----------------------
  158.  
  159. # The following are invoked via "all" or "really_all"
  160. # to call src\makefile with SUBTARGET=all, which will
  161. # in turn invoke nmake all to the src\ subdirectories.
  162.  
  163. # idl always gets invoked first to check whether
  164. # src\classes\*.c needs to be refreshed from idl\*.idl.
  165. idl:
  166.     @echo $(MAKEDIR)\makefile [$@]: Going for subdir idl
  167.     @cd idl
  168.     @nmake -nologo all "MAINMAKERUNNING=YES"
  169.     @cd ..
  170.  
  171. helpers:
  172. # helpers:
  173. # this branches over to the xwphelpers source tree,
  174. # which is prepared for this. The helpers.lib file
  175. # is created in $(XWP_OUTPUT_ROOT) then.
  176.     @echo $(MAKEDIR)\makefile [$@]: Going for src\helpers (DLL version)
  177.     @cd $(HELPERS_BASE)\src\helpers
  178.     @nmake -nologo all "MAINMAKERUNNING=YES" $(SUBMAKE_PASS_STRING) \
  179. "HELPERS_OUTPUT_DIR=$(XWP_OUTPUT_ROOT)" "CC_HELPERS=$(CC_HELPERS_DLL)"
  180. # according to VAC++ user guide, we need to use /ge+ for libs
  181. # even if the lib will be linked to a DLL
  182.     @cd $(CURRENT_DIR)
  183.  
  184. helpers_exe_mt:
  185. # helpers_exe_mt:
  186. # same as the above, but this builds a multithread lib for EXEs
  187. # in $(XWP_OUTPUT_ROOT)\exe_mt\ instead.
  188.     @echo $(MAKEDIR)\makefile [$@]: Going for src\helpers (EXE MT version)
  189.     @cd $(HELPERS_BASE)\src\helpers
  190.     @nmake -nologo all "MAINMAKERUNNING=YES" $(SUBMAKE_PASS_STRING) \
  191. "HELPERS_OUTPUT_DIR=$(XWP_OUTPUT_ROOT)\exe_mt" "CC_HELPERS=$(CC_HELPERS_EXE_MT)"
  192.     @cd $(CURRENT_DIR)
  193.  
  194. # compile_all: compile main (without treesize etc.)
  195. compile_all: idl helpers helpers_exe_mt
  196.     @echo $(MAKEDIR)\makefile [$@]: Going for subdir src
  197.     @cd src
  198.     $(MAKE) -nologo "SUBTARGET=all"
  199.     @cd $(CURRENT_DIR)
  200.  
  201. # compile_really_all: compile really_all
  202. compile_really_all: idl helpers helpers_exe_mt
  203.     @echo $(MAKEDIR)\makefile [$@]: Going for subdir src (REALLY_ALL)
  204.     @cd src
  205.     $(MAKE) -nologo "SUBTARGET=all" "REALLYALL=1"
  206.     @cd $(CURRENT_DIR)
  207.  
  208. tools:
  209.     @echo $(MAKEDIR)\makefile [$@]: Going for subdir tools
  210.     @cd tools
  211.     $(MAKE) -nologo "SUBTARGET=all" "MAINMAKERUNNING=YES"
  212.     @cd ..
  213.  
  214. xwpsecurity:
  215.     @echo $(MAKEDIR)\makefile [$@]: Going for subdir src\xwpsec_ring0
  216.     @cd src\xwpsec_ring0
  217.     @nmake -nologo all "MAINMAKERUNNING=YES" $(SUBMAKE_PASS_STRING)
  218.     @cd ..\..
  219.     @echo $(MAKEDIR)\makefile [$@]: Going for subdir src\XWPShell
  220.     @cd src\XWPShell
  221.     @nmake -nologo all "MAINMAKERUNNING=YES" $(SUBMAKE_PASS_STRING)
  222.     @cd ..\..
  223.  
  224. $(XWP_LANG_CODE):
  225.     @echo $(MAKEDIR)\makefile [$@]: Going for subdir $(XWP_LANG_CODE)
  226.     @cd $(XWP_LANG_CODE)
  227.     @nmake -nologo all "MAINMAKERUNNING=YES" $(SUBMAKE_PASS_STRING)
  228.     @cd ..
  229.  
  230. 049:
  231.     @echo $(MAKEDIR)\makefile [$@]: Going for subdir 049
  232.     @cd 049
  233.     @nmake -nologo all "MAINMAKERUNNING=YES" $(SUBMAKE_PASS_STRING)
  234.     @cd ..
  235.  
  236. !ifdef BUILD_049_TOO
  237. nls: $(XWP_LANG_CODE) 049
  238. !else
  239. nls: $(XWP_LANG_CODE)
  240. !endif
  241.  
  242. # LINKER PSEUDOTARGETS
  243. # --------------------
  244.  
  245. link: $(XWPRUNNING)\bin\xfldr.dll \
  246.       $(XWPRUNNING)\bin\xwpres.dll \
  247.       $(XWPRUNNING)\plugins\xcenter\diskfree.dll \
  248.       $(XWPRUNNING)\plugins\xcenter\ipmon.dll \
  249.       $(XWPRUNNING)\plugins\xcenter\monitors.dll \
  250.       $(XWPRUNNING)\plugins\xcenter\winlist.dll \
  251.       $(XWPRUNNING)\plugins\xcenter\sentinel.dll \
  252.       $(XWPRUNNING)\plugins\xcenter\xwHealth.dll \
  253.       $(XWPRUNNING)\plugins\xcenter\sample.dll \
  254.       $(XWPRUNNING)\plugins\drvdlgs\d_cdfs.dll \
  255. #      $(XWPRUNNING)\bin\xwphook.dll \
  256. #      $(XWPRUNNING)\bin\xwpdaemn.exe
  257. #      $(XWPRUNNING)\bin\xwpfonts.fon
  258. #      $(XWPRUNNING)\bin\xdebug.dll
  259.  
  260. #
  261. # generic inference rules for copying and stuff
  262. #
  263.  
  264. {$(MODULESDIR)}.dll{$(XWPRUNNING)\plugins\xcenter}.dll:
  265. !ifdef XWP_UNLOCK_MODULES
  266.         $(RUN_UNLOCK) $@
  267. !endif
  268.         cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\plugins\xcenter
  269.         cmd.exe /c copy $(MODULESDIR)\$(@B).sym $(XWPRUNNING)\plugins\xcenter
  270.  
  271. {$(MODULESDIR)}.dll{$(XWPRUNNING)\plugins\drvdlgs}.dll:
  272. !ifdef XWP_UNLOCK_MODULES
  273.         $(RUN_UNLOCK) $@
  274. !endif
  275.         cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\plugins\drvdlgs
  276.         cmd.exe /c copy $(MODULESDIR)\$(@B).sym $(XWPRUNNING)\plugins\drvdlgs
  277.  
  278. # Finally, define rules for linking the target DLLs and EXEs
  279. # This uses the $OBJS and $HLPOBJS macros defined at the top.
  280. #
  281. # The actual targets are the DLLs and EXEs in the XWorkplace
  282. # installation directory. We create the target in bin\ first
  283. # and then copy it thereto.
  284.  
  285. #
  286. # Linking XFLDR.DLL
  287. #
  288. $(XWPRUNNING)\bin\xfldr.dll: $(MODULESDIR)\$(@B).dll
  289. !ifdef XWP_UNLOCK_MODULES
  290.         $(RUN_UNLOCK) $@
  291. !endif
  292.         cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\bin
  293.         cmd.exe /c copy $(MODULESDIR)\$(@B).sym $(XWPRUNNING)\bin
  294. !ifdef DYNAMIC_TRACE
  295.         @echo $(MAKEDIR)\makefile [$@]: Creating TRACE files for $(@B).dll
  296.         maptsf $(@B).map /MAJOR=255 /LOGSTACK=32 /LOGRETURN > $(@B).tsf
  297.         trcust $(@B).tsf /I /L=bin\$(@B).dll /node /M=$(@B).map
  298.         @echo $(MAKEDIR)\makefile [$@]: Done creating TRACE files for $(@B).dll
  299.         cmd.exe /c copy $(@B).tdf $(XWPRUNNING)\bin
  300.         cmd.exe /c del $(@B).tdf
  301.         cmd.exe /c copy TRC00FF.TFF $(DYNAMIC_TRACE):\OS2\SYSTEM\TRACE
  302.         cmd.exe /c del TRC00FF.TFF
  303. !endif
  304.  
  305. MODDEFFILE = \
  306. !ifdef XWPLITE
  307. src\shared\xwp_lite.def
  308. !else
  309. src\shared\xwp.def
  310. !endif
  311.  
  312. # update DEF file if buildlevel has changed
  313. src\shared\xwp.def: include\bldlevel.h makefile
  314.         $(RUN_BLDLEVEL) $@ include\bldlevel.h "$(XWPNAME) main module"
  315.  
  316. $(MODULESDIR)\xfldr.dll: $(OBJS) $(HLPOBJS) $(MODDEFFILE) objects.in
  317.         @echo $(MAKEDIR)\makefile [$@]: Linking $@
  318.         $(LINK) @<<$(TEMP)\XFLDR.LNK
  319. /OUT:$@ $(MODDEFFILE) $(OBJS) $(HLPOBJS) $(LIBS)
  320. <<KEEP
  321. !ifdef XWP_OUTPUT_ROOT_DRIVE
  322.         @$(XWP_OUTPUT_ROOT_DRIVE)
  323. !endif
  324.         @cd $(MODULESDIR)
  325.         mapsym /n $(@B).map > NUL
  326. !ifdef CVS_WORK_ROOT_DRIVE
  327.         @$(CVS_WORK_ROOT_DRIVE)
  328. !endif
  329.         @cd $(CURRENT_DIR)
  330.         cmd.exe /c tools\raisebld.cmd include\build.h
  331.  
  332. #
  333. # Linking XWPRES.DLL
  334. #
  335.  
  336. $(XWPRUNNING)\bin\xwpres.dll: $(MODULESDIR)\$(@B).dll
  337. !ifdef XWP_UNLOCK_MODULES
  338.         $(RUN_UNLOCK) $@
  339. !endif
  340.         cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\bin
  341.  
  342. # update DEF file if buildlevel has changed
  343. src\shared\xwpres.def: include\bldlevel.h makefile
  344.         $(RUN_BLDLEVEL) $@ include\bldlevel.h "$(XWPNAME) resources module"
  345.  
  346. $(MODULESDIR)\xwpres.dll: src\shared\xwpres.def $(XWP_OUTPUT_ROOT)\xwpres.res $(XWP_OUTPUT_ROOT)\dummyfont.obj
  347.         @echo $(MAKEDIR)\makefile [$@]: Linking $@
  348.         $(LINK_ALWAYSPACK) /OUT:$@ src\shared\xwpres.def $(XWP_OUTPUT_ROOT)\dummyfont.obj
  349. !ifdef XWP_OUTPUT_ROOT_DRIVE
  350.         @$(XWP_OUTPUT_ROOT_DRIVE)
  351. !endif
  352.         @cd $(MODULESDIR)
  353.         $(RC) ..\xwpres.res $(@B).dll
  354. !ifdef CVS_WORK_ROOT_DRIVE
  355.         @$(CVS_WORK_ROOT_DRIVE)
  356. !endif
  357.         @cd $(CURRENT_DIR)
  358.  
  359. # XCENTER PLUGINS LINKER PSEUDOTARGETS
  360. # ------------------------------------
  361.  
  362. #
  363. # Linking WINLIST.DLL
  364. #
  365.  
  366. # update DEF file if buildlevel has changed
  367. src\widgets\winlist.def: include\bldlevel.h makefile
  368.         $(RUN_BLDLEVEL) $@ include\bldlevel.h "$(XWPNAME) window-list plugin DLL"
  369.  
  370. $(MODULESDIR)\winlist.dll: $(WINLISTOBJS) src\widgets\$(@B).def
  371.         @echo $(MAKEDIR)\makefile [$@]: Linking $@
  372.         $(LINK) /OUT:$@ src\widgets\$(@B).def $(WINLISTOBJS)
  373. !ifdef XWP_OUTPUT_ROOT_DRIVE
  374.         @$(XWP_OUTPUT_ROOT_DRIVE)
  375. !endif
  376.         @cd $(MODULESDIR)
  377.         mapsym /n $(@B).map > NUL
  378. !ifdef CVS_WORK_ROOT_DRIVE
  379.         @$(CVS_WORK_ROOT_DRIVE)
  380. !endif
  381.         @cd $(CURRENT_DIR)
  382.  
  383. #
  384. # Linking DISKFREE.DLL
  385. #
  386. $(XWPRUNNING)\plugins\xcenter\diskfree.dll: $(MODULESDIR)\$(@B).dll
  387. !ifdef XWP_UNLOCK_MODULES
  388.         $(RUN_UNLOCK) $@
  389. !endif
  390.         cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\plugins\xcenter
  391.         cmd.exe /c copy $(MODULESDIR)\$(@B).sym $(XWPRUNNING)\plugins\xcenter
  392.  
  393. # update DEF file if buildlevel has changed
  394. src\widgets\w_diskfree.def: include\bldlevel.h makefile
  395.         $(RUN_BLDLEVEL) $@ include\bldlevel.h "$(XWPNAME) diskfree plugin DLL"
  396.  
  397. $(MODULESDIR)\diskfree.dll: $(DISKFREEOBJS) src\widgets\w_diskfree.def
  398.         @echo $(MAKEDIR)\makefile [$@]: Linking $@
  399.         $(LINK) /OUT:$@ src\widgets\w_diskfree.def @<<
  400. $(DISKFREEOBJS)
  401. <<
  402. !ifdef XWP_OUTPUT_ROOT_DRIVE
  403.         @$(XWP_OUTPUT_ROOT_DRIVE)
  404. !endif
  405.         @cd $(MODULESDIR)
  406.         mapsym /n $(@B).map > NUL
  407. !ifdef CVS_WORK_ROOT_DRIVE
  408.         @$(CVS_WORK_ROOT_DRIVE)
  409. !endif
  410.         @cd $(CURRENT_DIR)
  411.  
  412. #
  413. # Linking ipmon.DLL
  414. #
  415. $(XWPRUNNING)\plugins\xcenter\ipmon.dll: $(MODULESDIR)\$(@B).dll
  416. !ifdef XWP_UNLOCK_MODULES
  417.         $(RUN_UNLOCK) $@
  418. !endif
  419.         cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\plugins\xcenter
  420.         cmd.exe /c copy $(MODULESDIR)\$(@B).sym $(XWPRUNNING)\plugins\xcenter
  421.  
  422. # update DEF file if buildlevel has changed
  423. src\widgets\ipmon.def: include\bldlevel.h makefile
  424.         $(RUN_BLDLEVEL) $@ include\bldlevel.h "$(XWPNAME) IP monitor plugin DLL"
  425.  
  426. $(MODULESDIR)\ipmon.dll: $(IPMONOBJS) src\widgets\$(@B).def
  427.         @echo $(MAKEDIR)\makefile [$@]: Linking $@
  428.         $(LINK) /OUT:$@ src\widgets\$(@B).def $(IPMONOBJS)
  429. !ifdef XWP_OUTPUT_ROOT_DRIVE
  430.         @$(XWP_OUTPUT_ROOT_DRIVE)
  431. !endif
  432.         @cd $(MODULESDIR)
  433.         mapsym /n $(@B).map > NUL
  434. !ifdef CVS_WORK_ROOT_DRIVE
  435.         @$(CVS_WORK_ROOT_DRIVE)
  436. !endif
  437.         @cd $(CURRENT_DIR)
  438.  
  439. #
  440. # Linking MONITORS.DLL
  441. #
  442. $(XWPRUNNING)\plugins\xcenter\monitors.dll: $(MODULESDIR)\$(@B).dll
  443. !ifdef XWP_UNLOCK_MODULES
  444.         $(RUN_UNLOCK) $@
  445. !endif
  446.         cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\plugins\xcenter
  447.         cmd.exe /c copy $(MODULESDIR)\$(@B).sym $(XWPRUNNING)\plugins\xcenter
  448.  
  449. # update DEF file if buildlevel has changed
  450. src\widgets\monitors.def: include\bldlevel.h makefile
  451.         $(RUN_BLDLEVEL) $@ include\bldlevel.h "$(XWPNAME) monitors plugin DLL"
  452.  
  453. $(MODULESDIR)\monitors.dll: $(MONITOROBJS) src\widgets\$(@B).def
  454.         @echo $(MAKEDIR)\makefile [$@]: Linking $@
  455.         $(LINK) /OUT:$@ src\widgets\$(@B).def @<<
  456. $(MONITOROBJS)
  457. <<
  458. !ifdef XWP_OUTPUT_ROOT_DRIVE
  459.         @$(XWP_OUTPUT_ROOT_DRIVE)
  460. !endif
  461.         @cd $(MODULESDIR)
  462.         mapsym /n $(@B).map > NUL
  463. !ifdef CVS_WORK_ROOT_DRIVE
  464.         @$(CVS_WORK_ROOT_DRIVE)
  465. !endif
  466.         @cd $(CURRENT_DIR)
  467.  
  468. #
  469. # Linking sentinel.DLL
  470. #
  471. $(XWPRUNNING)\plugins\xcenter\sentinel.dll: $(MODULESDIR)\$(@B).dll
  472. !ifdef XWP_UNLOCK_MODULES
  473.         $(RUN_UNLOCK) $@
  474. !endif
  475.         cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\plugins\xcenter
  476.         cmd.exe /c copy $(MODULESDIR)\$(@B).sym $(XWPRUNNING)\plugins\xcenter
  477.  
  478. # update DEF file if buildlevel has changed
  479. src\widgets\sentinel.def: include\bldlevel.h makefile
  480.         $(RUN_BLDLEVEL) $@ include\bldlevel.h "$(XWPNAME) memory sentinel plugin DLL"
  481.  
  482. $(MODULESDIR)\sentinel.dll: $(SENTINELOBJS) src\widgets\$(@B).def
  483.         @echo $(MAKEDIR)\makefile [$@]: Linking $@
  484.         $(LINK) /OUT:$@ src\widgets\$(@B).def $(SENTINELOBJS)
  485. !ifdef XWP_OUTPUT_ROOT_DRIVE
  486.         @$(XWP_OUTPUT_ROOT_DRIVE)
  487. !endif
  488.         @cd $(MODULESDIR)
  489.         mapsym /n $(@B).map > NUL
  490. !ifdef CVS_WORK_ROOT_DRIVE
  491.         @$(CVS_WORK_ROOT_DRIVE)
  492. !endif
  493.         @cd $(CURRENT_DIR)
  494.  
  495. #
  496. # Linking xwHealth.DLL
  497. #
  498. $(XWPRUNNING)\plugins\xcenter\xwHealth.dll: $(MODULESDIR)\$(@B).dll
  499. !ifdef XWP_UNLOCK_MODULES
  500.         $(RUN_UNLOCK) $@
  501. !endif
  502.         cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\plugins\xcenter
  503.         cmd.exe /c copy $(MODULESDIR)\$(@B).sym $(XWPRUNNING)\plugins\xcenter
  504.  
  505. # update DEF file if buildlevel has changed
  506. src\widgets\xwHealth.def: include\bldlevel.h makefile
  507.         $(RUN_BLDLEVEL) $@ include\bldlevel.h "$(XWPNAME) xwHealth plugin DLL"
  508.  
  509. $(MODULESDIR)\xwHealth.dll: $(HEALTHOBJS) src\widgets\$(@B).def
  510.         @echo $(MAKEDIR)\makefile [$@]: Linking $@
  511.         $(LINK) /OUT:$@ src\widgets\$(@B).def @<<
  512. $(HEALTHOBJS)
  513. <<
  514. !ifdef XWP_OUTPUT_ROOT_DRIVE
  515.         @$(XWP_OUTPUT_ROOT_DRIVE)
  516. !endif
  517.         @cd $(MODULESDIR)
  518.         mapsym /n $(@B).map > NUL
  519. !ifdef CVS_WORK_ROOT_DRIVE
  520.         @$(CVS_WORK_ROOT_DRIVE)
  521. !endif
  522.         @cd $(CURRENT_DIR)
  523.  
  524. #
  525. # Linking SAMPLE.DLL
  526. #
  527. $(XWPRUNNING)\plugins\xcenter\sample.dll: $(MODULESDIR)\$(@B).dll
  528. !ifdef XWP_UNLOCK_MODULES
  529.         $(RUN_UNLOCK) $@
  530. !endif
  531.         cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\plugins\xcenter
  532.         cmd.exe /c copy $(MODULESDIR)\$(@B).sym $(XWPRUNNING)\plugins\xcenter
  533.  
  534. # update DEF file if buildlevel has changed
  535. src\widgets\sample.def: include\bldlevel.h makefile
  536.         $(RUN_BLDLEVEL) $@ include\bldlevel.h "$(XWPNAME) sample plugin DLL"
  537.  
  538. $(MODULESDIR)\sample.dll: $(SAMPLEOBJS) src\widgets\$(@B).def
  539.         @echo $(MAKEDIR)\makefile [$@]: Linking $@
  540.         $(LINK) /OUT:$@ src\widgets\$(@B).def @<<
  541. $(SAMPLEOBJS)
  542. <<
  543. !ifdef XWP_OUTPUT_ROOT_DRIVE
  544.         @$(XWP_OUTPUT_ROOT_DRIVE)
  545. !endif
  546.         @cd $(MODULESDIR)
  547.         mapsym /n $(@B).map > NUL
  548. !ifdef CVS_WORK_ROOT_DRIVE
  549.         @$(CVS_WORK_ROOT_DRIVE)
  550. !endif
  551.         @cd $(CURRENT_DIR)
  552.  
  553. # DRIVER PLUGINS LINKER PSEUDOTARGETS
  554. # -----------------------------------
  555. #
  556. # Linking D_CDFS.DLL
  557. #
  558.  
  559. # update DEF file if buildlevel has changed
  560. src\widgets\d_cdfs.def: include\bldlevel.h makefile
  561.         $(RUN_BLDLEVEL) $@ include\bldlevel.h "$(XWPNAME) CDFS.IFS driver plugin DLL"
  562.  
  563. $(MODULESDIR)\d_cdfs.dll: $(D_CDFSOBJS) src\widgets\$(@B).def
  564.         @echo $(MAKEDIR)\makefile [$@]: Linking $@
  565.         $(LINK) /OUT:$@ src\widgets\$(@B).def @<<
  566. $(D_CDFSOBJS)
  567. <<
  568. !ifdef XWP_OUTPUT_ROOT_DRIVE
  569.         @$(XWP_OUTPUT_ROOT_DRIVE)
  570. !endif
  571.         @cd $(MODULESDIR)
  572.         mapsym /n $(@B).map > NUL
  573. !ifdef CVS_WORK_ROOT_DRIVE
  574.         @$(CVS_WORK_ROOT_DRIVE)
  575. !endif
  576.         @cd $(CURRENT_DIR)
  577.  
  578. #
  579. # Linking XWPFONTS.FON
  580. #
  581. $(XWPRUNNING)\bin\xwpfonts.fon: $(MODULESDIR)\$(@B).fon
  582. !ifdef XWP_UNLOCK_MODULES
  583.         $(RUN_UNLOCK) $@
  584. !endif
  585.         cmd.exe /c copy $(MODULESDIR)\$(@B).fon $(XWPRUNNING)\bin
  586.  
  587. # update DEF file if buildlevel has changed
  588. src\shared\xwpfonts.def: include\bldlevel.h makefile
  589.         $(RUN_BLDLEVEL) $@ include\bldlevel.h "$(XWPNAME) bitmap fonts"
  590.  
  591. $(MODULESDIR)\xwpfonts.fon: $(XWP_OUTPUT_ROOT)\$(@B).res
  592.         @echo $(MAKEDIR)\makefile [$@]: Linking $(MODULESDIR)\$(@B).fon
  593.         $(LINK) /OUT:$(MODULESDIR)\$(@B).dll src\shared\$(@B).def
  594.         @cd $(MODULESDIR)
  595. # rename manually because otherwise the linker warns
  596. #        cmd.exe /c del $(@B).fon
  597.         cmd.exe /c ren $(@B).dll $(@B).fon
  598.         $(RC) ..\$(@B).res $(@B).fon
  599.         @cd $(CURRENT_DIR)
  600.  
  601. #
  602. # XDEBUG.DLL
  603. #
  604. $(XWPRUNNING)\bin\xdebug.dll: $(MODULESDIR)\$(@B).dll
  605. !ifdef XWP_UNLOCK_MODULES
  606.         $(RUN_UNLOCK) $@
  607. !endif
  608.         cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\bin
  609.  
  610. $(MODULESDIR)\xdebug.dll: src\shared\$(@B).def $(DEBUG_OBJS) $(HLPOBJS) $(XWP_OUTPUT_ROOT)\wpsh.obj
  611.         $(LINK) /OUT:$(MODULESDIR)\$(@B).dll src\shared\$(@B).def $(DEBUG_OBJS) $(HLPOBJS) $(LIBS) $(XWP_OUTPUT_ROOT)\wpsh.obj
  612.  
  613. #
  614. # Special target "dlgedit": this is not called by "all",
  615. # but must be set on the NMAKE command line.
  616. # Note that you need DLGEDIT.EXE from the Toolkit for this.
  617. #
  618.  
  619. dlgedit:
  620. # added (UM 99-10-24)
  621.     @echo $(MAKEDIR)\makefile [$@]: Calling DLGEDIT.EXE
  622.     @cd $(XWP_LANG_CODE)\dll
  623. # rebuild RES file in bin
  624.     @nmake -nologo all "MAINMAKERUNNING=YES"
  625. # copy RES file to 001\dll so dlgedit finds it
  626.     @cmd.exe /c copy $(PROJECT_OUTPUT_DIR)\xfldr$(XWP_LANG_CODE).res
  627.     @cmd.exe /c copy ..\..\include\dlgids.h
  628. # invoke DLGEDIT
  629.     dlgedit xfldr$(XWP_LANG_CODE).res
  630. # move newly created RES file back to \bin
  631.     @cmd.exe /c copy xfldr$(XWP_LANG_CODE).res ..\bin
  632.     @cmd.exe /c del xfldr$(XWP_LANG_CODE).res
  633.     @cmd.exe /c del dlgids.h
  634.     @nmake -nologo all "MAINMAKERUNNING=YES"
  635.     @cd ..\..
  636.  
  637. dlgedit049:
  638. # added V0.9.1 (99-12-19) [umoeller]
  639.     @echo $(MAKEDIR)\makefile [$@]: Calling DLGEDIT.EXE
  640.     @cd 049_de\dll
  641. # rebuild RES file in bin
  642.     @nmake -nologo all "MAINMAKERUNNING=YES"
  643. # copy RES file to frontend.res so dlgedit finds it
  644.     @cmd.exe /c copy ..\..\bin\xfldr049.res
  645.     @cmd.exe /c copy ..\..\include\dlgids.h
  646. # invoke DLGEDIT
  647.     dlgedit xfldr049.res
  648. # move newly created RES file back to \bin
  649.     @cmd.exe /c copy xfldr049.res ..\bin
  650.     @cmd.exe /c del xfldr049.res
  651.     @cmd.exe /c del dlgids.h
  652.     @nmake -nologo all "MAINMAKERUNNING=YES"
  653.     @cd ..\..
  654.  
  655. #
  656. # Special target "release": this is not called by "all",
  657. # but must be set on the NMAKE command line.
  658. #
  659.  
  660. release: really_all
  661. # 1) main dir
  662. !ifndef XWPRELEASE
  663. !error XWPRELEASE must be set before calling "make release". Terminating.
  664. !endif
  665. # nuke old directories
  666. # create directories
  667. !if [@md $(XWPRELEASE) 2> NUL]
  668. !endif
  669. !ifndef XWPLITE
  670. !if [@md $(XWPRELEASE_HEALTH) 2> NUL]
  671. !endif
  672. !endif
  673. !if [@md $(XWPRELEASE_MAIN) 2> NUL]
  674. !endif
  675. !if [@md $(XWPRELEASE_NLS) 2> NUL]
  676. !endif
  677. !if [@md $(XWPRELEASE_NLSDOC) 2> NUL]
  678. !endif
  679. !if [@md $(XWPRELEASE_MAP) 2> NUL]
  680. !endif
  681.     @echo $(MAKEDIR)\makefile [$@]: Now copying files to $(XWPRELEASE).
  682. !ifndef XWPLITE
  683.     $(COPY) release\COPYING $(XWPRELEASE_MAIN)
  684.     $(COPY) release\install.cmd $(XWPRELEASE_MAIN)
  685.     $(COPY) release\file_id.diz $(XWPRELEASE_MAIN)
  686.     $(COPY) release\install.ico $(XWPRELEASE_MAIN)
  687.     $(COPY) $(XWP_LANG_CODE)\readme $(XWPRELEASE_NLSDOC)
  688.     $(COPY) $(MODULESDIR)\xfldr$(XWP_LANG_CODE).inf $(XWPRELEASE_NLSDOC)
  689.     $(COPY) BUGS $(XWPRELEASE_NLSDOC)
  690.     $(COPY) FEATURES $(XWPRELEASE_NLSDOC)
  691.     $(COPY) cvs.txt $(XWPRELEASE_MAIN)
  692. !else
  693.     $(COPY) K:\projects\_private\readme.txt $(XWPRELEASE_MAIN)
  694. !endif
  695. #
  696. # 2) bin
  697. #    a) kernel
  698. !if [@md $(XWPRELEASE_MAIN)\bin 2> NUL]
  699. !endif
  700. !if [@md $(XWPRELEASE_NLS)\bin 2> NUL]
  701. !endif
  702. !ifndef XWPLITE
  703.     $(COPY) release\bin\alwssort.cmd $(XWPRELEASE_MAIN)\bin
  704.     $(COPY) release\bin\bm-lvm.cmd $(XWPRELEASE_MAIN)\bin
  705.     $(COPY) release\bin\bootmgr.cmd $(XWPRELEASE_MAIN)\bin
  706.     $(COPY) release\bin\defdetls.cmd $(XWPRELEASE_MAIN)\bin
  707.     $(COPY) release\bin\deficon.cmd $(XWPRELEASE_MAIN)\bin
  708.     $(COPY) release\bin\deftree.cmd $(XWPRELEASE_MAIN)\bin
  709.     $(COPY) release\bin\iconorm.cmd $(XWPRELEASE_MAIN)\bin
  710.     $(COPY) release\bin\icosmall.cmd $(XWPRELEASE_MAIN)\bin
  711.     $(COPY) release\bin\newobj.cmd $(XWPRELEASE_MAIN)\bin
  712. !endif
  713.     $(COPY) release\bin\packtree.cmd $(XWPRELEASE_MAIN)\bin
  714. !ifndef XWPLITE
  715.     $(COPY) release\bin\showall.cmd $(XWPRELEASE_MAIN)\bin
  716.     $(COPY) release\bin\xhelp.cmd $(XWPRELEASE_MAIN)\bin
  717.     $(COPY) release\bin\xshutdwn.cmd $(XWPRELEASE_MAIN)\bin
  718.     $(COPY) release\bin\xshutdwn.ico
  719. !endif
  720. #    $(COPY) release\bin\icons.dll
  721. !ifndef XWPLITE
  722.     $(COPY) release\bin\files.txt
  723. !endif
  724.     $(COPY) $(MODULESDIR)\xfldr.dll $(XWPRELEASE_MAIN)\bin
  725.     $(COPY) $(MODULESDIR)\xfldr.sym $(XWPRELEASE_MAIN)\bin
  726.     $(COPY) $(MODULESDIR)\xwpres.dll $(XWPRELEASE_MAIN)\bin
  727.     $(COPY) $(MODULESDIR)\xwphook.dll $(XWPRELEASE_MAIN)\bin
  728.     $(COPY) $(MODULESDIR)\xwphook.sym $(XWPRELEASE_MAIN)\bin
  729.     $(COPY) $(MODULESDIR)\netscdde.exe $(XWPRELEASE_MAIN)\bin
  730.     $(COPY) $(MODULESDIR)\treesize.exe $(XWPRELEASE_MAIN)\bin
  731.     $(COPY) $(MODULESDIR)\xfix.exe     $(XWPRELEASE_MAIN)\bin
  732.     $(COPY) $(MODULESDIR)\xwpdaemn.exe $(XWPRELEASE_MAIN)\bin
  733.     $(COPY) $(MODULESDIR)\xfldr.sym $(XWPRELEASE_MAIN)\bin
  734.     $(COPY) $(MODULESDIR)\xwpdaemn.sym $(XWPRELEASE_MAIN)\bin
  735.     $(COPY) $(MODULESDIR)\xwphook.sym $(XWPRELEASE_MAIN)\bin
  736.     $(COPY) $(MODULESDIR)\repclass.exe $(XWPRELEASE_MAIN)\bin
  737.     $(COPY) $(MODULESDIR)\wpsreset.exe $(XWPRELEASE_MAIN)\bin
  738. #    b) NLS
  739.     $(COPY) $(MODULESDIR)\xfldr$(XWP_LANG_CODE).dll $(XWPRELEASE_NLS)\bin
  740. #    $(COPY) $(XWP_LANG_CODE)\misc\*.sgs $(XWPRELEASE_NLS)\bin
  741. #    b) mapfiles
  742.     $(COPY) $(MODULESDIR)\*.map $(XWPRELEASE_MAP)
  743. #
  744. # 3) bootlogo
  745. !ifndef XWPLITE
  746. !if [@md $(XWPRELEASE_MAIN)\bootlogo 2> NUL]
  747. !endif
  748.     $(COPY) release\bootlogo\* $(XWPRELEASE_MAIN)\bootlogo
  749. !endif
  750. #
  751. # 4) help
  752. !if [@md $(XWPRELEASE_NLS)\help 2> NUL]
  753. !endif
  754. #    $(COPY) $(XWP_LANG_CODE)\misc\xfldr$(XWP_LANG_CODE).tmf $(XWPRELEASE_NLS)\help
  755.     $(COPY) $(XWPRUNNING)\help\xfldr$(XWP_LANG_CODE).tmf $(XWPRELEASE_NLS)\help
  756. !ifndef XWPLITE
  757.     $(COPY) $(XWP_LANG_CODE)\misc\drvrs$(XWP_LANG_CODE).txt $(XWPRELEASE_NLS)\help
  758.     $(COPY) $(XWP_LANG_CODE)\misc\xfcls$(XWP_LANG_CODE).txt $(XWPRELEASE_NLS)\help
  759. !endif
  760.     $(COPY) $(MODULESDIR)\xfldr$(XWP_LANG_CODE).hlp $(XWPRELEASE_NLS)\help
  761. !ifndef XWPLITE
  762. # 5) themes
  763. #!if [@md $(XWPRELEASE_MAIN)\icons 2> NUL]
  764. #!endif
  765. #    $(COPY) release\icons\* $(XWPRELEASE_MAIN)\icons
  766. #!endif
  767. !if [@md $(XWPRELEASE_MAIN)\themes 2> NUL]
  768. !endif
  769. !if [@md $(XWPRELEASE_MAIN)\themes\warp3 2> NUL]
  770. !endif
  771. !if [@md $(XWPRELEASE_MAIN)\themes\warp4 2> NUL]
  772. !endif
  773.     $(COPY) release\themes\warp3\* $(XWPRELEASE_MAIN)\themes\warp3
  774.     $(COPY) release\themes\warp4\* $(XWPRELEASE_MAIN)\themes\warp4
  775. !endif
  776. # 6) install
  777. !if [@md $(XWPRELEASE_MAIN)\install 2> NUL]
  778. !endif
  779. !if [@md $(XWPRELEASE_NLS)\install 2> NUL]
  780. !endif
  781. #    $(COPY) release\install\xwpusers.acc $(XWPRELEASE_MAIN)\install
  782.     $(COPY) release\install\deinst.cmd $(XWPRELEASE_MAIN)\install
  783.     $(COPY) release\install\delobjs.cmd $(XWPRELEASE_MAIN)\install
  784. !ifdef XWPLITE
  785.     $(COPY) release\install\freshini_lite.cmd $(XWPRELEASE_MAIN)\install\freshini.cmd
  786. !else
  787.     $(COPY) release\install\freshini.cmd $(XWPRELEASE_MAIN)\install
  788.     $(COPY) release\install\od.cmd $(XWPRELEASE_MAIN)\install
  789.     $(COPY) release\install\soundoff.cmd $(XWPRELEASE_MAIN)\install
  790. #   $(COPY) release\install\test.cmd $(XWPRELEASE_MAIN)\install
  791. #    $(COPY) release\install\xfolder.ico $(XWPRELEASE_MAIN)\install
  792.     $(COPY) release\install\xwp.ico $(XWPRELEASE_MAIN)\install
  793.     $(COPY) release\install\xwp_o.ico $(XWPRELEASE_MAIN)\install
  794. !endif
  795. #    $(COPY) release\install\xwpusers.xml $(XWPRELEASE_MAIN)\install
  796. !ifndef XWPLITE
  797.     $(COPY) $(XWP_LANG_CODE)\misc\crobj001.cmd $(XWPRELEASE_NLS)\install\crobj001.cmd
  798. !else
  799.     $(COPY) $(XWP_LANG_CODE)\misc\crobj001_lite.cmd $(XWPRELEASE_NLS)\install\crobj001.cmd
  800. !endif
  801. !ifndef XWPLITE
  802.     $(COPY) $(XWP_LANG_CODE)\misc\instl001.cmd $(XWPRELEASE_NLS)\install\instl001.cmd
  803. !else
  804.     $(COPY) $(XWP_LANG_CODE)\misc\instl001_lite.cmd $(XWPRELEASE_NLS)\install\instl001.cmd
  805. !endif
  806. !ifndef XWPLITE
  807.     $(COPY) $(XWP_LANG_CODE)\misc\sound001.cmd $(XWPRELEASE_NLS)\install
  808.     $(COPY) $(XWP_LANG_CODE)\misc\*.msg $(XWPRELEASE_NLS)\install
  809. !endif
  810. # 7) wav
  811. !ifndef XWPLITE
  812. !if [@md $(XWPRELEASE_MAIN)\wav 2> NUL]
  813. !endif
  814.     $(COPY) release\wav\* $(XWPRELEASE_MAIN)\wav
  815. !endif
  816.     @echo $(MAKEDIR)\makefile [$@]: Done copying files.
  817. # 8) plugins
  818. !if [@md $(XWPRELEASE_MAIN)\plugins 2> NUL]
  819. !endif
  820. !if [@md $(XWPRELEASE_MAIN)\plugins\xcenter 2> NUL]
  821. !endif
  822. !ifndef XWPLITE
  823. !if [@md $(XWPRELEASE_MAIN)\plugins\drvdlgs 2> NUL]
  824. !endif
  825. !endif
  826. !ifndef XWPLITE
  827. !if [@md $(XWPRELEASE_HEALTH)\plugins 2> NUL]
  828. !endif
  829. !if [@md $(XWPRELEASE_HEALTH)\plugins\xcenter 2> NUL]
  830. !endif
  831. !endif
  832.     $(COPY) $(MODULESDIR)\diskfree.dll $(XWPRELEASE_MAIN)\plugins\xcenter
  833.     $(COPY) $(MODULESDIR)\diskfree.sym $(XWPRELEASE_MAIN)\plugins\xcenter
  834.     $(COPY) $(MODULESDIR)\ipmon.dll $(XWPRELEASE_MAIN)\plugins\xcenter
  835.     $(COPY) $(MODULESDIR)\ipmon.sym $(XWPRELEASE_MAIN)\plugins\xcenter
  836.     $(COPY) $(MODULESDIR)\monitors.dll $(XWPRELEASE_MAIN)\plugins\xcenter
  837.     $(COPY) $(MODULESDIR)\monitors.sym $(XWPRELEASE_MAIN)\plugins\xcenter
  838.     $(COPY) $(MODULESDIR)\winlist.dll $(XWPRELEASE_MAIN)\plugins\xcenter
  839.     $(COPY) $(MODULESDIR)\winlist.sym $(XWPRELEASE_MAIN)\plugins\xcenter
  840.     $(COPY) $(MODULESDIR)\sentinel.dll $(XWPRELEASE_MAIN)\plugins\xcenter
  841.     $(COPY) $(MODULESDIR)\sentinel.sym $(XWPRELEASE_MAIN)\plugins\xcenter
  842. !ifndef XWPLITE
  843.     $(COPY) $(MODULESDIR)\d_cdfs.dll $(XWPRELEASE_MAIN)\plugins\drvdlgs
  844.     $(COPY) $(MODULESDIR)\d_cdfs.sym $(XWPRELEASE_MAIN)\plugins\drvdlgs
  845.     $(COPY) $(MODULESDIR)\xwHealth.dll $(XWPRELEASE_HEALTH)\plugins\xcenter
  846.     $(COPY) $(MODULESDIR)\xwHealth.sym $(XWPRELEASE_HEALTH)\plugins\xcenter
  847. !endif
  848. # 9) toolkit
  849. !if [@md $(XWPRELEASE_MAIN)\toolkit 2> NUL]
  850. !endif
  851. !if [@md $(XWPRELEASE_MAIN)\toolkit\shared 2> NUL]
  852. !endif
  853. !ifndef XWPLITE
  854. !if [@md $(XWPRELEASE_MAIN)\toolkit\config 2> NUL]
  855. !endif
  856. !endif
  857.     $(COPY) src\widgets\miniwdgt.c $(XWPRELEASE_MAIN)\toolkit
  858.     $(COPY) include\shared\center.h $(XWPRELEASE_MAIN)\toolkit\shared
  859.     $(COPY) include\shared\helppanels.h $(XWPRELEASE_MAIN)\toolkit\shared\helpids.h
  860. !ifndef XWPLITE
  861.     $(COPY) include\config\drivdlgs.h $(XWPRELEASE_MAIN)\toolkit\config
  862. !endif
  863.     @echo $(MAKEDIR)\makefile [$@]: Done copying files.
  864. # now go shrink executables V0.9.13 (2001-06-17) [umoeller]
  865. !ifndef XWP_DEBUG
  866. !ifdef LXLITEPATH
  867.     $(LXLITEPATH)\lxlite \
  868. $(XWPRELEASE_MAIN)\bin\*.dll \
  869. $(XWPRELEASE_MAIN)\bin\*.exe \
  870. $(XWPRELEASE_NLS)\bin\*.dll
  871.     $(LXLITEPATH)\lxlite \
  872. $(XWPRELEASE_MAIN)\plugins\xcenter\*.dll \
  873. !ifndef XWPLITE
  874. $(XWPRELEASE_HEALTH)\plugins\xcenter\*.dll
  875. !endif
  876. !endif
  877. !endif
  878.  
  879. #
  880. # Special target "warpin": this is not called by "all",
  881. # but must be set on the NMAKE command line.
  882. # Will work only on my private system.
  883. #
  884.  
  885. warpin: release
  886.     @echo $(MAKEDIR)\makefile [$@]: Building WPI from $(XWPRELEASE).
  887.     $(RUN_DCD) $(XWPRELEASE)
  888.     cd ..
  889.     warpin_001.cmd
  890.     $(RUN_DCD) $(CURRENT_DIR)
  891.  
  892. #
  893. # Special target "transfer": this is not called by "all",
  894. # but must be set on the NMAKE command line.
  895. # Will work only on my private system.
  896. #
  897.  
  898. transfer: warpin
  899.     @echo $(MAKEDIR)\makefile [$@]: Transferring WPI from $(XWPRELEASE).
  900.     $(RUN_DCD) $(XWPRELEASE)
  901.     cd ..
  902.     sendfile laptop xwp-temp.wpi D:\install\xwp-transferred.wpi
  903.     $(RUN_DCD) $(CURRENT_DIR)
  904.  
  905. daily: release
  906.     @echo $(MAKEDIR)\makefile [$@]: Building WPI from $(XWPRELEASE).
  907.     K:
  908.     cd $(XWPRELEASE)
  909.     cd ..
  910.     cmd.exe /c create_xwp_exe_daily.cmd
  911.     cd $(CURRENT_DIR)
  912.  
  913.  
  914.