source: rtems/Makefile.in @ 2936b425

4.104.114.84.9
Last change on this file since 2936b425 was 2936b425, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 23, 1998 at 5:45:05 PM

Solaris port updates from Chris Johns

  • 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 = @RTEMS_ROOT@
24PROJECT_ROOT = @PROJECT_ROOT@
25
26VPATH=@srcdir@
27
28ifeq ($(RTEMS_BSP),)
29  RTEMS_BSP = @RTEMS_BSP_LIST@
30endif
31
32MAKE_CONFIG_EXTRA_DIR_PART=c/
33
34include $(RTEMS_ROOT)/make/main.cfg
35
36MTARGETS = 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
40.PHONY: clean_modules make_subdir
41
42EXIT_CMD = exit 1
43
44# Don't pass flags from previous make - especially NOT CFLAGS
45override MAKEFLAGS=
46
47#            \"XCFLAGS=$(CFLAGS_FOR_TARGET)\"
48
49$(MTARGETS): make_subdir
50        BASEDIR=`pwd`; \
51        for bsp in $(RTEMS_BSP) xxx; \
52        do if [ $$bsp != xxx ] ; then  \
53            cd $$BASEDIR; \
54            cmd="cd c; $(MAKE) RTEMS_BSP=$$bsp $(FLAGS_TO_PASS) \
55            $@" ; \
56            eval $$cmd || $(EXIT_CMD); \
57        fi; done;
58
59clean_modules:
60        rm -f src/Modules/rtems/.moduleavailcache
61        rm -f src/Modules/rtems/.moduleavailcachedir
62
63make_subdir:
64        if [ ! -d make ] ; then \
65          (cd $(srcdir)/c; tar cf - make/compilers make/custom \
66                make/directory.cfg make/leaf.cfg make/lib.cfg make/main.cfg \
67                make/Templates/Makefile.dir \
68                make/Templates/Makefile.leaf make/Templates/Makefile.lib) | \
69                tar xpBf - ; rm -rf make/CVS make/*/CVS ; \
70          cp c/make/Templates/Makefile.inc make/Templates/Makefile.inc ; \
71          cp c/make/host.cfg make/host.cfg ; \
72          cp c/make/target.cfg make/target.cfg ; \
73        fi
Note: See TracBrowser for help on using the repository browser.