source: rtems/Makefile.in @ 8cd3748

4.104.114.84.9
Last change on this file since 8cd3748 was 8cd3748, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 21, 1997 at 5:44:14 PM

Removed duplicate listing of install in MTARGETS.

Add monitor test.

  • Property mode set to 100644
File size: 3.0 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
19
20VPATH=@srcdir@
21
22CFLAGS = @CFLAGS@
23CPPFLAGS = @CPPFLAGS@
24DEFS = @DEFS@
25LDFLAGS =
26LIBS = @LIBS@
27CC_FOR_BUILD = gcc
28
29
30CC_FOR_TARGET = $(program_prefix)gcc
31AS_FOR_TARGET = $(program_prefix)as
32AR_FOR_TARGET = $(program_prefix)ar
33NM_FOR_TARGET = $(program_prefix)nm
34LD_FOR_TARGET = $(program_prefix)ld
35OBJCOPY_FOR_TARGET = $(program_prefix)objcopy
36SIZE_FOR_TARGET = $(program_prefix)size
37
38AWK = @AWK@
39
40RTEMS_ROOT = @RTEMS_ROOT@
41RTEMS_HOST = @RTEMS_HOST@
42PROJECT_ROOT = @PROJECT_ROOT@
43RTEMS_USE_OWN_PDIR = @RTEMS_USE_OWN_PDIR@
44RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
45RTEMS_HAS_KA9Q = @RTEMS_HAS_KA9Q@
46RTEMS_HAS_CPLUSPLUS = @RTEMS_HAS_CPLUSPLUS@
47RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
48RTEMS_USE_GCC272 = @RTEMS_USE_GCC272@
49RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
50
51ifeq ($(RTEMSBSP),)
52  RTEMS_BSP = @RTEMS_BSP@
53else
54  RTEMS_BSP = $(RTEMSBSP)
55endif
56
57include $(RTEMS_ROOT)/make/main.cfg
58
59MTARGETS = all install $(TARGET_VARIANTS) $(TARGET_VARIANTS:%=%_all) \
60  $(TARGET_VARIANTS:%=%_install) $(TARGET_VARIANTS:%=%_tests) \
61  clean_wrapup distclean clean_dirs clean_tools tests clean depend
62
63.PHONY: clean_modules mlink
64
65EXIT_CMD = exit 1
66
67# Don't pass flags from previous make - especially NOT CFLAGS
68override MAKEFLAGS=
69
70$(MTARGETS): mlink
71        BASEDIR=`pwd`; \
72        for bsp in $(RTEMS_BSP) xxx; \
73        do if [ $$bsp != xxx ] ; then  \
74            cd $$BASEDIR; \
75            cmd="cd c; $(MAKE) RTEMS_BSP=$$bsp $(FLAGS_TO_PASS) \
76            RTEMS_CUSTOM=$(RTEMS_ROOT)/make/custom/$$bsp.cfg \
77            INSTALL=$(PROJECT_ROOT)/$$bsp/build-tools/install-if-change \
78            \"CC=$(CC_FOR_TARGET)\" \
79            \"XCFLAGS=$(CFLAGS_FOR_TARGET)\" \
80            \"CC_FOR_BUILD=$(CC_FOR_BUILD)\" \
81            \"AS=$(AS_FOR_TARGET)\" \
82            \"LD=$(LD_FOR_TARGET)\" \
83            \"NM=$(NM_FOR_TARGET)\" \
84            \"AR=$(AR_FOR_TARGET)\" \
85            \"SIZE=$(SIZE_FOR_TARGET)\" \
86            \"OBJCOPY=$(OBJCOPY_FOR_TARGET)\" \
87            \"RTEMS_ROOT=$(RTEMS_ROOT)\" \
88            \"RTEMS_HOST=$(RTEMS_HOST)\" \
89            \"PROJECT_HOME=$(PROJECT_ROOT)/$$bsp\" \
90            \"PROJECT_ROOT=$(PROJECT_ROOT)\" \
91            \"RTEMS_USE_OWN_PDIR=$(RTEMS_USE_OWN_PDIR)\" \
92            \"RTEMS_HAS_POSIX_API=$(RTEMS_HAS_POSIX_API)\" \
93            \"RTEMS_HAS_KA9Q=$(RTEMS_HAS_KA9Q)\" \
94            \"RTEMS_HAS_CPLUSPLUS=$(RTEMS_HAS_CPLUSPLUS)\" \
95            \"RTEMS_USE_MACROS=$(RTEMS_USE_MACROS)\" \
96            \"RTEMS_USE_GCC272=$(RTEMS_USE_GCC272)\" \
97            \"RTEMS_LIBC_DIR=$(RTEMS_LIBC_DIR)\" \
98            \"AWK=$(AWK)\" $@" ; \
99            eval $$cmd || $(EXIT_CMD); \
100        fi; done;
101
102clean_modules:
103        rm -f src/Modules/rtems/.moduleavailcache
104        rm -f src/Modules/rtems/.moduleavailcachedir
105
106mlink:
107        test -d make || ln -s $(RTEMS_ROOT)/make make
108
Note: See TracBrowser for help on using the repository browser.