Rev 15 | Rev 25 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
# $Id$
# BUILD OPTIONS
#
# These flags control which components of the release should be installed.
#
# If BUILD_UPDATE is true then the public executables and their configuration
# files will be installed (this has to be done on every target platform).
#
# If BUILD_MACHINE is true then all the other target dependent components
# will be installed (this also has to be done on every target platform).
#
# If BUILD_COMMON is true then the target independent components will be
# installed (this only has to be done once, indeed if the release is being
# built simultaneously on several platforms then the builds can conflict
# with each other, so start the quickest machine off first to install
# the complete release, and get the other machines to only install the
# target dependent sections).
#
# BUILD_OK is set to false if an error occurs.
BUILD_UPDATE= true
BUILD_MACHINE= true
BUILD_COMMON= true
BUILD_OK= true
# RANDOM BITS 'N PIECES
SUBDIR= src
#.include "Makefile.defs"
sedfile:
@${ECHO} "# Create ${.TARGET}"
@${ECHO} "1,\$$s%-MACH-%${OSFAM}/${BLDARCH}%g" \
> ${.TARGET}
@${ECHO} "1,\$$s%-BLDARCH-%${BLDARCH}%g" \
>> ${.TARGET}
@${ECHO} "1,\$$s%-OSFAM-%${OSFAM}%g" \
>> ${.TARGET}
@${ECHO} "1,\$$s%-MACHDIR-%$(MACH_BASE)%g" \
>> ${.TARGET}
@${ECHO} "1,\$$s%-BINDIR-%$(MACH_BASE)/bin%g" \
>> ${.TARGET}
@${ECHO} "1,\$$s%-ENVDIR-%$(MACH_BASE)/env%g" \
>> ${.TARGET}
@${ECHO} "1,\$$s%-LIBDIR-%$(MACH_BASE)/lib%g" \
>> ${.TARGET}
@${ECHO} "1,\$$s%-INCLDIR-%${COMMON_DIR}/include%g" \
>> ${.TARGET}
@${ECHO} "1,\$$s%-STARTUPDIR-%${COMMON_DIR}/startup%g" \
>> ${.TARGET}
@${ECHO} "1,\$$s%-TMPDIR-%${TMP_DIR}%g" \
>> ${.TARGET}
#.if !exists(Makefile.defs)
#.BEGIN:
# @${ECHO} "Please run 'makedefs' prior to running (b)make"
# @${ECHO}
# @${EXIT} 1;
#.else
#all:
#. if defined(BOOTSTRAP)
# @${ECHO} "==> Starting TenDRA build..."
# @${ECHO} "==> Creating object directory and symbolic links"
# @${ECHO} "==> Object directory created, bootstrapping build"
# @cd ${BASE_DIR} && ${MAKE} _objdirs_done=yes obj;
#. else
#. if !exists(${.CURDIR}/obj/_obj_tree_complete)
#. if "${_objdirs_done}" != "yes"
# @${ECHO} "==> Starting TenDRA build..."
# @${ECHO} "==> Creating object directory and symbolic links"
# @cd ${BASE_DIR} && ${MAKE} _objdirs_done=yes obj;
# @${ECHO} "Do not remove this file." > ${OBJ_DIR_INDICATOR};
# @${ECHO} "==> Object directory created, building"
# @${ECHO}
#_objdirs_done=yes
#. endif
#. endif
#. endif
#.endif
dirs:
mkdir -p $(INSTALL_DIR) || exit 1
mkdir -p $(MACH_BASE)\
$(MACH_BASE)/bin\
$(MACH_BASE)/env\
$(MACH_BASE)/lib\
$(MACH_BASE)/lib/diag\
$(MACH_BASE)/lib/sys
# mkdir -p $(MACH_WORK) || exit 1
mkdir -p $(COMMON_DIR) || exit 1
rm -f ${MACH_BASE}/startup.tar
cd $(BASE_DIR)/src/lib && tar cvf ${MACH_BASE}/startup.tar startup || exit 1
cd ${COMMON_DIR} && rm -rf startup && tar xvf ${MACH_BASE}/startup.tar
rm -f ${MACH_BASE}/startup.tar
api-depend:
@${ECHO} "# Creating API source for ${API}"
${TSPEC} -I${BASE_DIR}/${APIS} -O./ -S./building ${API}
makeapi: ${APILIB}
${APILIB}: ${APIOBJS}
@${ECHO} "# Linking ${API} API"
${TLD} -mc -o ${APILIB} ${APIOBJS}
b:
@${ECHO} "==> Starting TenDRA build..."
@${ECHO} "==> Creating object directory and symbolic links"
@${ECHO} "==> Object directory created, bootstrapping build"
cd $(BASE_DIR)/src/utilities/ && $(MAKE)
cd $(BASE_DIR)/src/tools/ && $(MAKE)
clean:
cd $(BASE_DIR)/src/utilities/ && $(MAKE) clean
cd $(BASE_DIR)/src/tools/ && $(MAKE) clean
rm -rf $(INSTALLDIR)
rm -rf $(WORK_DIR)
# cd $(BASE_DIR)/src/utilities && $(MAKE) -DBOOTSTRAP
# cd $(BASE_DIR)/src/tools && $(MAKE) -DBOOTSTRAP
# cd ${BASE_DIR}/${APIS}/${API}/ && ${.MAKE} -DBOOTSTRAP
.include "Makefile.inc"