source: rtems/Makefile.in @ 8548fe0

4.104.114.84.95
Last change on this file since 8548fe0 was 8548fe0, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 18:36:05

Part of the automake VI patch from Ralf Corsepius <corsepiu@…>:

5) rtems-rc-19990202-1.diff/reorg-install.sh

reorg-install.sh fixes a Makefile variable name clash of RTEMS
configuration files and automake/autoconf standards.
Until now, RTEMS used $(INSTALL) for install-if-change. Automake and
autoconf use $(INSTALL) for a bsd-compatible install. As
install-if-change and bsd-install are not compatible, I renamed all
references to install-if-changed to $(INSTALL_CHANGED) and used
$(INSTALL) for bsd-install (==automake/autoconf standard). When
automake will be introduced install-if-change will probably be replaced
by $(INSTALL) and therefore will slowly vanish. For the moment, this
patch fixes a very nasty problem which prevents adding any automake file
until now (There are still more).

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#
2# top level directory for RTEMS build tree
3#
4# Modified by Jiri to implement autoconf and cygnus one-tree build
5#
6#  $Id$
7#
8
9@SET_MAKE@
10srcdir = @srcdir@
11prefix = @prefix@
12exec_prefix = @exec_prefix@
13bindir = @bindir@
14libdir = @libdir@
15includedir = @includedir@
16target = @target@
17manext = 1
18mandir = @mandir@/man$(manext)
19program_prefix = @program_prefix@
20
21export bindir
22
23RTEMS_ROOT = @top_srcdir@
24PROJECT_ROOT = @PROJECT_ROOT@
25
26INSTALL = @INSTALL@
27
28VPATH=@srcdir@
29
30ifeq ($(RTEMS_BSP),)
31  RTEMS_BSP = @RTEMS_BSP_LIST@
32endif
33
34include $(RTEMS_ROOT)/make/main.cfg
35
36MTARGETS = pre_install_src all install $(TARGET_VARIANTS) $(TARGET_VARIANTS:%=%_all) \
37  $(TARGET_VARIANTS:%=%_install) $(TARGET_VARIANTS:%=%_tests) \
38  clean_wrapup distclean clean_dirs clean_tools tests clean depend
39
40EXIT_CMD = exit 1
41
42# Don't pass flags from previous make - especially NOT CFLAGS 
43# NOTE: Previous versions overrode MAKEFLAGS, but this also disables
44# a lot of useful features
45# override MAKEFLAGS=
46
47$(MTARGETS):
48        BASEDIR=`pwd`; \
49        for bsp in $(RTEMS_BSP) xxx; \
50        do if [ $$bsp != xxx ] ; then  \
51            cd $$BASEDIR; \
52            cmd="cd c; $(MAKE) RTEMS_BSP=$$bsp $(FLAGS_TO_PASS) \
53            $@" ; \
54            eval $$cmd || $(EXIT_CMD); \
55        fi; done;
56
57## Configuration stuff
58
59ACLOCAL = aclocal -I aclocal
60AUTOCONF = autoconf
61
62ACLOCAL_FILES := $(wildcard $(srcdir)/aclocal/*.m4)
63ACLOCAL_M4 = aclocal.m4
64
65$(ACLOCAL_M4): configure.in $(ACLOCAL_FILES)
66        -cd $(RTEMS_ROOT) && $(ACLOCAL)
67
68Makefile: Makefile.in config.status
69        CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
70
71config.status: $(RTEMS_ROOT)/configure
72        $(SHELL) ./config.status --recheck
73
74$(RTEMS_ROOT)/configure: $(RTEMS_ROOT)/configure.in $(ACLOCAL_M4)
75        -cd $(RTEMS_ROOT) && $(AUTOCONF)
76
77.PRECIOUS: $(ACLOCAL_M4) configure Makefile config.status
78
Note: See TracBrowser for help on using the repository browser.