#
|
#
|
# $Id: host.cfg.in,v 1.2 2001-09-27 12:02:50 chris Exp $
|
# $Id: host.cfg.in,v 1.2 2001-09-27 12:02:50 chris Exp $
|
#
|
#
|
# OS-specific configuration
|
# OS-specific configuration
|
#
|
#
|
# Derived from rtems/c/make/os/*.cfg in previous RTEMS version.
|
# Derived from rtems/c/make/os/*.cfg in previous RTEMS version.
|
#
|
#
|
|
|
RTEMS_HOST = @RTEMS_HOST@
|
RTEMS_HOST = @RTEMS_HOST@
|
|
|
#
|
#
|
# Stuff to clean and clobber for the OS
|
# Stuff to clean and clobber for the OS
|
#
|
#
|
|
|
CLEAN_OS =
|
CLEAN_OS =
|
CLOBBER_OS = *~ *.bak TAGS tags
|
CLOBBER_OS = *~ *.bak TAGS tags
|
|
|
SHELL=@SHELL@
|
SHELL=@SHELL@
|
ECHO=echo
|
ECHO=echo
|
|
|
CAT=cat
|
CAT=cat
|
## RM=@RM@ -f
|
## RM=@RM@ -f
|
CP=@CP@
|
CP=@CP@
|
MV=@MV@
|
MV=@MV@
|
LN=@LN@
|
LN=@LN@
|
MKDIR=mkdir
|
MKDIR=mkdir
|
CHMOD=chmod
|
CHMOD=chmod
|
SED=sed
|
SED=sed
|
|
|
# Global tools
|
# Global tools
|
ifndef PACKHEX
|
ifndef PACKHEX
|
PACKHEX=$(PROJECT_BIN)/packhex
|
PACKHEX=$(PROJECT_BIN)/packhex
|
endif
|
endif
|
|
|
ifndef INSTALL_CHANGE
|
ifndef INSTALL_CHANGE
|
INSTALL_CHANGE=$(PROJECT_BIN)/install-if-change
|
INSTALL_CHANGE=$(PROJECT_BIN)/install-if-change
|
endif
|
endif
|
INSTALL_VARIANT=$(INSTALL_CHANGE) -V "$(LIB_VARIANT)"
|
INSTALL_VARIANT=$(INSTALL_CHANGE) -V "$(LIB_VARIANT)"
|
|
|
# FIXME: HACK for a bug in cygwin-hosted egcs which returns a mixture
|
# FIXME: HACK for a bug in cygwin-hosted egcs which returns a mixture
|
# of '\\' and '/' as path separators.
|
# of '\\' and '/' as path separators.
|
# Should be removed as soon as this bug is fixed in egcs.
|
# Should be removed as soon as this bug is fixed in egcs.
|
GCCSED = @GCCSED@
|
GCCSED = @GCCSED@
|
|
|
# ksh (or bash) is used by some shell scripts; ref build-tools/scripts/Makefile
|
# ksh (or bash) is used by some shell scripts; ref build-tools/scripts/Makefile
|
#
|
#
|
# Must have shell functions. Some ksh's core dump mysteriously and
|
# Must have shell functions. Some ksh's core dump mysteriously and
|
# unreliably on RTEMS shell scripts. bash appears to be the most
|
# unreliably on RTEMS shell scripts. bash appears to be the most
|
# reliable but late model ksh's are usually OK.
|
# reliable but late model ksh's are usually OK.
|
KSH=@KSH@
|
KSH=@KSH@
|
|
|
#
|
#
|
# Rule to install a shell script with the proper shell to run it.
|
# Rule to install a shell script with the proper shell to run it.
|
#
|
#
|
|
|
# when debugging, one may want to save the previous incarnation of the
|
# when debugging, one may want to save the previous incarnation of the
|
# installed script. Replace the first line of this rule to do this.
|
# installed script. Replace the first line of this rule to do this.
|
#
|
#
|
# -$(RM) $@.old
|
# -$(RM) $@.old
|
# -$(MV) $@ $@.old >/dev/null 2>&1
|
# -$(MV) $@ $@.old >/dev/null 2>&1
|
|
|
# OBSOLETE: Don't use this anymore, this may be removed in future
|
# OBSOLETE: Don't use this anymore, this may be removed in future
|
define make-script
|
define make-script
|
-$(RM) $@
|
-$(RM) $@
|
$(SED) -e '1,1s?^#!KSHELL?#!$(KSH)?' \
|
$(SED) -e '1,1s?^#!KSHELL?#!$(KSH)?' \
|
-e '1,1s?^#!SHELL?#!$(SHELL)?' < $< > $@
|
-e '1,1s?^#!SHELL?#!$(SHELL)?' < $< > $@
|
$(CHMOD) 0555 $@
|
$(CHMOD) 0555 $@
|
endef
|
endef
|
|
|
INSTBINFLAGS = -m 0755
|
INSTBINFLAGS = -m 0755
|
INSTDATAFLAGS = -m 0644
|
INSTDATAFLAGS = -m 0644
|
INSTLIBFLAGS = -m 0644
|
INSTLIBFLAGS = -m 0644
|
INSTDIRFLAGS = -m 0755 -d
|
INSTDIRFLAGS = -m 0755 -d
|
INSTINCFLAGS = -m 0644
|
INSTINCFLAGS = -m 0644
|
|
|