4.104.114.84.95
Last change
on this file since 011677f was
011677f,
checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 17:54:03
|
Part of automake VI Patch from Ralf Corsepius <corsepiu@…>.
Adds variables to the custom/*cfg files to specify the location of
tools. The purpose is to remove hard-coded paths from the Makefiles.
In later steps this eases moving the tools to other locations.
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[bffb938] | 1 | # |
---|
[21c1513] | 2 | # $Id$ |
---|
[bffb938] | 3 | # |
---|
| 4 | # OS-specific configuration |
---|
| 5 | # |
---|
| 6 | # Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) 97/11/08 |
---|
| 7 | # |
---|
| 8 | # Derived from rtems/c/make/os/*.cfg in previous RTEMS version. |
---|
| 9 | # |
---|
| 10 | |
---|
| 11 | RTEMS_HOST = @RTEMS_HOST@ |
---|
| 12 | |
---|
| 13 | # |
---|
| 14 | # Stuff to clean and clobber for the OS |
---|
| 15 | # |
---|
| 16 | |
---|
| 17 | CLEAN_OS = |
---|
| 18 | CLOBBER_OS = *~ *.bak TAGS tags |
---|
| 19 | |
---|
| 20 | SHELL=/bin/sh |
---|
| 21 | ECHO=echo |
---|
| 22 | |
---|
| 23 | CAT=@CAT@ |
---|
| 24 | RM=@RM@ -f |
---|
| 25 | CP=@CP@ |
---|
| 26 | MV=@MV@ |
---|
| 27 | LN=@LN@ |
---|
| 28 | MKDIR=@MKDIR@ |
---|
| 29 | CHMOD=@CHMOD@ |
---|
| 30 | SED=@SED@ |
---|
| 31 | M4=@M4@ |
---|
| 32 | |
---|
[011677f] | 33 | # Global tools |
---|
| 34 | PACKHEX=$(PROJECT_TOOLS)/packhex |
---|
| 35 | |
---|
[bffb938] | 36 | INSTALL=$(PROJECT_TOOLS)/install-if-change |
---|
| 37 | INSTALL_VARIANT=$(PROJECT_TOOLS)/install-if-change -V "$(LIB_VARIANT)" |
---|
| 38 | |
---|
[98100d2] | 39 | # FIXME: HACK for a bug in cygwin-hosted egcs which returns a mixture |
---|
| 40 | # of '\\' and '/' as path separators. |
---|
| 41 | # Should be removed as soon as this bug is fixed in egcs. |
---|
| 42 | GCCSED = @GCCSED@ |
---|
| 43 | |
---|
[bffb938] | 44 | # ksh (or bash) is used by some shell scripts; ref build-tools/scripts/Makefile |
---|
| 45 | # |
---|
| 46 | # Must have shell functions. Some ksh's core dump mysteriously and |
---|
| 47 | # unreliably on RTEMS shell scripts. bash appears to be the most |
---|
| 48 | # reliable but late model ksh's are usually OK. |
---|
| 49 | KSH=@KSH@ |
---|
| 50 | |
---|
| 51 | # |
---|
| 52 | # RCS support |
---|
| 53 | # |
---|
| 54 | RCS_CLEAN=$(PROJECT_TOOLS)/rcs-clean |
---|
| 55 | |
---|
| 56 | # |
---|
| 57 | # Rule to install a shell script with the proper shell to run it. |
---|
| 58 | # |
---|
| 59 | |
---|
| 60 | # when debugging, one may want to save the previous incarnation of the |
---|
| 61 | # installed script. Replace the first line of this rule to do this. |
---|
| 62 | # |
---|
| 63 | # -$(RM) $@.old |
---|
| 64 | # -$(MV) $@ $@.old >/dev/null 2>&1 |
---|
| 65 | |
---|
| 66 | define make-script |
---|
| 67 | -$(RM) $@ |
---|
| 68 | $(SED) -e '1,1s?^#!KSHELL?#!$(KSH)?' \ |
---|
| 69 | -e '1,1s?^#!SHELL?#!$(SHELL)?' < $< > $@ |
---|
| 70 | $(CHMOD) 0555 $@ |
---|
| 71 | endef |
---|
[f95d2b53] | 72 | |
---|
| 73 | INSTBINFLAGS = -m 0755 |
---|
| 74 | INSTDATAFLAGS = -m 0644 |
---|
| 75 | INSTLIBFLAGS = -m 0644 |
---|
| 76 | INSTDIRFLAGS = -m 0755 -d |
---|
| 77 | INSTINCFLAGS = -m 0644 |
---|
Note: See
TracBrowser
for help on using the repository browser.