summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-17 23:43:32 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-17 23:43:32 +0000
commitdfe7746ed9a4f6aa1f5d896afd90a6a15e4d4313 (patch)
tree3b804c10e2e6c43db99a5f5af4d22649a0617eb5 /c/src
parentPatch from Emmanuel Raguet <raguet@crf.canon.fr> to add information (diff)
downloadrtems-dfe7746ed9a4f6aa1f5d896afd90a6a15e4d4313.tar.bz2
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Diffstat (limited to 'c/src')
-rw-r--r--c/src/exec/score/include/rtems/score/Makefile.in18
-rw-r--r--c/src/make/host.cfg.in2
2 files changed, 14 insertions, 6 deletions
diff --git a/c/src/exec/score/include/rtems/score/Makefile.in b/c/src/exec/score/include/rtems/score/Makefile.in
index 4ebe840a62..6aac86d9be 100644
--- a/c/src/exec/score/include/rtems/score/Makefile.in
+++ b/c/src/exec/score/include/rtems/score/Makefile.in
@@ -19,9 +19,15 @@ H_PIECES= address apiext bitfield chain context copyrt coremsg coremutex \
coresem heap interr isr object \
priority stack states sysstate thread threadq \
tod tqdata userext watchdog wkspace
-H_FILES=$(H_PIECES:%=$(srcdir)/%.h) targopts.h
-SRCS=$(H_FILES)
+# Use this if compilation in location will be supported
+# H_FILES=$(H_PIECES:%=$(srcdir)/%.h) targopts.h
+
+# FIXME: Work-around
+H_FILES=$(H_PIECES:%=$(srcdir)/%.h)
+TARGOPTS=$(PROJECT_INCLUDE)/rtems/score/targopts.h
+
+SRCS=$(H_FILES) $(TARGOPTS)
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
include $(RTEMS_ROOT)/make/leaf.cfg
@@ -33,7 +39,7 @@ include $(RTEMS_ROOT)/make/leaf.cfg
# 'make clobber' already includes 'make clean'
#
-CLEAN_ADDITIONS += targopts.h
+CLEAN_ADDITIONS += $(TARGOPTS)
CLOBBER_ADDITIONS +=
# Until RTEMS_CPU is removed from all the make configuration files,
@@ -46,7 +52,7 @@ CLOBBER_ADDITIONS +=
RTEMS_CPU_DEFINED=$(subst .,_,$(RTEMS_CPU))
# make the target dependent options file
-targopts.h:
+$(TARGOPTS):
@echo "/* target board dependent options file */" >$@
@echo "/* automatically generated -- DO NOT EDIT!! */" >>$@
@echo >>$@
@@ -86,7 +92,7 @@ ifeq ($(RTEMS_USE_NEWLIB),yes)
endif
@echo >>$@
@echo "#endif" >>$@
-
+ @chmod 755 $@
all: $(SRCS)
- $(INSTALL_CHANGE) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
+ $(INSTALL_DATA) ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
diff --git a/c/src/make/host.cfg.in b/c/src/make/host.cfg.in
index 6e54bcb05a..4814b2169d 100644
--- a/c/src/make/host.cfg.in
+++ b/c/src/make/host.cfg.in
@@ -75,3 +75,5 @@ INSTDATAFLAGS = -m 0644
INSTLIBFLAGS = -m 0644
INSTDIRFLAGS = -m 0755 -d
INSTINCFLAGS = -m 0644
+
+INSTALL_DATA = $(INSTALL) $(INSTDATAFLAGS)