source: rtems/Makefile.in @ 1f0f3e35

4.104.114.84.95
Last change on this file since 1f0f3e35 was 1f0f3e35, checked in by Joel Sherrill <joel.sherrill@…>, on May 27, 1997 at 11:39:29 PM

added ka9q stack

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