source: rtems/Makefile.in @ a4f6b02

4.104.114.84.95
Last change on this file since a4f6b02 was 196094eb, checked in by Joel Sherrill <joel.sherrill@…>, on 04/19/99 at 13:19:14

Patch from Ralf Corsepius <corsepiu@…>:

This one is an enhancement to acpolish.

It replaces some Makefile variables by others variable in Makefile.ins
(tries to use unique name for some variables). It therefore eases
parsing Makefile.ins for further automatic Makefile.in conversions in
future.

To apply:

cd <rtems-source-tree>
sh <path-to>/rtems-rc-19990407-8.sh
./autogen

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