Skip to content
Snippets Groups Projects
Commit 6a8b8615 authored by Doug Evans's avatar Doug Evans
Browse files

* common/Make-common.in (CPU_DIR): Define.

* iq2000/Makefile.in (stamp-arch): Use $(CPU_DIR) instead of $(CGEN_CPU_DIR).
(stamp-cpu): Ditto.
* m32r/Makefile.in (stamp-arch): Use $(CPU_DIR) instead of $(CGEN_CPU_DIR).
(stamp-cpu, stamp-xcpu, stamp-2cpu): Ditto.
parent 5a12aa1e
No related branches found
No related tags found
No related merge requests found
2009-07-07 Doug Evans <dje@sebabeach.org>
* Make-common.in (CPU_DIR): Define.
2009-07-06 Doug Evans <dje@sebabeach.org> 2009-07-06 Doug Evans <dje@sebabeach.org>
* Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
......
...@@ -694,6 +694,9 @@ CGEN = "`if [ -f ../../guile/libguile/guile ]; then echo ../../guile/libguile/gu ...@@ -694,6 +694,9 @@ CGEN = "`if [ -f ../../guile/libguile/guile ]; then echo ../../guile/libguile/gu
CGENFLAGS = -v CGENFLAGS = -v
CGEN_CPU_DIR = $(CGENDIR)/cpu CGEN_CPU_DIR = $(CGENDIR)/cpu
# Most ports use the files here instead of cgen/cpu.
CPU_DIR = $(srcroot)/cpu
CGEN_READ_SCM = $(CGENDIR)/sim.scm CGEN_READ_SCM = $(CGENDIR)/sim.scm
CGEN_ARCH_SCM = $(CGENDIR)/sim-arch.scm CGEN_ARCH_SCM = $(CGENDIR)/sim-arch.scm
CGEN_CPU_SCM = $(CGENDIR)/sim-cpu.scm $(CGENDIR)/sim-model.scm CGEN_CPU_SCM = $(CGENDIR)/sim-cpu.scm $(CGENDIR)/sim-model.scm
......
2009-07-12 Doug Evans <dje@sebabeach.org>
* Makefile.in (stamp-arch): Use $(CPU_DIR) instead of $(CGEN_CPU_DIR).
(stamp-cpu): Ditto.
2009-07-07 Doug Evans <dje@sebabeach.org> 2009-07-07 Doug Evans <dje@sebabeach.org>
* Makefile.in (stamp-arch): Pass archfile to cgen-arch. * Makefile.in (stamp-arch): Pass archfile to cgen-arch.
......
...@@ -92,18 +92,18 @@ CGEN_MAINT = ; @true ...@@ -92,18 +92,18 @@ CGEN_MAINT = ; @true
# The following line is commented in or out depending upon --enable-cgen-maint. # The following line is commented in or out depending upon --enable-cgen-maint.
@CGEN_MAINT@CGEN_MAINT = @CGEN_MAINT@CGEN_MAINT =
stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(CGEN_CPU_DIR)/iq2000.cpu Makefile stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(CPU_DIR)/iq2000.cpu Makefile
$(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=iq2000 \ $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=iq2000 \
archfile=$(CGEN_CPU_DIR)/iq2000.cpu \ archfile=$(CPU_DIR)/iq2000.cpu \
FLAGS="with-scache with-profile=fn" FLAGS="with-scache with-profile=fn"
touch stamp-arch touch stamp-arch
arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
@true @true
stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CGEN_CPU_DIR)/iq2000.cpu Makefile stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/iq2000.cpu Makefile
$(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \ $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
cpu=iq2000bf mach=iq2000 \ cpu=iq2000bf mach=iq2000 \
archfile=$(CGEN_CPU_DIR)/iq2000.cpu \ archfile=$(CPU_DIR)/iq2000.cpu \
FLAGS="with-scache with-profile=fn" \ FLAGS="with-scache with-profile=fn" \
EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
touch stamp-cpu touch stamp-cpu
......
2009-07-12 Doug Evans <dje@sebabeach.org>
* Makefile.in (stamp-arch): Use $(CPU_DIR) instead of $(CGEN_CPU_DIR).
(stamp-cpu, stamp-xcpu, stamp-2cpu): Ditto.
2009-06-20 Doug Evans <dje@sebabeach.org> 2009-06-20 Doug Evans <dje@sebabeach.org>
* mloop.in: Add missing # comment marker. * mloop.in: Add missing # comment marker.
......
...@@ -156,35 +156,35 @@ CGEN_MAINT = ; @true ...@@ -156,35 +156,35 @@ CGEN_MAINT = ; @true
# The following line is commented in or out depending upon --enable-cgen-maint. # The following line is commented in or out depending upon --enable-cgen-maint.
@CGEN_MAINT@CGEN_MAINT = @CGEN_MAINT@CGEN_MAINT =
stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(CGEN_CPU_DIR)/m32r.cpu stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(CPU_DIR)/m32r.cpu
$(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \ $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \
archfile=$(CGEN_CPU_DIR)/m32r.cpu \ archfile=$(CPU_DIR)/m32r.cpu \
FLAGS="with-scache with-profile=fn" FLAGS="with-scache with-profile=fn"
touch stamp-arch touch stamp-arch
arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CGEN_CPU_DIR)/m32r.cpu stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/m32r.cpu
$(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \ $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
cpu=m32rbf mach=m32r SUFFIX= \ cpu=m32rbf mach=m32r SUFFIX= \
archfile=$(CGEN_CPU_DIR)/m32r.cpu \ archfile=$(CPU_DIR)/m32r.cpu \
FLAGS="with-scache with-profile=fn" \ FLAGS="with-scache with-profile=fn" \
EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
touch stamp-cpu touch stamp-cpu
cpu.h sem.c sem-switch.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu cpu.h sem.c sem-switch.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu
stamp-xcpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CGEN_CPU_DIR)/m32r.cpu stamp-xcpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/m32r.cpu
$(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \ $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
cpu=m32rxf mach=m32rx SUFFIX=x \ cpu=m32rxf mach=m32rx SUFFIX=x \
archfile=$(CGEN_CPU_DIR)/m32r.cpu \ archfile=$(CPU_DIR)/m32r.cpu \
FLAGS="with-scache with-profile=fn" \ FLAGS="with-scache with-profile=fn" \
EXTRAFILES="$(CGEN_CPU_SEMSW)" EXTRAFILES="$(CGEN_CPU_SEMSW)"
touch stamp-xcpu touch stamp-xcpu
cpux.h semx-switch.c modelx.c decodex.c decodex.h: $(CGEN_MAINT) stamp-xcpu cpux.h semx-switch.c modelx.c decodex.c decodex.h: $(CGEN_MAINT) stamp-xcpu
stamp-2cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CGEN_CPU_DIR)/m32r.cpu stamp-2cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/m32r.cpu
$(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \ $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
cpu=m32r2f mach=m32r2 SUFFIX=2 \ cpu=m32r2f mach=m32r2 SUFFIX=2 \
archfile=$(CGEN_CPU_DIR)/m32r.cpu \ archfile=$(CPU_DIR)/m32r.cpu \
FLAGS="with-scache with-profile=fn" \ FLAGS="with-scache with-profile=fn" \
EXTRAFILES="$(CGEN_CPU_SEMSW)" EXTRAFILES="$(CGEN_CPU_SEMSW)"
touch stamp-2cpu touch stamp-2cpu
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment