source: rtems/Makefile.in @ 91333c2

4.104.114.84.9
Last change on this file since 91333c2 was 91333c2, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 31, 1997 at 10:04:17 PM

Merged very large and much appreciated patch from Chris Johns
<cjohns@…>. This patch includes the ods68302 bsp,
the RTEMS++ class library, and the rtems++ test.

  • Property mode set to 100644
File size: 2.9 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 $(TARGET_VARIANTS:%=%_install) $(TARGET_VARIANTS:%=%_all) \
60clean_wrapup distclean clean_dirs clean_tools install tests clean depend
61
62.PHONY: clean_modules mlink
63
64EXIT_CMD = exit 1
65
66# Don't pass flags from previous make - especially NOT CFLAGS
67override MAKEFLAGS=
68
69$(MTARGETS): mlink
70        BASEDIR=`pwd`; \
71        for bsp in $(RTEMS_BSP) xxx; \
72        do if [ $$bsp != xxx ] ; then  \
73            cd $$BASEDIR; \
74            cmd="cd c; $(MAKE) RTEMS_BSP=$$bsp $(FLAGS_TO_PASS) \
75            RTEMS_CUSTOM=$(RTEMS_ROOT)/make/custom/$$bsp.cfg \
76            INSTALL=$(PROJECT_ROOT)/$$bsp/build-tools/install-if-change \
77            \"CC=$(CC_FOR_TARGET)\" \
78            \"XCFLAGS=$(CFLAGS_FOR_TARGET)\" \
79            \"CC_FOR_BUILD=$(CC_FOR_BUILD)\" \
80            \"AS=$(AS_FOR_TARGET)\" \
81            \"LD=$(LD_FOR_TARGET)\" \
82            \"NM=$(NM_FOR_TARGET)\" \
83            \"AR=$(AR_FOR_TARGET)\" \
84            \"SIZE=$(SIZE_FOR_TARGET)\" \
85            \"OBJCOPY=$(OBJCOPY_FOR_TARGET)\" \
86            \"RTEMS_ROOT=$(RTEMS_ROOT)\" \
87            \"RTEMS_HOST=$(RTEMS_HOST)\" \
88            \"PROJECT_HOME=$(PROJECT_ROOT)/$$bsp\" \
89            \"PROJECT_ROOT=$(PROJECT_ROOT)\" \
90            \"RTEMS_USE_OWN_PDIR=$(RTEMS_USE_OWN_PDIR)\" \
91            \"RTEMS_HAS_POSIX_API=$(RTEMS_HAS_POSIX_API)\" \
92            \"RTEMS_HAS_KA9Q=$(RTEMS_HAS_KA9Q)\" \
93            \"RTEMS_HAS_CPLUSPLUS=$(RTEMS_HAS_CPLUSPLUS)\" \
94            \"RTEMS_USE_MACROS=$(RTEMS_USE_MACROS)\" \
95            \"RTEMS_USE_GCC272=$(RTEMS_USE_GCC272)\" \
96            \"RTEMS_LIBC_DIR=$(RTEMS_LIBC_DIR)\" \
97            \"AWK=$(AWK)\" $@" ; \
98            eval $$cmd || $(EXIT_CMD); \
99        fi; done;
100
101clean_modules:
102        rm -f src/Modules/rtems/.moduleavailcache
103        rm -f src/Modules/rtems/.moduleavailcachedir
104
105mlink:
106        test -d make || ln -s $(RTEMS_ROOT)/make make
107
Note: See TracBrowser for help on using the repository browser.