# # makefile: # makefile for src/dllstub directory. # For use with IBM NMAKE, which comes with the IBM compilers, # the Developer's Toolkit, and the DDK. # # Called from: main makefile # # Input: ./*.asm # # Output: ../bin/*.obj # # Edit "setup.in" to set up the make process. # # Say hello to yourself. !if [@echo +++++ Entering $(MAKEDIR)] !endif # include setup (compiler options etc.) !include ..\..\config.in !include ..\..\make\setup.in # FIXED MACROS # ------------ # # You probably need not change the following. # # 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: .asm .obj # OUTPUTDIR specifies the directory where all the output .OBJ # files will be created in. $(XWP_OUTPUT_ROOT) is set by # setup.in to point to \bin from the XWorkplace sources root, OUTPUTDIR = $(XWP_OUTPUT_ROOT) !if [@echo OUTPUTDIR is $(OUTPUTDIR)] !endif # The OBJS macro contains all the .OBJ files which need to be created # from the files in this directory. These will be put into BIN\. OBJS = $(OUTPUTDIR)\xiniterm.obj # The main target: # If we're called from the main makefile, MAINMAKERUNNING is defined, # and we'll set $(OBJS) as our targets (which will go on). Otherwise, # we call the main makefile, which will again call ourselves later. all: \ !ifndef MAINMAKERUNNING # we're not being called from main makefile: start main makefile callmainmake @echo ----- Leaving $(MAKEDIR) !else $(OBJS) @echo ----- Leaving $(MAKEDIR) !endif callmainmake: @echo $(MAKEDIR)\makefile [$@]: Recursing to main makefile. @cd ..\.. @$(MAKE) @echo $(MAKEDIR)\makefile [$@]: Returned from main makefile. Done. # The "dep" target: # there are no dependencies in this directory, so exit immediately dep: @echo ----- Leaving $(MAKEDIR) # xiniterm - rules to build xiniterm.obj: # - to be committed to the repo so builders don't need to have ALP installed # - to be copied to the output directory for use as the basis for xwpres.dll # - to be copied to the NLS directories for use as the basis for xfldr0xx.dll $(OBJS): $(MAKEDIR)\$(@B).obj $(COPY) $(MAKEDIR)\$(@B).obj $(OUTPUTDIR) .asm.obj: @echo $(MAKEDIR)\makefile [$@]: Assembling $(@B).asm $(AS) $(MAKEDIR)\$(@B).asm NLS_INITERM = \ $(PROJECT_BASE_DIR)\001\dll\xiniterm.obj \ $(PROJECT_BASE_DIR)\031\dll\xiniterm.obj \ $(PROJECT_BASE_DIR)\039\dll\xiniterm.obj \ $(PROJECT_BASE_DIR)\049\dll\xiniterm.obj \ $(PROJECT_BASE_DIR)\081\dll\xiniterm.obj $(NLS_INITERM): $(MAKEDIR)\xiniterm.obj $(COPY) $? $@ # Special target "nls_xinit": this is not called by "all" but # must the set on the NMAKE command line. It puts copies of # xiniterm.obj in each of the NLS\dll directories. Since the # .obj is already part of the repo, this should never be needed. # nls_xinit: $(NLS_INITERM)