source: rtems/c/src/make/host.cfg.in @ f95d2b53

4.104.114.84.95
Last change on this file since f95d2b53 was f95d2b53, checked in by Joel Sherrill <joel.sherrill@…>, on 07/17/98 at 15:49:12

Patch from Ralf Corsepius <corsepiu@…>. Comments:

  • Added support for bsd "install" ($(BSDINSTALL)) to host.cfg.in, i.e. the standard "install" program that most packages (including automake) use. In Makefiles outside of rtems, "install" normally is referenced by $(INSTALL), but rtems already uses $(INSTALL) for install-if-change, hence I used $(BSDINSTALL) instead to keep up backward compatibility.
  • Removed references to @GREP@ etc. from host.cfg.in, as configure.in doesn't check for them (Minor cleanup).
  • Added installation flags INST*FLAGS to host.cfg.in, which should replace -m XXXX flags for installation calls.

*Changes to gcc.cfg to enable it to build host programs from multiple
sources files.
Should not disturb existing sources, but neccessary.

  • There was a not-so-minor bug in the configuration files: "make install" and "make debug_install" don't work in all subdirectories!! I tried to fix this by adding "install" to MTARGETS in main.cfg, which seems to solve most of the problems. But there still seem to be rare (?) cases where "make debug_install" still seems to have problems.
  • Changes to many host related tool-Makefiles to demonstrate the abilities of INST*FLAGS, BSDINSTALL and the new rules in gcc.cfg. ..of cause ... but BSDINSTALL is THE standard method to install files in most program packages besides rtems. This part of the patch fixes some minor protection setting problems, but doesn't support TARGET_VARIANTS

NOTE:
I hope you will like the BSDINSTALL, INST*FLAGS stuff. It is a step to
get rid of "install-if-change" and to rely on a more standard
installation procedure. If you don't like BSDINSTALL, removing it from
the patch isn't difficult- just grep for BSDINSTALL and replace
BSDINSTALL with INSTALL or MKDIR.

FINALLY:
I still have another patch pending (well, not a complete patch yet, it's
a partial patch to demonstrate the principle), which adds automatic
rebuilding of files generated by autoconf/configure. At the moment I
don't dare to submit it, because integrating this patch would require to
modify all Makefile.ins because we'd need to add a new "include " line
to each Makefile.in.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1#
2#  $Id$
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
11RTEMS_HOST = @RTEMS_HOST@
12
13#
14# Stuff to clean and clobber for the OS
15#
16
17CLEAN_OS =
18CLOBBER_OS = *~ *.bak TAGS tags
19
20SHELL=/bin/sh
21ECHO=echo
22
23CAT=@CAT@
24RM=@RM@ -f
25CP=@CP@
26MV=@MV@
27LN=@LN@
28MKDIR=@MKDIR@
29CHMOD=@CHMOD@
30SED=@SED@
31M4=@M4@
32
33BSDINSTALL=@INSTALL@
34INSTALL=$(PROJECT_TOOLS)/install-if-change
35INSTALL_VARIANT=$(PROJECT_TOOLS)/install-if-change -V "$(LIB_VARIANT)"
36
37# FIXME: HACK for a bug in cygwin-hosted egcs which returns a mixture
38#        of '\\' and '/' as path separators.
39#        Should be removed as soon as this bug is fixed in egcs.
40GCCSED = @GCCSED@
41
42# ksh (or bash) is used by some shell scripts; ref build-tools/scripts/Makefile
43#
44#  Must have shell functions.  Some ksh's core dump mysteriously and
45#  unreliably on RTEMS shell scripts.  bash appears to be the most
46#  reliable but late model ksh's are usually OK.
47KSH=@KSH@
48
49#
50# RCS support
51#
52RCS_CLEAN=$(PROJECT_TOOLS)/rcs-clean
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
64define make-script
65        -$(RM) $@
66        $(SED) -e '1,1s?^#!KSHELL?#!$(KSH)?' \
67               -e '1,1s?^#!SHELL?#!$(SHELL)?' < $< > $@
68        $(CHMOD) 0555 $@
69endef
70
71INSTBINFLAGS  = -m 0755
72INSTDATAFLAGS = -m 0644
73INSTLIBFLAGS  = -m 0644
74INSTDIRFLAGS  = -m 0755 -d
75INSTINCFLAGS  = -m 0644
Note: See TracBrowser for help on using the repository browser.