source:
rtems/c/src/make/host.cfg.in
@
c1c1f33
Last change on this file since c1c1f33 was 49da88c, checked in by Joel Sherrill <joel.sherrill@…>, on 11/23/99 at 15:53:09 | |
---|---|
|
|
File size: 1.7 KB |
Rev | Line | |
---|---|---|
[bffb938] | 1 | # |
[21c1513] | 2 | # $Id$ |
[bffb938] | 3 | # |
4 | # OS-specific configuration | |
5 | # | |
6 | # Derived from rtems/c/make/os/*.cfg in previous RTEMS version. | |
7 | # | |
8 | ||
9 | RTEMS_HOST = @RTEMS_HOST@ | |
10 | ||
11 | # | |
12 | # Stuff to clean and clobber for the OS | |
13 | # | |
14 | ||
15 | CLEAN_OS = | |
16 | CLOBBER_OS = *~ *.bak TAGS tags | |
17 | ||
[6693a68] | 18 | SHELL=@SHELL@ |
[bffb938] | 19 | ECHO=echo |
20 | ||
[6693a68] | 21 | CAT=cat |
[bffb938] | 22 | RM=@RM@ -f |
23 | CP=@CP@ | |
24 | MV=@MV@ | |
25 | LN=@LN@ | |
[817466c] | 26 | MKDIR=mkdir |
[6693a68] | 27 | CHMOD=chmod |
28 | SED=sed | |
29 | # Anybody using this? | |
30 | # M4=@M4@ | |
[bffb938] | 31 | |
[011677f] | 32 | # Global tools |
[49da88c] | 33 | ifndef PACKHEX |
[6693a68] | 34 | PACKHEX=$(PROJECT_BIN)/packhex |
[49da88c] | 35 | endif |
[011677f] | 36 | |
[49da88c] | 37 | ifndef INSTALL_CHANGE |
[6693a68] | 38 | INSTALL_CHANGE=$(PROJECT_BIN)/install-if-change |
[49da88c] | 39 | endif |
[817466c] | 40 | INSTALL_VARIANT=$(INSTALL_CHANGE) -V "$(LIB_VARIANT)" |
[bffb938] | 41 | |
[98100d2] | 42 | # FIXME: HACK for a bug in cygwin-hosted egcs which returns a mixture |
43 | # of '\\' and '/' as path separators. | |
44 | # Should be removed as soon as this bug is fixed in egcs. | |
45 | GCCSED = @GCCSED@ | |
46 | ||
[bffb938] | 47 | # ksh (or bash) is used by some shell scripts; ref build-tools/scripts/Makefile |
48 | # | |
49 | # Must have shell functions. Some ksh's core dump mysteriously and | |
50 | # unreliably on RTEMS shell scripts. bash appears to be the most | |
51 | # reliable but late model ksh's are usually OK. | |
52 | KSH=@KSH@ | |
53 | ||
54 | # | |
55 | # Rule to install a shell script with the proper shell to run it. | |
56 | # | |
57 | ||
58 | # when debugging, one may want to save the previous incarnation of the | |
59 | # installed script. Replace the first line of this rule to do this. | |
60 | # | |
61 | # -$(RM) $@.old | |
62 | # -$(MV) $@ $@.old >/dev/null 2>&1 | |
63 | ||
[6693a68] | 64 | # OBSOLETE: Don't use this anymore, this may be removed in future |
[bffb938] | 65 | define make-script |
66 | -$(RM) $@ | |
67 | $(SED) -e '1,1s?^#!KSHELL?#!$(KSH)?' \ | |
68 | -e '1,1s?^#!SHELL?#!$(SHELL)?' < $< > $@ | |
69 | $(CHMOD) 0555 $@ | |
70 | endef | |
[f95d2b53] | 71 | |
72 | INSTBINFLAGS = -m 0755 | |
73 | INSTDATAFLAGS = -m 0644 | |
74 | INSTLIBFLAGS = -m 0644 | |
75 | INSTDIRFLAGS = -m 0755 -d | |
76 | INSTINCFLAGS = -m 0644 | |
[dfe7746e] | 77 | |
[49da88c] | 78 | ifndef INSTALL_DATA |
[dfe7746e] | 79 | INSTALL_DATA = $(INSTALL) $(INSTDATAFLAGS) |
[49da88c] | 80 | endif |
Note: See TracBrowser
for help on using the repository browser.