1 | # |
---|
2 | # $Id$ |
---|
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 | |
---|
18 | SHELL=@SHELL@ |
---|
19 | ECHO=echo |
---|
20 | |
---|
21 | CAT=cat |
---|
22 | ## RM=@RM@ -f |
---|
23 | CP=@CP@ |
---|
24 | MV=@MV@ |
---|
25 | LN=@LN@ |
---|
26 | MKDIR=mkdir |
---|
27 | CHMOD=chmod |
---|
28 | SED=sed |
---|
29 | |
---|
30 | # Global tools |
---|
31 | ifndef PACKHEX |
---|
32 | PACKHEX=$(PROJECT_BIN)/packhex |
---|
33 | endif |
---|
34 | |
---|
35 | ifndef INSTALL_CHANGE |
---|
36 | INSTALL_CHANGE=$(PROJECT_BIN)/install-if-change |
---|
37 | endif |
---|
38 | INSTALL_VARIANT=$(INSTALL_CHANGE) -V "$(LIB_VARIANT)" |
---|
39 | |
---|
40 | # FIXME: HACK for a bug in cygwin-hosted egcs which returns a mixture |
---|
41 | # of '\\' and '/' as path separators. |
---|
42 | # Should be removed as soon as this bug is fixed in egcs. |
---|
43 | GCCSED = @GCCSED@ |
---|
44 | |
---|
45 | # ksh (or bash) is used by some shell scripts; ref build-tools/scripts/Makefile |
---|
46 | # |
---|
47 | # Must have shell functions. Some ksh's core dump mysteriously and |
---|
48 | # unreliably on RTEMS shell scripts. bash appears to be the most |
---|
49 | # reliable but late model ksh's are usually OK. |
---|
50 | KSH=@KSH@ |
---|
51 | |
---|
52 | # |
---|
53 | # Rule to install a shell script with the proper shell to run it. |
---|
54 | # |
---|
55 | |
---|
56 | # when debugging, one may want to save the previous incarnation of the |
---|
57 | # installed script. Replace the first line of this rule to do this. |
---|
58 | # |
---|
59 | # -$(RM) $@.old |
---|
60 | # -$(MV) $@ $@.old >/dev/null 2>&1 |
---|
61 | |
---|
62 | # OBSOLETE: Don't use this anymore, this may be removed in future |
---|
63 | define make-script |
---|
64 | -$(RM) $@ |
---|
65 | $(SED) -e '1,1s?^#!KSHELL?#!$(KSH)?' \ |
---|
66 | -e '1,1s?^#!SHELL?#!$(SHELL)?' < $< > $@ |
---|
67 | $(CHMOD) 0555 $@ |
---|
68 | endef |
---|
69 | |
---|
70 | INSTBINFLAGS = -m 0755 |
---|
71 | INSTDATAFLAGS = -m 0644 |
---|
72 | INSTLIBFLAGS = -m 0644 |
---|
73 | INSTDIRFLAGS = -m 0755 -d |
---|
74 | INSTINCFLAGS = -m 0644 |
---|