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 |
– |
|
17 |
|
default: help |
18 |
|
|
19 |
|
help: |
21 |
|
@echo "The following targets are available:" |
22 |
|
@echo " tarball source tarball ($(SRCARCHIVE))" |
23 |
|
@echo " links create links to Basilisk II sources" |
27 |
– |
@echo " kpx_cpu synchronize with Kheperix CPU emulator" |
24 |
|
|
25 |
|
clean: |
26 |
|
-rm -f $(SRCARCHIVE) |
59 |
|
Unix/sys_unix.cpp Unix/timer_unix.cpp Unix/xpram_unix.cpp \ |
60 |
|
Unix/sigsegv.h Unix/sigsegv.cpp Unix/vm_alloc.h Unix/vm_alloc.cpp \ |
61 |
|
Unix/posix_sem.cpp Unix/video_vosf.h Unix/video_blit.h \ |
62 |
< |
Unix/video_blit.cpp \ |
63 |
< |
Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver'; \ |
62 |
> |
Unix/video_blit.cpp Unix/config.sub Unix/config.guess \ |
63 |
> |
Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver\ |
64 |
> |
Unix/Darwin/lowmem.c Unix/Darwin/pagezero.c \ |
65 |
> |
Unix/Darwin/testlmem.sh dummy/audio_dummy.cpp \ |
66 |
> |
dummy/prefs_editor_dummy.cpp dummy/scsi_dummy.cpp'; \ |
67 |
|
PREFIX="`pwd`/"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \ |
68 |
|
for i in $$list; do \ |
69 |
|
echo $$i; \ |
70 |
|
ln -sf $${PREFIX}$(B2_TOPDIR)/src/$$i src/$$i; \ |
71 |
|
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; |