source: rtems/make/Makefile.in @ 419fdf1

4.104.114.84.95
Last change on this file since 419fdf1 was bffb938, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/98 at 19:30:30

Removed PROJECT_HOME and CONFIG_DIR variables.

  • Property mode set to 100644
File size: 2.3 KB
Line 
1#
2#  $Id$
3#
4# Not strictly necessary to pull in this stuff.  But it helps with
5#  working with the templates and poking around.
6#
7
8@SET_MAKE@
9srcdir = @srcdir@
10top_srcdir = @top_srcdir@
11VPATH = @srcdir@
12RTEMS_ROOT = @RTEMS_ROOT@
13PROJECT_ROOT = @PROJECT_ROOT@
14RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
15
16include $(RTEMS_CUSTOM)
17include $(RTEMS_ROOT)/make/leaf.cfg
18
19CLEAN_ADDITIONS +=
20CLOBBER_ADDITIONS +=
21
22# NOTE: No need to prepend $(srcdir) to file names,
23#       VPATH handles the paths for us.
24# NOTE: Only the files really need get installed.
25
26GENERIC_FILES := host.cfg target.cfg
27
28MAKEFILES := README \
29        directory.cfg leaf.cfg \
30        lib.cfg main.cfg
31
32# NOTE: Use the wildcard rule to install all custom files
33# CUSTOM_FILES := $(wildcard $(srcdir)/custom/*.cfg)
34# NOTE: This should be sufficient, but may fail for some BSPS:
35#       Get all custom files for the BSP family, they may depend on eachother
36CUSTOM_FILES := custom/default.cfg $(patsubst %,custom/%.cfg,@RTEMS_BSP_LIST@)
37
38# NOTE: Use the wildcard rule to install all compiler files
39# COMPILER_FILES := $(wildcard $(srcdir)/compilers/*.cfg)
40COMPILER_FILES := $(CONFIG.$(TARGET_ARCH).CC) $(CONFIG.$(HOST_ARCH).CC)
41
42# NOTE: Don't use a wildcard rule here, otherwise Templates/Makefile.inc
43#       will be installed, too
44TEMPLATE_FILES := \
45        Templates/Makefile.dir \
46        Templates/Makefile.leaf \
47        Templates/Makefile.lib
48
49get: retrieve
50
51all:
52
53$(prefix)/rtems:
54        -$(MKDIR) $(prefix)
55        -$(MKDIR) $(prefix)/rtems
56
57install: install_files $(prefix)/rtems
58
59install_files:: $(GENERIC_FILES) $(MAKEFILES)
60        @test -d $(prefix)/rtems/make || \
61                $(MKDIR) $(prefix)/rtems/make
62        for f in $^; do \
63        $(INSTALL) -m 644 "$$f" $(prefix)/rtems/make ;\
64        done
65
66install_files:: $(COMPILER_FILES)
67        @test -d $(prefix)/rtems/make/compilers || \
68                $(MKDIR) $(prefix)/rtems/make/compilers
69        for f in $^; do \
70        $(INSTALL) -m 644 "$$f" $(prefix)/rtems/make/compilers; \
71        done
72
73install_files:: $(CUSTOM_FILES)
74        @test -d $(prefix)/rtems/make/custom || \
75                $(MKDIR) $(prefix)/rtems/make/custom
76        for f in $^; do \
77        $(INSTALL) -m 644 "$$f" $(prefix)/rtems/make/custom; \
78        done
79
80install_files:: $(TEMPLATE_FILES)
81        @test -d $(prefix)/rtems/make/Templates || \
82                $(MKDIR) $(prefix)/rtems/make/Templates
83        for f in $^; do \
84        $(INSTALL) -m 644 "$$f" $(prefix)/rtems/make/Templates; \
85        done
Note: See TracBrowser for help on using the repository browser.