summaryrefslogtreecommitdiffstats
path: root/make/host.cfg.in
blob: aa215b8eae01a0ff9521e5cf35b60b5c44635106 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#
#  $Id$
#
# OS-specific configuration 
#
# Derived from rtems/c/make/os/*.cfg in previous RTEMS version.
#

RTEMS_HOST = @RTEMS_HOST@

#
# Stuff to clean and clobber for the OS
#

CLEAN_OS =
CLOBBER_OS = *~ *.bak TAGS tags

SHELL=@SHELL@
ECHO=echo

CAT=cat
## RM=@RM@ -f
CP=@CP@
MV=@MV@
LN=@LN@
MKDIR=mkdir
CHMOD=chmod
SED=sed

# Global tools
ifndef PACKHEX
PACKHEX=$(PROJECT_BIN)/packhex
endif

ifndef INSTALL_CHANGE
INSTALL_CHANGE=$(PROJECT_BIN)/install-if-change
endif
INSTALL_VARIANT=$(INSTALL_CHANGE) -V "$(LIB_VARIANT)"

# FIXME: HACK for a bug in cygwin-hosted egcs which returns a mixture
#        of '\\' and '/' as path separators.
#        Should be removed as soon as this bug is fixed in egcs.
GCCSED = @GCCSED@

# 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 
#  unreliably on RTEMS shell scripts.  bash appears to be the most
#  reliable but late model ksh's are usually OK.
KSH=@KSH@

#
#  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
# installed script.  Replace the first line of this rule to do this.
#
#	-$(RM) $@.old
#	-$(MV) $@ $@.old >/dev/null 2>&1

# OBSOLETE: Don't use this anymore, this may be removed in future
define make-script
	-$(RM) $@
	$(SED) -e '1,1s?^#!KSHELL?#!$(KSH)?' \
               -e '1,1s?^#!SHELL?#!$(SHELL)?' < $< > $@
	$(CHMOD) 0555 $@
endef

INSTBINFLAGS  = -m 0755
INSTDATAFLAGS = -m 0644
INSTLIBFLAGS  = -m 0644 
INSTDIRFLAGS  = -m 0755 -d
INSTINCFLAGS  = -m 0644