# # makefile: # This is XWorkplace's main makefile. # For use with IBM NMAKE, which comes with the IBM compilers, # the Developer's Toolkit, and the DDK. # # All the makefiles have been restructured with V0.9.0. # # Called from: nowhere, this is the main makefile. # This recurses into the subdirectories. # # Input: specify the target(s) to be made, which can be: # # -- "dep": create dependencies for all makefiles. # Run this first before the regular "all" # target. # # -- "all" (default): build XFLDR.DLL, XWPHOOK.DLL, # XWPDAEMN.EXE, plus the default plugin DLLs. # # -- "really_all": "all" plus external EXEs # (Treesize, Netscape DDE, et al) plus NLS # specified by the XWP_LANG_CODE variable, # which defaults to "001" (setup.in). # # The following subtargets exist (which get called # by the "all" or "really_all" targets): # # -- nls: compile $(XWP_LANG_CODE)\ directory # -- tools: compile TOOLS\ directory # -- idl: update SOM headers (include\classes\*) # -- cpl_main: compile *.c files for DLLs, no link # -- link: link bin\*.obj to DLLs and copy to XWorkplace # install directory # # Use "nmake -a [] to _re_build the targets, # even if they are up to date. # # Other special targets not used by "all" or "really_all" # (these must be specified explicitly on the nmake # command line): # # -- dlgedit: invoke dialog editor on NLS DLL # -- release: create/update release tree in directory # specified by XWPRELEASE; this invokes "really_all" # in turn. # # Environment: You MUST set a number of environment variables before # compiling. See PROGREF.INF. # # Output: All XWorkplace Files code files. This calls the other # makefiles in the subdirectories. # # Output files are first created in bin\ (which is # created if it doesn't exist), then copied to # $(XWPRUNNING), which must be defined externally or # thru "setup.in". # # Edit "setup.in" to set up the make process (compilation flags etc.). # # Say hello to yourself. !if [@echo +++++ Entering $(MAKEDIR)] !endif # include setup (compiler options etc.) !include config.in !include make\setup.in # VARIABLES # --------- # objects.in defines the .OBJ files to be compiled. !include make\objects.in OUTPUTDIR = $(XWP_OUTPUT_ROOT) # The OBJS macro contains all the .OBJ files which have been # created from the files in MAIN\. The definitions below are # from the objects.in include file. OBJS = \ $(XFLDR_OBJS_CLASSES) \ $(XFLDR_OBJS_SHARED) \ $(XFLDR_OBJS_CONFIG) \ $(XFLDR_OBJS_FILESYS) \ $(XFLDR_OBJS_MEDIA) \ $(XFLDR_OBJS_STARTSHUT) \ $(XFLDR_OBJS_XCENTER) # The HLPOBJS macro contains all the .OBJ files which have been # created from the files in HELPERS\. You probably won't have to change this. HLPOBJS = $(XWP_OUTPUT_ROOT)\helpers.lib # The following macros contains the .OBJ files for the XCenter plugins. DISKFREEOBJS = $(XWP_OUTPUT_ROOT)\widgets\w_diskfree.obj $(PMPRINTF_LIB) WINLISTOBJS = $(XWP_OUTPUT_ROOT)\widgets\w_winlist.obj $(PMPRINTF_LIB) IPMONOBJS = $(XWP_OUTPUT_ROOT)\widgets\w_ipmon.obj $(PMPRINTF_LIB) libs\tcp32dll.lib libs\so32dll.lib MONITOROBJS = $(XWP_OUTPUT_ROOT)\widgets\w_monitors.obj $(PMPRINTF_LIB) SENTINELOBJS = $(XWP_OUTPUT_ROOT)\widgets\w_sentinel.obj $(PMPRINTF_LIB) libs\win32k.lib HEALTHOBJS = $(XWP_OUTPUT_ROOT)\widgets\xwHealth.obj $(PMPRINTF_LIB) SAMPLEOBJS = $(XWP_OUTPUT_ROOT)\widgets\____sample.obj $(PMPRINTF_LIB) D_CDFSOBJS = $(XWP_OUTPUT_ROOT)\widgets\d_cdfs.obj $(PMPRINTF_LIB) # objects for XDEBUG.DLL (debugging only) DEBUG_OBJS = $(XWP_OUTPUT_ROOT)\xdebug.obj $(XWP_OUTPUT_ROOT)\xdebug_folder.obj # Define the suffixes for files which NMAKE will work on. # .SUFFIXES is a reserved NMAKE keyword ("pseudotarget") for # defining file extensions that NMAKE will recognize. .SUFFIXES: .obj .dll .exe .h .rc .res # The LIBS macro contains all the .LIB files, either from the compiler or # others, which are needed for this project: # somtk is the SOM toolkit lib # pmprintf is for debugging # The other OS/2 libraries are used by default. LIBS = $(SOMTK_LIB) $(PMPRINTF_LIB) # some variable strings to pass to sub-nmakes SUBMAKE_PASS_STRING = "PROJECT_BASE_DIR=$(PROJECT_BASE_DIR)" "PROJECT_INCLUDE=$(PROJECT_INCLUDE)" # store current directory so we can change back later CURRENT_DIR = $(MAKEDIR) # setup running directories !if [@md $(XWPRUNNING) 2> NUL] !endif !if [@md $(XWPRUNNING)\bin 2> NUL] !endif !if [@md $(XWPRUNNING)\plugins 2> NUL] !endif !if [@md $(XWPRUNNING)\plugins\xcenter 2> NUL] !endif !if [@md $(XWPRUNNING)\plugins\drvdlgs 2> NUL] !endif !if [@md $(XWPRUNNING)\help 2> NUL] !endif !if [@md $(XWPRUNNING)\install 2> NUL] !endif # REGULAR MAIN TARGETS # -------------------- # "all": default, does a regular compile, but leaves # out the not-so-important stuff such as netscdee and treesize. # Basically, this is for updating XFLDR.DLL and the hook/daemon # for speed. all: compile_all link @echo ----- Leaving $(MAKEDIR) @echo Yo, done! # "really_all" references "all" and compiles really everything. # This must be used for the release version. really_all: compile_really_all tools link nls @echo ----- Leaving $(MAKEDIR) @echo Yo, done! # "full": shortcut to really_all V1.0.0 (2002-09-13) [umoeller] full: really_all # "dep": create dependencies. dep: @echo $(MAKEDIR)\makefile [$@]: Going for subdir src (dep) @cd src $(MAKE) -nologo dep "SUBTARGET=dep" "RUNDEPONLY=1" "REALLYALL=1" @cd $(CURRENT_DIR) @echo $(MAKEDIR)\makefile [$@]: Going for src\helpers (DLL version) @cd $(HELPERS_BASE)\src\helpers @nmake -nologo dep "NOINCLUDEDEPEND=1" $(SUBMAKE_PASS_STRING) @cd $(CURRENT_DIR) @echo ----- Leaving $(MAKEDIR) @echo Yo, done! # "running": update running directories running: $(COPY) BUGS $(XWPRUNNING) $(COPY) cvs.txt $(XWPRUNNING) $(COPY) FEATURES $(XWPRUNNING) !ifndef XWPLITE $(COPY) $(XWP_LANG_CODE)\readme $(XWPRUNNING) $(COPY) release\* $(XWPRUNNING) $(COPY) release\bin\* $(XWPRUNNING)\bin !endif !if [@md $(XWPRUNNING)\bootlogo 2> NUL] !endif $(COPY) release\bootlogo\* $(XWPRUNNING)\bootlogo !if [@md $(XWPRUNNING)\icons 2> NUL] !endif $(COPY) release\icons\* $(XWPRUNNING)\icons $(COPY) release\install\* $(XWPRUNNING)\install !if [@md $(XWPRUNNING)\themes 2> NUL] !endif !if [@md $(XWPRUNNING)\themes\warp3 2> NUL] !endif $(COPY) release\themes\warp3\* $(XWPRUNNING)\themes\warp3 !if [@md $(XWPRUNNING)\themes\warp4 2> NUL] !endif $(COPY) release\themes\warp4\* $(XWPRUNNING)\themes\warp4 !if [@md $(XWPRUNNING)\toolkit 2> NUL] !endif $(COPY) src\widgets\miniwdgt.c $(XWPRUNNING)\toolkit !if [@md $(XWPRUNNING)\toolkit\shared 2> NUL] !endif $(COPY) include\shared\center.h $(XWPRUNNING)\toolkit\shared $(COPY) include\shared\helppanels.h $(XWPRUNNING)\toolkit\shared\helpids.h !ifndef XWPLITE !if [@md $(XWPRUNNING)\toolkit\config 2> NUL] !endif $(COPY) include\config\drivdlgs.h $(XWPRUNNING)\toolkit\config !endif !if [@md $(XWPRUNNING)\wav 2> NUL] !endif $(COPY) release\wav\* $(XWPRUNNING)\wav # "COMPILE" PSEUDOTARGETS # ----------------------- # The following are invoked via "all" or "really_all" # to call src\makefile with SUBTARGET=all, which will # in turn invoke nmake all to the src\ subdirectories. # idl always gets invoked first to check whether # src\classes\*.c needs to be refreshed from idl\*.idl. idl: @echo $(MAKEDIR)\makefile [$@]: Going for subdir idl @cd idl @nmake -nologo all "MAINMAKERUNNING=YES" @cd .. helpers: # helpers: # this branches over to the xwphelpers source tree, # which is prepared for this. The helpers.lib file # is created in $(XWP_OUTPUT_ROOT) then. @echo $(MAKEDIR)\makefile [$@]: Going for src\helpers (DLL version) @cd $(HELPERS_BASE)\src\helpers @nmake -nologo all "MAINMAKERUNNING=YES" $(SUBMAKE_PASS_STRING) \ "HELPERS_OUTPUT_DIR=$(XWP_OUTPUT_ROOT)" "CC_HELPERS=$(CC_HELPERS_DLL)" # according to VAC++ user guide, we need to use /ge+ for libs # even if the lib will be linked to a DLL @cd $(CURRENT_DIR) helpers_exe_mt: # helpers_exe_mt: # same as the above, but this builds a multithread lib for EXEs # in $(XWP_OUTPUT_ROOT)\exe_mt\ instead. @echo $(MAKEDIR)\makefile [$@]: Going for src\helpers (EXE MT version) @cd $(HELPERS_BASE)\src\helpers @nmake -nologo all "MAINMAKERUNNING=YES" $(SUBMAKE_PASS_STRING) \ "HELPERS_OUTPUT_DIR=$(XWP_OUTPUT_ROOT)\exe_mt" "CC_HELPERS=$(CC_HELPERS_EXE_MT)" @cd $(CURRENT_DIR) # compile_all: compile main (without treesize etc.) compile_all: idl helpers helpers_exe_mt @echo $(MAKEDIR)\makefile [$@]: Going for subdir src @cd src $(MAKE) -nologo "SUBTARGET=all" @cd $(CURRENT_DIR) # compile_really_all: compile really_all compile_really_all: idl helpers helpers_exe_mt @echo $(MAKEDIR)\makefile [$@]: Going for subdir src (REALLY_ALL) @cd src $(MAKE) -nologo "SUBTARGET=all" "REALLYALL=1" @cd $(CURRENT_DIR) tools: @echo $(MAKEDIR)\makefile [$@]: Going for subdir tools @cd tools $(MAKE) -nologo "SUBTARGET=all" "MAINMAKERUNNING=YES" @cd .. xwpsecurity: @echo $(MAKEDIR)\makefile [$@]: Going for subdir src\xwpsec_ring0 @cd src\xwpsec_ring0 @nmake -nologo all "MAINMAKERUNNING=YES" $(SUBMAKE_PASS_STRING) @cd ..\.. @echo $(MAKEDIR)\makefile [$@]: Going for subdir src\XWPShell @cd src\XWPShell @nmake -nologo all "MAINMAKERUNNING=YES" $(SUBMAKE_PASS_STRING) @cd ..\.. $(XWP_LANG_CODE): @echo $(MAKEDIR)\makefile [$@]: Going for subdir $(XWP_LANG_CODE) @cd $(XWP_LANG_CODE) @nmake -nologo all "MAINMAKERUNNING=YES" $(SUBMAKE_PASS_STRING) @cd .. 049: @echo $(MAKEDIR)\makefile [$@]: Going for subdir 049 @cd 049 @nmake -nologo all "MAINMAKERUNNING=YES" $(SUBMAKE_PASS_STRING) @cd .. !ifdef BUILD_049_TOO nls: $(XWP_LANG_CODE) 049 !else nls: $(XWP_LANG_CODE) !endif # LINKER PSEUDOTARGETS # -------------------- link: $(XWPRUNNING)\bin\xfldr.dll \ $(XWPRUNNING)\bin\xwpres.dll \ $(XWPRUNNING)\plugins\xcenter\diskfree.dll \ $(XWPRUNNING)\plugins\xcenter\monitors.dll \ $(XWPRUNNING)\plugins\xcenter\winlist.dll \ $(XWPRUNNING)\plugins\xcenter\sentinel.dll \ $(XWPRUNNING)\plugins\xcenter\ipmon.dll \ # $(XWPRUNNING)\plugins\xcenter\xwHealth.dll \ disabled V1.0.1 (2003-02-02) [umoeller] $(XWPRUNNING)\plugins\xcenter\sample.dll \ $(XWPRUNNING)\plugins\drvdlgs\d_cdfs.dll \ # $(XWPRUNNING)\bin\xwphook.dll \ # $(XWPRUNNING)\bin\xwpdaemn.exe # $(XWPRUNNING)\bin\xwpfonts.fon # $(XWPRUNNING)\bin\xdebug.dll # # generic inference rules for copying and stuff # {$(MODULESDIR)}.dll{$(XWPRUNNING)\plugins\xcenter}.dll: !ifdef XWP_UNLOCK_MODULES $(RUN_UNLOCK) $@ !endif cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\plugins\xcenter cmd.exe /c copy $(MODULESDIR)\$(@B).sym $(XWPRUNNING)\plugins\xcenter {$(MODULESDIR)}.dll{$(XWPRUNNING)\plugins\drvdlgs}.dll: !ifdef XWP_UNLOCK_MODULES $(RUN_UNLOCK) $@ !endif cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\plugins\drvdlgs cmd.exe /c copy $(MODULESDIR)\$(@B).sym $(XWPRUNNING)\plugins\drvdlgs # Finally, define rules for linking the target DLLs and EXEs # This uses the $OBJS and $HLPOBJS macros defined at the top. # # The actual targets are the DLLs and EXEs in the XWorkplace # installation directory. We create the target in bin\ first # and then copy it thereto. # # Linking XFLDR.DLL # $(XWPRUNNING)\bin\xfldr.dll: $(MODULESDIR)\$(@B).dll !ifdef XWP_UNLOCK_MODULES $(RUN_UNLOCK) $@ !endif cmd.exe /c copy $(MODULESDIR)\$(@B).dll $(XWPRUNNING)\bin cmd.exe /c copy $(MODULESDIR)\$(@B).sym $(XWPRUNNING)\bin !ifdef DYNAMIC_TRACE @echo $(MAKEDIR)\makefile [$@]: Creating TRACE files for $(@B).dll maptsf $(@B).map /MAJOR=255 /LOGSTACK=32 /LOGRETURN > $(@B).tsf trcust $(@B).tsf /I /L=bin\$(@B).dll /node /M=$(@B).map @echo $(MAKEDIR)\makefile [$@]: Done creating TRACE files for $(@B).dll cmd.exe /c copy $(@B).tdf $(XWPRUNNING)\bin cmd.exe /c del $(@B).tdf cmd.exe /c copy TRC00FF.TFF $(DYNAMIC_TRACE):\OS2\SYSTEM\TRACE cmd.exe /c del TRC00FF.TFF !endif MODDEFFILE = \ !ifdef XWPLITE src\shared\xwp_lite.def !else src\shared\xwp.def !endif # update DEF file if buildlevel has changed src\shared\xwp.def: include\bldlevel.h makefile $(RUN_BLDLEVEL) $@ include\bldlevel.h "$(XWPNAME) main module" $(MODULESDIR)\xfldr.dll: $(OBJS) $(HLPOBJS) $(MODDEFFILE) make\objects.in @echo $(MAKEDIR)\makefile [$@]: Linking $@ $(LINK) @<<$(TEMP)\XFLDR.LNK /OUT:$@ $(MODDEFFILE) $(OBJS) $(HLPOBJS) $(LIBS) < NUL] !endif !ifndef XWPLITE !endif !if [@md $(XWPRELEASE_MAIN) 2> NUL] !endif !if [@md $(XWPRELEASE_NLS) 2> NUL] !endif !ifdef BUILD_049_TOO !if [@md $(XWPRELEASE_049) 2> NUL] !endif !endif !if [@md $(XWPRELEASE_NLSDOC) 2> NUL] !endif !ifdef BUILD_049_TOO !if [@md $(XWPRELEASE_049DOC) 2> NUL] !endif !endif !if [@md $(XWPRELEASE_MAP) 2> NUL] !endif @echo $(MAKEDIR)\makefile [$@]: Now copying files to $(XWPRELEASE). !ifndef XWPLITE $(COPY) release\COPYING $(XWPRELEASE_MAIN) $(COPY) release\install.cmd $(XWPRELEASE_MAIN) $(COPY) release\file_id.diz $(XWPRELEASE_MAIN) $(COPY) release\install.ico $(XWPRELEASE_MAIN) $(COPY) $(XWP_LANG_CODE)\readme $(XWPRELEASE_NLSDOC) $(COPY) $(MODULESDIR)\xfldr$(XWP_LANG_CODE).inf $(XWPRELEASE_NLSDOC) !ifdef BUILD_049_TOO $(COPY) $(MODULESDIR)\xfldr049.inf $(XWPRELEASE_049DOC) !endif $(COPY) BUGS $(XWPRELEASE_NLSDOC) $(COPY) FEATURES $(XWPRELEASE_NLSDOC) $(COPY) cvs.txt $(XWPRELEASE_MAIN) !endif # # 2) bin # a) kernel !if [@md $(XWPRELEASE_MAIN)\bin 2> NUL] !endif !if [@md $(XWPRELEASE_NLS)\bin 2> NUL] !endif !ifdef BUILD_049_TOO !if [@md $(XWPRELEASE_049)\bin 2> NUL] !endif !endif !ifndef XWPLITE $(COPY) release\bin\alwssort.cmd $(XWPRELEASE_MAIN)\bin $(COPY) release\bin\bm-lvm.cmd $(XWPRELEASE_MAIN)\bin $(COPY) release\bin\bootmgr.cmd $(XWPRELEASE_MAIN)\bin $(COPY) release\bin\defdetls.cmd $(XWPRELEASE_MAIN)\bin $(COPY) release\bin\deficon.cmd $(XWPRELEASE_MAIN)\bin $(COPY) release\bin\deftree.cmd $(XWPRELEASE_MAIN)\bin $(COPY) release\bin\iconorm.cmd $(XWPRELEASE_MAIN)\bin $(COPY) release\bin\icosmall.cmd $(XWPRELEASE_MAIN)\bin $(COPY) release\bin\newobj.cmd $(XWPRELEASE_MAIN)\bin !endif $(COPY) release\bin\packtree.cmd $(XWPRELEASE_MAIN)\bin !ifndef XWPLITE $(COPY) release\bin\showall.cmd $(XWPRELEASE_MAIN)\bin $(COPY) release\bin\xhelp.cmd $(XWPRELEASE_MAIN)\bin $(COPY) release\bin\xshutdwn.cmd $(XWPRELEASE_MAIN)\bin #fixed wrong target path for xshutdwn.ico V1.0.0 (2002-08-18) [umoeller] $(COPY) release\bin\xshutdwn.ico $(XWPRELEASE_MAIN)\bin !endif # $(COPY) release\bin\icons.dll !ifndef XWPLITE # $(COPY) release\bin\files.txt !endif $(COPY) $(MODULESDIR)\xfldr.dll $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\xfldr.sym $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\xwpres.dll $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\xwphook.dll $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\xwphook.sym $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\netscdde.exe $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\treesize.exe $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\xfix.exe $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\xwpdaemn.exe $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\xfldr.sym $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\xwpdaemn.sym $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\xwphook.sym $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\repclass.exe $(XWPRELEASE_MAIN)\bin $(COPY) $(MODULESDIR)\wpsreset.exe $(XWPRELEASE_MAIN)\bin # b) NLS $(COPY) $(MODULESDIR)\xfldr$(XWP_LANG_CODE).dll $(XWPRELEASE_NLS)\bin !ifdef BUILD_049_TOO $(COPY) $(MODULESDIR)\xfldr049.dll $(XWPRELEASE_049)\bin !endif # b) mapfiles $(COPY) $(MODULESDIR)\*.map $(XWPRELEASE_MAP) # # 3) bootlogo !ifndef XWPLITE !if [@md $(XWPRELEASE_MAIN)\bootlogo 2> NUL] !endif $(COPY) release\bootlogo\* $(XWPRELEASE_MAIN)\bootlogo !endif # # 4) help !if [@md $(XWPRELEASE_NLS)\help 2> NUL] !endif !ifdef BUILD_049_TOO !if [@md $(XWPRELEASE_049)\help 2> NUL] !endif !endif $(COPY) $(XWPRUNNING)\help\xfldr$(XWP_LANG_CODE).tmf $(XWPRELEASE_NLS)\help !ifdef BUILD_049_TOO $(COPY) $(XWPRUNNING)\help\xfldr049.tmf $(XWPRELEASE_049)\help !endif !ifndef XWPLITE $(COPY) $(XWP_LANG_CODE)\misc\drvrs$(XWP_LANG_CODE).txt $(XWPRELEASE_NLS)\help $(COPY) $(XWP_LANG_CODE)\misc\xfcls$(XWP_LANG_CODE).txt $(XWPRELEASE_NLS)\help !ifdef BUILD_049_TOO $(COPY) 049\misc\drvrs049.txt $(XWPRELEASE_049)\help $(COPY) 049\misc\xfcls049.txt $(XWPRELEASE_049)\help !endif !endif $(COPY) $(MODULESDIR)\xfldr$(XWP_LANG_CODE).hlp $(XWPRELEASE_NLS)\help !ifdef BUILD_049_TOO $(COPY) $(MODULESDIR)\xfldr049.hlp $(XWPRELEASE_049)\help !endif !ifndef XWPLITE # 5) themes #!if [@md $(XWPRELEASE_MAIN)\icons 2> NUL] #!endif # $(COPY) release\icons\* $(XWPRELEASE_MAIN)\icons #!endif !if [@md $(XWPRELEASE_MAIN)\themes 2> NUL] !endif !if [@md $(XWPRELEASE_MAIN)\themes\warp3 2> NUL] !endif !if [@md $(XWPRELEASE_MAIN)\themes\warp4 2> NUL] !endif $(COPY) release\themes\warp3\* $(XWPRELEASE_MAIN)\themes\warp3 $(COPY) release\themes\warp4\* $(XWPRELEASE_MAIN)\themes\warp4 !endif # 6) install !if [@md $(XWPRELEASE_MAIN)\install 2> NUL] !endif !if [@md $(XWPRELEASE_NLS)\install 2> NUL] !endif !ifdef BUILD_049_TOO !if [@md $(XWPRELEASE_049)\install 2> NUL] !endif !endif # $(COPY) release\install\xwpusers.acc $(XWPRELEASE_MAIN)\install $(COPY) release\install\deinst.cmd $(XWPRELEASE_MAIN)\install $(COPY) release\install\delobjs.cmd $(XWPRELEASE_MAIN)\install !ifdef XWPLITE $(COPY) release\install\freshini_lite.cmd $(XWPRELEASE_MAIN)\install\freshini.cmd !else $(COPY) release\install\freshini.cmd $(XWPRELEASE_MAIN)\install $(COPY) release\install\od.cmd $(XWPRELEASE_MAIN)\install $(COPY) release\install\soundoff.cmd $(XWPRELEASE_MAIN)\install # $(COPY) release\install\test.cmd $(XWPRELEASE_MAIN)\install # $(COPY) release\install\xfolder.ico $(XWPRELEASE_MAIN)\install $(COPY) release\install\xwp.ico $(XWPRELEASE_MAIN)\install $(COPY) release\install\xwp_o.ico $(XWPRELEASE_MAIN)\install !endif # $(COPY) release\install\xwpusers.xml $(XWPRELEASE_MAIN)\install !ifndef XWPLITE $(COPY) $(XWP_LANG_CODE)\misc\crobj001.cmd $(XWPRELEASE_NLS)\install\crobj001.cmd !else $(COPY) $(XWP_LANG_CODE)\misc\crobj001_lite.cmd $(XWPRELEASE_NLS)\install\crobj001.cmd !endif !ifdef BUILD_049_TOO !ifndef XWPLITE $(COPY) 049\misc\crobj049.cmd $(XWPRELEASE_049)\install\crobj049.cmd !else $(COPY) 049\misc\crobj049_lite.cmd $(XWPRELEASE_049)\install\crobj049.cmd !endif !endif !ifndef XWPLITE $(COPY) $(XWP_LANG_CODE)\misc\instl001.cmd $(XWPRELEASE_NLS)\install\instl001.cmd !else $(COPY) $(XWP_LANG_CODE)\misc\instl001_lite.cmd $(XWPRELEASE_NLS)\install\instl001.cmd !endif !ifdef BUILD_049_TOO !ifndef XWPLITE $(COPY) 049\misc\instl049.cmd $(XWPRELEASE_049)\install\instl049.cmd !else $(COPY) 049\misc\instl049_lite.cmd $(XWPRELEASE_049)\install\instl049.cmd !endif !endif !ifndef XWPLITE $(COPY) $(XWP_LANG_CODE)\misc\sound001.cmd $(XWPRELEASE_NLS)\install !ifdef BUILD_049_TOO $(COPY) 049\misc\sound049.cmd $(XWPRELEASE_049)\install !endif !endif # 7) wav !ifndef XWPLITE !if [@md $(XWPRELEASE_MAIN)\wav 2> NUL] !endif $(COPY) release\wav\* $(XWPRELEASE_MAIN)\wav !endif @echo $(MAKEDIR)\makefile [$@]: Done copying files. # 8) plugins !if [@md $(XWPRELEASE_MAIN)\plugins 2> NUL] !endif !if [@md $(XWPRELEASE_MAIN)\plugins\xcenter 2> NUL] !endif !ifndef XWPLITE !if [@md $(XWPRELEASE_MAIN)\plugins\drvdlgs 2> NUL] !endif !endif !ifndef XWPLITE !endif $(COPY) $(MODULESDIR)\diskfree.dll $(XWPRELEASE_MAIN)\plugins\xcenter $(COPY) $(MODULESDIR)\diskfree.sym $(XWPRELEASE_MAIN)\plugins\xcenter $(COPY) $(MODULESDIR)\monitors.dll $(XWPRELEASE_MAIN)\plugins\xcenter $(COPY) $(MODULESDIR)\monitors.sym $(XWPRELEASE_MAIN)\plugins\xcenter $(COPY) $(MODULESDIR)\winlist.dll $(XWPRELEASE_MAIN)\plugins\xcenter $(COPY) $(MODULESDIR)\winlist.sym $(XWPRELEASE_MAIN)\plugins\xcenter $(COPY) $(MODULESDIR)\sentinel.dll $(XWPRELEASE_MAIN)\plugins\xcenter $(COPY) $(MODULESDIR)\sentinel.sym $(XWPRELEASE_MAIN)\plugins\xcenter $(COPY) $(MODULESDIR)\ipmon.dll $(XWPRELEASE_MAIN)\plugins\xcenter $(COPY) $(MODULESDIR)\ipmon.sym $(XWPRELEASE_MAIN)\plugins\xcenter !ifndef XWPLITE $(COPY) $(MODULESDIR)\d_cdfs.dll $(XWPRELEASE_MAIN)\plugins\drvdlgs $(COPY) $(MODULESDIR)\d_cdfs.sym $(XWPRELEASE_MAIN)\plugins\drvdlgs !endif # 9) toolkit !if [@md $(XWPRELEASE_MAIN)\toolkit 2> NUL] !endif !if [@md $(XWPRELEASE_MAIN)\toolkit\shared 2> NUL] !endif !ifndef XWPLITE !if [@md $(XWPRELEASE_MAIN)\toolkit\config 2> NUL] !endif !endif $(COPY) src\widgets\miniwdgt.c $(XWPRELEASE_MAIN)\toolkit $(COPY) include\shared\center.h $(XWPRELEASE_MAIN)\toolkit\shared $(COPY) include\shared\helppanels.h $(XWPRELEASE_MAIN)\toolkit\shared\helpids.h !ifndef XWPLITE $(COPY) include\config\drivdlgs.h $(XWPRELEASE_MAIN)\toolkit\config !endif @echo $(MAKEDIR)\makefile [$@]: Done copying files. # now go shrink executables V0.9.13 (2001-06-17) [umoeller] !ifndef XWP_DEBUG !ifdef LXLITEPATH $(LXLITEPATH)\lxlite \ $(XWPRELEASE_MAIN)\bin\*.dll \ $(XWPRELEASE_MAIN)\bin\*.exe \ !ifdef BUILD_049_TOO $(XWPRELEASE_049)\bin\*.dll \ !endif $(XWPRELEASE_NLS)\bin\*.dll $(LXLITEPATH)\lxlite \ $(XWPRELEASE_MAIN)\plugins\xcenter\*.dll !endif !endif # # Special target "warpin": this is not called by "all", # but must be set on the NMAKE command line. # warpin: release @echo $(MAKEDIR)\makefile [$@]: Building WPI from $(XWPRELEASE). makewpi.cmd $(XWPRELEASE)