14 |
|
# Where Basilisk II directory can be found |
15 |
|
B2_TOPDIR := ../BasiliskII |
16 |
|
|
17 |
+ |
# Where Kheperix directory can be found |
18 |
+ |
KPX_TOPDIR := ../kheperix |
19 |
+ |
|
20 |
|
default: help |
21 |
|
|
22 |
|
help: |
24 |
|
@echo "The following targets are available:" |
25 |
|
@echo " tarball source tarball ($(SRCARCHIVE))" |
26 |
|
@echo " links create links to Basilisk II sources" |
27 |
+ |
@echo " kpx_cpu synchronize with Kheperix CPU emulator" |
28 |
|
|
29 |
|
clean: |
30 |
|
-rm -f $(SRCARCHIVE) |
70 |
|
echo $$i; \ |
71 |
|
ln -sf $${PREFIX}$(B2_TOPDIR)/src/$$i src/$$i; \ |
72 |
|
done; |
73 |
+ |
|
74 |
+ |
# |
75 |
+ |
# Synchronize with Kheperix CPU emulator" |
76 |
+ |
# |
77 |
+ |
kpx_cpu: |
78 |
+ |
@list='include/basic-blockinfo.hpp \ |
79 |
+ |
include/basic-cpu.hpp \ |
80 |
+ |
include/basic-plugin.hpp \ |
81 |
+ |
include/task-plugin.hpp \ |
82 |
+ |
include/block-alloc.hpp \ |
83 |
+ |
src/cpu/block-cache.hpp \ |
84 |
+ |
src/cpu/vm.hpp \ |
85 |
+ |
src/cpu/ppc/ppc-cpu.hpp \ |
86 |
+ |
src/cpu/ppc/ppc-cpu.cpp \ |
87 |
+ |
src/cpu/ppc/ppc-decode.cpp \ |
88 |
+ |
src/cpu/ppc/ppc-execute.cpp \ |
89 |
+ |
src/cpu/ppc/genexec.pl \ |
90 |
+ |
src/cpu/ppc/ppc-bitfields.hpp \ |
91 |
+ |
src/cpu/ppc/ppc-blockinfo.hpp \ |
92 |
+ |
src/cpu/ppc/ppc-config.hpp \ |
93 |
+ |
src/cpu/ppc/ppc-operands.hpp \ |
94 |
+ |
src/cpu/ppc/ppc-operations.hpp \ |
95 |
+ |
src/cpu/ppc/ppc-registers.hpp \ |
96 |
+ |
src/test/test-powerpc.cpp'; \ |
97 |
+ |
for i in $$list; do \ |
98 |
+ |
echo $$i; \ |
99 |
+ |
mkdir -p src/kpx_cpu/`dirname $$i`; \ |
100 |
+ |
cp -f $(KPX_TOPDIR)/$$i src/kpx_cpu/$$i; \ |
101 |
+ |
/bin/true ln -sf $$i src/kpx_cpu/`basename $$i`; \ |
102 |
+ |
done; |