#
# makefile:
#       makefile for 001 directory.
#       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 V1.0.0.
#
#       Called from:    main makefile
#
#       Input:          none
#
#       Output:         none; this recurses into the subdirectories of
#                       "001".
#
#       Edit "setup.in" to set up the make process.
#

# Say hello to yourself.
!if [@echo +++++ Entering $(MAKEDIR)]
!endif

# include setup (compiler options etc.)
!include ..\setup.in

# 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
    callmainmake
!else
!ifdef BUILD_DOCS
    help progguide userguide frontend.res wicpm_user
!else
    frontend.res
!endif
!endif
    @echo ----- Leaving $(MAKEDIR)

callmainmake:
    @echo $(MAKEDIR)\makefile: Recursing to main makefile.
    @cd ..
    @nmake
    @echo $(MAKEDIR)\makefile: Returned from main makefile. Done.

help:
    @echo $(MAKEDIR)\makefile: Calling $(WPI_NLS_CODE)\help
    @cd help
    @nmake -nologo all "MAINMAKERUNNING=YES"
    @cd ..

progguide:
    @echo $(MAKEDIR)\makefile: Calling $(WPI_NLS_CODE)\$(WPI_PROG_DIR)
    @cd $(WPI_PROG_DIR)
    @nmake -nologo all "MAINMAKERUNNING=YES"
    @cd ..

userguide:
    @echo $(MAKEDIR)\makefile: Calling $(WPI_NLS_CODE)\wpi_user
    @cd wpi_user
    @nmake -nologo all "MAINMAKERUNNING=YES"
    @cd ..

wicpm_user:
    @echo $(MAKEDIR)\makefile: Calling $(WPI_NLS_CODE)\wpi_user
    @cd wicpm_user
    @nmake -nologo all "MAINMAKERUNNING=YES"
    @cd ..

frontend.res:
    @echo $(MAKEDIR)\makefile: Calling $(WPI_NLS_CODE)\frontend.res
    @cd frontend.res
    @nmake -nologo all "MAINMAKERUNNING=YES"
    @cd ..


