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) |
59 |
|
BeOS/serial_beos.cpp BeOS/sys_beos.cpp BeOS/timer_beos.cpp \ |
60 |
|
BeOS/xpram_beos.cpp BeOS/SheepDriver BeOS/SheepNet \ |
61 |
|
Unix/audio_oss_esd.cpp Unix/extfs_unix.cpp Unix/serial_unix.cpp \ |
62 |
+ |
Unix/sshpty.h Unix/sshpty.c Unix/strlcpy.h Unix/strlcpy.c \ |
63 |
|
Unix/sys_unix.cpp Unix/timer_unix.cpp Unix/xpram_unix.cpp \ |
64 |
+ |
Unix/sigsegv.h Unix/sigsegv.cpp Unix/vm_alloc.h Unix/vm_alloc.cpp \ |
65 |
+ |
Unix/posix_sem.cpp Unix/video_vosf.h Unix/video_blit.h \ |
66 |
+ |
Unix/video_blit.cpp Unix/config.sub Unix/config.guess \ |
67 |
|
Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver'; \ |
68 |
|
PREFIX="`pwd`/"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \ |
69 |
|
for i in $$list; do \ |
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; |