source: rtems/Makefile.in @ 674c900

4.104.114.84.9
Last change on this file since 674c900 was 674c900, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 10, 1997 at 4:58:00 PM

Modified a lot of files to take a first cut at supporting building from
any directory in the build tree. The only variable which must be set
before the command "gmake" is invoked is RTEMS_BSP (e.g. RTEMS_BSP=erc32).

  • 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
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 ($(RTEMSBSP),)
25  RTEMS_BSP = @RTEMS_BSP@
26else
27  RTEMS_BSP = $(RTEMSBSP)
28endif
29
30MAKE_CONFIG_EXTRA_DIR_PART=c/
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
38.PHONY: clean_modules make_subdir
39
40EXIT_CMD = exit 1
41
42# Don't pass flags from previous make - especially NOT CFLAGS
43override MAKEFLAGS=
44
45#            \"XCFLAGS=$(CFLAGS_FOR_TARGET)\"
46
47$(MTARGETS): make_subdir
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
57clean_modules:
58        rm -f src/Modules/rtems/.moduleavailcache
59        rm -f src/Modules/rtems/.moduleavailcachedir
60
61make_subdir:
62        if [ ! -d make ] ; then \
63          (cd $(srcdir)/c; tar cf - make/compilers make/custom \
64                make/directory.cfg make/leaf.cfg make/lib.cfg make/main.cfg \
65                make/Templates/Makefile.dir \
66                make/Templates/Makefile.leaf make/Templates/Makefile.lib) | \
67                tar xpBf - ; rm -rf make/CVS make/*/CVS ; \
68          cp c/make/Templates/Makefile.inc make/Templates/Makefile.inc ; \
69          cp c/make/host.cfg make/host.cfg ; \
70          cp c/make/target.cfg make/target.cfg ; \
71        fi
Note: See TracBrowser for help on using the repository browser.