source: rtems/Makefile.in @ f5bd03c

4.104.114.84.95
Last change on this file since f5bd03c was f5bd03c, checked in by Joel Sherrill <joel.sherrill@…>, on May 23, 1997 at 9:44:19 PM

KA9Q stack removed prior to testing for 4.0.0 public release.

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