source: rtems/Makefile.in @ ecacc11

4.104.114.84.9
Last change on this file since ecacc11 was ecacc11, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 15, 1998 at 10:51:41 PM

Ralf Corsepius <corsepiu@…> suggested removing these
lines so setting RTEMS_BSP in an environment variable works even
from the top level directory.

  • Property mode set to 100644
File size: 1.7 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
7@SET_MAKE@
8srcdir = @srcdir@
9prefix = @prefix@
10exec_prefix = @exec_prefix@
11bindir = @bindir@
12libdir = @libdir@
13includedir = @includedir@
14target = @target@
15manext = 1
16mandir = @mandir@/man$(manext)
17program_prefix = @program_prefix@
18
19RTEMS_ROOT = @RTEMS_ROOT@
20PROJECT_ROOT = @PROJECT_ROOT@
21
22VPATH=@srcdir@
23
24ifeq ($(RTEMS_BSP),)
25  RTEMS_BSP = @RTEMS_BSP_LIST@
26endif
27
28MAKE_CONFIG_EXTRA_DIR_PART=c/
29
30include $(RTEMS_ROOT)/make/main.cfg
31
32MTARGETS = all install $(TARGET_VARIANTS) $(TARGET_VARIANTS:%=%_all) \
33  $(TARGET_VARIANTS:%=%_install) $(TARGET_VARIANTS:%=%_tests) \
34  clean_wrapup distclean clean_dirs clean_tools tests clean depend
35
36.PHONY: clean_modules make_subdir
37
38EXIT_CMD = exit 1
39
40# Don't pass flags from previous make - especially NOT CFLAGS
41override MAKEFLAGS=
42
43#            \"XCFLAGS=$(CFLAGS_FOR_TARGET)\"
44
45$(MTARGETS): make_subdir
46        BASEDIR=`pwd`; \
47        for bsp in $(RTEMS_BSP) xxx; \
48        do if [ $$bsp != xxx ] ; then  \
49            cd $$BASEDIR; \
50            cmd="cd c; $(MAKE) RTEMS_BSP=$$bsp $(FLAGS_TO_PASS) \
51            $@" ; \
52            eval $$cmd || $(EXIT_CMD); \
53        fi; done;
54
55clean_modules:
56        rm -f src/Modules/rtems/.moduleavailcache
57        rm -f src/Modules/rtems/.moduleavailcachedir
58
59make_subdir:
60        if [ ! -d make ] ; then \
61          (cd $(srcdir)/c; tar cf - make/compilers make/custom \
62                make/directory.cfg make/leaf.cfg make/lib.cfg make/main.cfg \
63                make/Templates/Makefile.dir \
64                make/Templates/Makefile.leaf make/Templates/Makefile.lib) | \
65                tar xpBf - ; rm -rf make/CVS make/*/CVS ; \
66          cp c/make/Templates/Makefile.inc make/Templates/Makefile.inc ; \
67          cp c/make/host.cfg make/host.cfg ; \
68          cp c/make/target.cfg make/target.cfg ; \
69        fi
Note: See TracBrowser for help on using the repository browser.