source: rtems/Makefile.in @ 6ee6abb

4.104.114.84.95
Last change on this file since 6ee6abb was 6c77bba, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 4, 1998 at 2:54:27 PM

New autoconf feature from Ralf Corsepius:

It adds make rules for reconfiguring build-trees ("make Makefile") and
adds dependency rules for configure and friends (i.e. calls autoconf).
Most of this code has been "borrowed" from automake and was adapted to
rtems.

Addionally, I added automatic generation of the "aclocal.m4"-file by
"aclocal" (from the automake package). Therefore I splitted aclocal.m4
into several separate files (attached to this mail), each containing one
of rtems customized autoconf/m4-macros and have put them into a new
subdirectory "aclocal". Normal users won't be influenced and won't even
need this, unless they try to modify configure.in.

The main advantage of this is: these aclocal/m4-macros become reusable
and easier to administer. As a disadvantage, rtems becomes dependent of
having aclocal/automake installed. To keep building rtems functional if
autoconf or aclocal isn't installed, the related Makefile commands are
prefixed by "-" -- only an error message should be issued by "make".

  • Property mode set to 100644
File size: 1.5 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
26VPATH=@srcdir@
27
28ifeq ($(RTEMS_BSP),)
29  RTEMS_BSP = @RTEMS_BSP_LIST@
30endif
31
32include $(RTEMS_ROOT)/make/main.cfg
33
34MTARGETS = all install $(TARGET_VARIANTS) $(TARGET_VARIANTS:%=%_all) \
35  $(TARGET_VARIANTS:%=%_install) $(TARGET_VARIANTS:%=%_tests) \
36  clean_wrapup distclean clean_dirs clean_tools tests clean depend
37
38EXIT_CMD = exit 1
39
40# Don't pass flags from previous make - especially NOT CFLAGS
41override MAKEFLAGS=
42
43$(MTARGETS):
44        BASEDIR=`pwd`; \
45        for bsp in $(RTEMS_BSP) xxx; \
46        do if [ $$bsp != xxx ] ; then  \
47            cd $$BASEDIR; \
48            cmd="cd c; $(MAKE) RTEMS_BSP=$$bsp $(FLAGS_TO_PASS) \
49            $@" ; \
50            eval $$cmd || $(EXIT_CMD); \
51        fi; done;
52
53## Configuration stuff
54
55ACLOCAL = aclocal -I aclocal
56AUTOCONF = autoconf
57
58ACLOCAL_M4 = aclocal.m4
59
60$(ACLOCAL_M4): configure.in
61        -cd $(RTEMS_ROOT) && $(ACLOCAL)
62
63Makefile: Makefile.in config.status
64        CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
65
66config.status: $(RTEMS_ROOT)/configure
67        $(SHELL) ./config.status --recheck
68
69$(RTEMS_ROOT)/configure: $(RTEMS_ROOT)/configure.in $(ACLOCAL_M4)
70        -cd $(RTEMS_ROOT) && $(AUTOCONF)
71
72.PRECIOUS: $(ACLOCAL_M4) configure Makefile config.status
73
Note: See TracBrowser for help on using the repository browser.