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 | |
---|
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 | |
---|
33 | BSDINSTALL=@INSTALL@ |
---|
34 | INSTALL=$(PROJECT_TOOLS)/install-if-change |
---|
35 | INSTALL_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. |
---|
40 | GCCSED = @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. |
---|
47 | KSH=@KSH@ |
---|
48 | |
---|
49 | # |
---|
50 | # RCS support |
---|
51 | # |
---|
52 | RCS_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 | |
---|
64 | define make-script |
---|
65 | -$(RM) $@ |
---|
66 | $(SED) -e '1,1s?^#!KSHELL?#!$(KSH)?' \ |
---|
67 | -e '1,1s?^#!SHELL?#!$(SHELL)?' < $< > $@ |
---|
68 | $(CHMOD) 0555 $@ |
---|
69 | endef |
---|
70 | |
---|
71 | INSTBINFLAGS = -m 0755 |
---|
72 | INSTDATAFLAGS = -m 0644 |
---|
73 | INSTLIBFLAGS = -m 0644 |
---|
74 | INSTDIRFLAGS = -m 0755 -d |
---|
75 | INSTINCFLAGS = -m 0644 |
---|
Note: See
TracBrowser
for help on using the repository browser.