summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-05 15:11:33 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-05 15:11:33 +0000
commit4d11a92f3e90d517e2a58cc01ba77d161a0da9e6 (patch)
treed509df39cfde3decbc6ba722f436731c2e330db2 /c/src/exec/score
parentAdded print of the order in which the directories are preinstalled. (diff)
downloadrtems-4d11a92f3e90d517e2a58cc01ba77d161a0da9e6.tar.bz2
Redid Makefiles to properly do a preinstall. There was remnants of the
old way of setting th cpu family and model string names.
Diffstat (limited to 'c/src/exec/score')
-rw-r--r--c/src/exec/score/cpu/a29k/Makefile.in14
-rw-r--r--c/src/exec/score/cpu/hppa1.1/Makefile.in4
-rw-r--r--c/src/exec/score/cpu/i386/Makefile.in10
-rw-r--r--c/src/exec/score/cpu/i960/Makefile.in11
-rw-r--r--c/src/exec/score/cpu/m68k/Makefile.in2
-rw-r--r--c/src/exec/score/cpu/mips64orion/Makefile.in2
-rw-r--r--c/src/exec/score/cpu/no_cpu/Makefile.in11
-rw-r--r--c/src/exec/score/cpu/powerpc/Makefile.in11
-rw-r--r--c/src/exec/score/cpu/sh/Makefile.in3
-rw-r--r--c/src/exec/score/cpu/sparc/Makefile.in2
-rw-r--r--c/src/exec/score/cpu/unix/Makefile.in12
11 files changed, 20 insertions, 62 deletions
diff --git a/c/src/exec/score/cpu/a29k/Makefile.in b/c/src/exec/score/cpu/a29k/Makefile.in
index 0cb79271d6..f22da60b68 100644
--- a/c/src/exec/score/cpu/a29k/Makefile.in
+++ b/c/src/exec/score/cpu/a29k/Makefile.in
@@ -16,11 +16,11 @@ C_PIECES=cpu rtems
C_FILES=$(C_PIECES:%=%.c)
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
-H_FILES=$(srcdir)/cpu.h $(srcdir)/a29ktypes.h
+H_FILES=$(srcdir)/cpu.h $(srcdir)/a29k.h $(srcdir)/a29ktypes.h
# H_FILES that get installed externally
-# a29k.h is handled separately
-EXTERNAL_H_FILES = $(srcdir)/asm.h $(srcdir)/amd.ah $(srcdir)/pswmacro.ah $(srcdir)/register.ah
+EXTERNAL_H_FILES = $(srcdir)/asm.h $(srcdir)/amd.ah \
+ $(srcdir)/pswmacro.ah $(srcdir)/register.ah
# Assembly source names, if any, go here -- minus the .s
# Normally cpu_asm and rtems are assembly files
@@ -65,19 +65,13 @@ $(ARCH)/rtems-cpu.rel: $(OBJS)
# Install the program(s), appending _g or _p as appropriate.
# for include files, just use $(INSTALL)
-preinstall: $(PROJECT_INCLUDE)/rtems/score/a29k.h \
+preinstall: $(ARCH) \
$(PROJECT_INCLUDE)/rtems/score/targopts.h \
${PROJECT_RELEASE}/lib/bsp_specs
$(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
# we will share the basic cpu file
$(INSTALL) -m 444 ${EXTERNAL_H_FILES} $(PROJECT_INCLUDE)
-$(PROJECT_INCLUDE)/rtems/score/a29k.h: a29k.h
- $(SED) -e 's?REPLACE_THIS_WITH_THE_CPU_MODEL?$(RTEMS_CPU_MODEL)?' \
- -e 's?REPLACE_THIS_WITH_THE_BSP?$(RTEMS_BSP)?' \
- < $< >$(ARCH)/a29k.h.tmp
- $(INSTALL) -m 444 $(ARCH)/a29k.h.tmp $@
-
$(PROJECT_INCLUDE)/rtems/score/targopts.h: $(ARCH)/targopts.h-tmp
$(INSTALL) -m 444 $(ARCH)/targopts.h-tmp $@
diff --git a/c/src/exec/score/cpu/hppa1.1/Makefile.in b/c/src/exec/score/cpu/hppa1.1/Makefile.in
index 964acc8eff..6409a374fa 100644
--- a/c/src/exec/score/cpu/hppa1.1/Makefile.in
+++ b/c/src/exec/score/cpu/hppa1.1/Makefile.in
@@ -62,9 +62,9 @@ $(ARCH)/offsets.h: $(ARCH) cpu.h $(PROJECT_RELEASE)/bin/genoffsets
$(ARCH)/rtems-cpu.rel: $(OBJS)
$(make-rel)
-all: ${ARCH} install-headers $(SRCS) $(ARCH)/offsets.h preinstall $(RELS)
+all: ${ARCH} install-headers preinstall $(RELS)
-preinstall:
+preinstall: $(ARCH) $(SRCS) $(ARCH)/offsets.h
$(INSTALL) -m 444 $(ARCH)/offsets.h $(PROJECT_INCLUDE)/rtems/score
install-headers: $(ARCH) $(PROJECT_INCLUDE)/rtems/score/targopts.h \
diff --git a/c/src/exec/score/cpu/i386/Makefile.in b/c/src/exec/score/cpu/i386/Makefile.in
index d72d6c0cda..af64e214dd 100644
--- a/c/src/exec/score/cpu/i386/Makefile.in
+++ b/c/src/exec/score/cpu/i386/Makefile.in
@@ -15,7 +15,7 @@ C_PIECES=cpu
C_FILES=$(C_PIECES:%=%.c)
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
-H_FILES=$(srcdir)/cpu.h $(srcdir)/i386types.h
+H_FILES=$(srcdir)/cpu.h $(srcdir)/i386.h $(srcdir)/i386types.h
# H_FILES that get installed externally
# i386.h is handled specially
@@ -63,19 +63,13 @@ all: ${ARCH} $(SRCS) preinstall $(OBJS) $(RELS)
# for include files, just use $(INSTALL)
install: all
-preinstall: $(ARCH) $(PROJECT_INCLUDE)/rtems/score/i386.h \
+preinstall: $(ARCH) \
$(PROJECT_INCLUDE)/rtems/score/targopts.h \
${PROJECT_RELEASE}/lib/bsp_specs
$(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
# we will share the basic cpu file
$(INSTALL) -m 444 ${EXTERNAL_H_FILES} $(PROJECT_INCLUDE)
-$(PROJECT_INCLUDE)/rtems/score/i386.h: i386.h
- $(SED) -e 's?REPLACE_THIS_WITH_THE_CPU_MODEL?$(RTEMS_CPU_MODEL)?' \
- -e 's?REPLACE_THIS_WITH_THE_BSP?$(RTEMS_BSP)?' \
- < $< >$(ARCH)/i386.h-tmp
- $(INSTALL) -m 444 $(ARCH)/i386.h-tmp $@
-
$(PROJECT_INCLUDE)/rtems/score/targopts.h: $(ARCH)/targopts.h-tmp
$(INSTALL) -m 444 $(ARCH)/targopts.h-tmp $@
diff --git a/c/src/exec/score/cpu/i960/Makefile.in b/c/src/exec/score/cpu/i960/Makefile.in
index 6d7a120914..641de5b218 100644
--- a/c/src/exec/score/cpu/i960/Makefile.in
+++ b/c/src/exec/score/cpu/i960/Makefile.in
@@ -15,10 +15,9 @@ C_PIECES=cpu
C_FILES=$(C_PIECES:%=%.c)
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
-H_FILES=$(srcdir)/cpu.h $(srcdir)/i960types.h
+H_FILES=$(srcdir)/cpu.h $(srcdir)/i960.h $(srcdir)/i960types.h
# H_FILES that get installed externally
-# i960.h is handled separately
EXTERNAL_H_FILES = $(srcdir)/asm.h
# Assembly source names, if any, go here -- minus the .s
@@ -63,19 +62,13 @@ all: ${ARCH} $(SRCS) preinstall $(OBJS) $(RELS)
# for include files, just use $(INSTALL)
install: all
-preinstall: $(PROJECT_INCLUDE)/rtems/score/i960.h \
+preinstall: $(ARCH) \
$(PROJECT_INCLUDE)/rtems/score/targopts.h \
${PROJECT_RELEASE}/lib/bsp_specs
$(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
# we will share the basic cpu file
$(INSTALL) -m 444 ${EXTERNAL_H_FILES} $(PROJECT_INCLUDE)
-$(PROJECT_INCLUDE)/rtems/score/i960.h: i960.h
- $(SED) -e 's?REPLACE_THIS_WITH_THE_CPU_MODEL?$(RTEMS_CPU_MODEL)?' \
- -e 's?REPLACE_THIS_WITH_THE_BSP?$(RTEMS_BSP)?' \
- < $< >$(ARCH)/i960.h.tmp
- $(INSTALL) -m 444 $(ARCH)/i960.h.tmp $@
-
$(PROJECT_INCLUDE)/rtems/score/targopts.h: $(ARCH)/targopts.h-tmp
$(INSTALL) -m 444 $(ARCH)/targopts.h-tmp $@
diff --git a/c/src/exec/score/cpu/m68k/Makefile.in b/c/src/exec/score/cpu/m68k/Makefile.in
index d4ceea302e..f273d69362 100644
--- a/c/src/exec/score/cpu/m68k/Makefile.in
+++ b/c/src/exec/score/cpu/m68k/Makefile.in
@@ -59,7 +59,7 @@ $(ARCH)/rtems-cpu.rel: $(OBJS)
all: ${ARCH} $(SRCS) preinstall $(OBJS) $(RELS)
-preinstall: $(PROJECT_INCLUDE)/rtems/score/targopts.h \
+preinstall: $(ARCH) $(PROJECT_INCLUDE)/rtems/score/targopts.h \
${PROJECT_RELEASE}/lib/bsp_specs
$(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
# we will share the basic cpu file
diff --git a/c/src/exec/score/cpu/mips64orion/Makefile.in b/c/src/exec/score/cpu/mips64orion/Makefile.in
index a8135c3bc6..21985cd257 100644
--- a/c/src/exec/score/cpu/mips64orion/Makefile.in
+++ b/c/src/exec/score/cpu/mips64orion/Makefile.in
@@ -65,7 +65,7 @@ $(ARCH)/rtems-cpu.rel: $(OBJS)
# Install the program(s), appending _g or _p as appropriate.
# for include files, just use $(INSTALL)
-preinstall: $(PROJECT_INCLUDE)/rtems/score/targopts.h \
+preinstall: $(ARCH) $(PROJECT_INCLUDE)/rtems/score/targopts.h \
${PROJECT_RELEASE}/lib/bsp_specs
$(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
# we will share the basic cpu file
diff --git a/c/src/exec/score/cpu/no_cpu/Makefile.in b/c/src/exec/score/cpu/no_cpu/Makefile.in
index 3c6f5a4044..8277c5e5b7 100644
--- a/c/src/exec/score/cpu/no_cpu/Makefile.in
+++ b/c/src/exec/score/cpu/no_cpu/Makefile.in
@@ -16,10 +16,9 @@ C_PIECES=cpu cpu_asm rtems
C_FILES=$(C_PIECES:%=%.c)
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
-H_FILES=$(srcdir)/cpu.h $(srcdir)/no_cputypes.h
+H_FILES=$(srcdir)/cpu.h $(srcdir)/no_cpu.h $(srcdir)/no_cputypes.h
# H_FILES that get installed externally
-# no_cpu.h is handled separately
EXTERNAL_H_FILES = $(srcdir)/asm.h
# Assembly source names, if any, go here -- minus the .s
@@ -67,18 +66,12 @@ install: all
# Real ports using the gnu tools will need to have bsp_specs!!!
# ${PROJECT_RELEASE}/lib/bsp_specs
-preinstall: $(PROJECT_INCLUDE)/rtems/score/no_cpu.h \
+preinstall: $(ARCH) \
$(PROJECT_INCLUDE)/rtems/score/targopts.h
$(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
# we will share the basic cpu file
$(INSTALL) -m 444 ${EXTERNAL_H_FILES} $(PROJECT_INCLUDE)
-$(PROJECT_INCLUDE)/rtems/score/no_cpu.h: $(srcdir)/no_cpu.h
- $(SED) -e 's?REPLACE_THIS_WITH_THE_CPU_MODEL?$(RTEMS_CPU_MODEL)?' \
- -e 's?REPLACE_THIS_WITH_THE_BSP?$(RTEMS_BSP)?' \
- <$(srcdir)/no_cpu.h >$(ARCH)/no_cpu.h.tmp
- $(INSTALL) -m 444 $(ARCH)/no_cpu.h.tmp $@
-
$(PROJECT_INCLUDE)/rtems/score/targopts.h: $(ARCH)/targopts.h-tmp
$(INSTALL) -m 444 $(ARCH)/targopts.h-tmp $@
diff --git a/c/src/exec/score/cpu/powerpc/Makefile.in b/c/src/exec/score/cpu/powerpc/Makefile.in
index 48c991b2f7..f5f7ca5b92 100644
--- a/c/src/exec/score/cpu/powerpc/Makefile.in
+++ b/c/src/exec/score/cpu/powerpc/Makefile.in
@@ -16,10 +16,9 @@ C_PIECES=cpu
C_FILES=$(C_PIECES:%=%.c)
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
-H_FILES=$(srcdir)/cpu.h $(srcdir)/ppctypes.h
+H_FILES=$(srcdir)/cpu.h $(srcdir)/ppc.h $(srcdir)/ppctypes.h
# H_FILES that get installed externally
-# ppc.h is handled separately
EXTERNAL_H_FILES = $(srcdir)/asm.h
# Assembly source names, if any, go here -- minus the .s
@@ -67,7 +66,7 @@ $(ARCH)/cpu_asm.o: irq_stub.s
# for include files, just use $(INSTALL)
install: all
-preinstall: $(PROJECT_INCLUDE)/rtems/score/ppc.h \
+preinstall: $(ARCH) \
$(PROJECT_INCLUDE)/rtems/score/targopts.h \
${PROJECT_RELEASE}/lib/bsp_specs
$(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
@@ -76,12 +75,6 @@ preinstall: $(PROJECT_INCLUDE)/rtems/score/ppc.h \
# make a link in case we are not compiling in the source directory
test -f irq_stub.s || $(LN) -s $(srcdir)/irq_stub.s irq_stub.s
-$(PROJECT_INCLUDE)/rtems/score/ppc.h: ppc.h
- $(SED) -e 's?REPLACE_THIS_WITH_THE_CPU_MODEL?$(RTEMS_CPU_MODEL)?' \
- -e 's?REPLACE_THIS_WITH_THE_BSP?$(RTEMS_BSP)?' \
- < $< >$(ARCH)/ppc.h.tmp
- $(INSTALL) -m 444 $(ARCH)/ppc.h.tmp $@
-
$(PROJECT_INCLUDE)/rtems/score/targopts.h: $(ARCH)/targopts.h-tmp
$(INSTALL) -m 444 $(ARCH)/targopts.h-tmp $@
diff --git a/c/src/exec/score/cpu/sh/Makefile.in b/c/src/exec/score/cpu/sh/Makefile.in
index a43eb93e48..54e1ed15ec 100644
--- a/c/src/exec/score/cpu/sh/Makefile.in
+++ b/c/src/exec/score/cpu/sh/Makefile.in
@@ -24,7 +24,6 @@ H_FILES= \
$(srcdir)/iosh7030.h
# H_FILES that get installed externally
-# sh.h is handled separately
EXTERNAL_H_FILES = \
$(srcdir)/asm.h
@@ -71,7 +70,7 @@ $(ARCH)/rtems-cpu.rel: $(OBJS)
# for include files, just use $(INSTALL)
install: all
-preinstall: $(PROJECT_INCLUDE)/rtems/score/targopts.h \
+preinstall: $(ARCH) $(PROJECT_INCLUDE)/rtems/score/targopts.h \
${PROJECT_RELEASE}/lib/bsp_specs
$(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
# we will share the basic cpu file
diff --git a/c/src/exec/score/cpu/sparc/Makefile.in b/c/src/exec/score/cpu/sparc/Makefile.in
index 67cb44ca7b..565128f2c3 100644
--- a/c/src/exec/score/cpu/sparc/Makefile.in
+++ b/c/src/exec/score/cpu/sparc/Makefile.in
@@ -58,7 +58,7 @@ $(ARCH)/rtems-cpu.rel: $(OBJS)
all: ${ARCH} $(SRCS) preinstall $(OBJS) $(RELS)
-preinstall: $(PROJECT_INCLUDE)/rtems/score/targopts.h \
+preinstall: $(ARCH) $(PROJECT_INCLUDE)/rtems/score/targopts.h \
${PROJECT_RELEASE}/lib/bsp_specs
$(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
# we will share the basic cpu file
diff --git a/c/src/exec/score/cpu/unix/Makefile.in b/c/src/exec/score/cpu/unix/Makefile.in
index c327731122..0589977f7f 100644
--- a/c/src/exec/score/cpu/unix/Makefile.in
+++ b/c/src/exec/score/cpu/unix/Makefile.in
@@ -15,7 +15,7 @@ C_PIECES=cpu
C_FILES=$(C_PIECES:%=%.c)
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
-H_FILES=$(srcdir)/cpu.h $(srcdir)/unixtypes.h
+H_FILES=$(srcdir)/cpu.h $(srcdir)/unix.h $(srcdir)/unixtypes.h
# Assembly source names, if any, go here -- minus the .S
S_PIECES=
@@ -66,20 +66,12 @@ install: all
# Real ports using the gnu tools will need to have bsp_specs!!!
# ${PROJECT_RELEASE}/lib/bsp_specs
-preinstall: $(PROJECT_INCLUDE)/rtems/score/unix.h $(ARCH)/unixsize.h \
+preinstall: $(ARCH) $(ARCH)/unixsize.h \
$(PROJECT_INCLUDE)/rtems/score/targopts.h \
$(PROJECT_RELEASE)/lib/bsp_specs
$(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
$(INSTALL) -m 444 ${ARCH}/unixsize.h $(PROJECT_INCLUDE)/rtems/score
-$(PROJECT_INCLUDE)/rtems/score/unix.h: unix.h
- $(SED) -e 's?REPLACE_THIS_WITH_THE_CPU_MODEL?$(RTEMS_CPU_MODEL)?' \
- -e 's?REPLACE_THIS_WITH_THE_BSP?$(RTEMS_BSP)?' \
- -e 's?REPLACE_THIS_WITH_THE_CPU_FAMILY?$(RTEMS_CPU_FAMILY)?' \
- -e 's?REPLACE_THIS_WITH_THE_UNIX_FLAVOR?$(RTEMS_UNIX_FLAVOR)?' \
- <$(srcdir)/unix.h >$(ARCH)/unix.h.tmp
- $(INSTALL) -m 444 $(ARCH)/unix.h.tmp $@
-
$(PROJECT_INCLUDE)/rtems/score/targopts.h: $(ARCH)/targopts.h-tmp
$(INSTALL) -m 444 $(ARCH)/targopts.h-tmp $@