summaryrefslogtreecommitdiffstats
path: root/c/Makefile.in
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-18 18:03:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-18 18:03:38 +0000
commit38840f7beb1c12ce8e0805e31de39950a7c41612 (patch)
tree71322d6a1b282c6020e5cd3917f3315e07e5e102 /c/Makefile.in
parentAdded rejected patch from automake VI from Ralf Corsepius. (diff)
downloadrtems-38840f7beb1c12ce8e0805e31de39950a7c41612.tar.bz2
Part of the automake VI patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
> 3) rtems-rc-19990131-2.diff > > This patch removes generating bsp_specs from leaf.cfg and generates > bsp_specs from inside of c/Makefile instead. > > The motivation behind this patch is to avoid "polluting" Makefiles by > unneccessary rules from included Makefile-fragments (*.cfg-files) and > try to handle files by explicit rules in Makefiles instead (FYI: > automake-1.4 physically includes Makefile fragments at the time > automake is run, not at the time make is run as RTEMS Makefile.ins do > now) > > Nevertheless, this patch is rather uncritical, almost cosmetical - If > you don't like it, then dump it ;-, however I doubt that subsequent > patches will apply then ;-.
Diffstat (limited to 'c/Makefile.in')
-rw-r--r--c/Makefile.in15
1 files changed, 14 insertions, 1 deletions
diff --git a/c/Makefile.in b/c/Makefile.in
index 0e13451cce..86224be989 100644
--- a/c/Makefile.in
+++ b/c/Makefile.in
@@ -64,6 +64,18 @@ CREATE_DIRS = \
BUILD_DIRS = ${CREATE_DIRS:%=$(PROJECT_ROOT)/$(RTEMS_BSP)/%}
+# bsp_specs should be installed by a bsp-specific configure script
+BSP_SPECS = $(PROJECT_RELEASE)/lib/bsp_specs
+ifeq ($(RTEMS_BSP),bare)
+BSP_SPECS_DIR = $(RTEMS_ROOT)/c/src/lib/libbsp/$(RTEMS_BSP_FAMILY)
+else
+BSP_SPECS_DIR = $(RTEMS_ROOT)/c/src/lib/libbsp/$(RTEMS_CPU)/$(RTEMS_BSP_FAMILY)
+endif
+
+$(BSP_SPECS): $(BSP_SPECS_DIR)/bsp_specs
+ cp $< $@
+ chmod 444 $@
+
# Make all/install must include 'env'
# if something is added to TARGET_VARIANTS, then account for it here
make_src_makefiles: Makefile.in Makefile
@@ -145,4 +157,5 @@ debug_tests: debug
profile_tests: profile
cd src/tests; $(MAKE) profile
-env: $(SRCS) dirs
+env: $(SRCS) dirs $(BSP_SPECS)
+