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) |
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 Unix/config.sub Unix/config.guess \ |
63 |
< |
Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver'; \ |
63 |
> |
Unix/keycodes Unix/tunconfig Unix/clip_unix.cpp \ |
64 |
> |
Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver \ |
65 |
> |
Unix/Darwin/lowmem.c Unix/Darwin/pagezero.c Unix/Darwin/testlmem.sh \ |
66 |
> |
dummy/audio_dummy.cpp dummy/clip_dummy.cpp dummy/serial_dummy.cpp \ |
67 |
> |
dummy/prefs_editor_dummy.cpp dummy/scsi_dummy.cpp SDL \ |
68 |
> |
MacOSX/sys_darwin.cpp MacOSX/clip_macosx.cpp \ |
69 |
> |
MacOSX/macos_util_macosx.h MacOSX/extfs_macosx.h \ |
70 |
> |
MacOSX/extfs_macosx.mm Windows/clip_windows.cpp \ |
71 |
> |
Windows/cd_defs.h Windows/cdenable Windows/extfs_windows.cpp \ |
72 |
> |
Windows/posix_emu.cpp Windows/posix_emu.h Windows/sys_windows.cpp \ |
73 |
> |
Windows/timer_windows.cpp Windows/util_windows.cpp \ |
74 |
> |
Windows/util_windows.h Windows/xpram_windows.cpp'; \ |
75 |
|
PREFIX="`pwd`/"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \ |
76 |
|
for i in $$list; do \ |
77 |
|
echo $$i; \ |
78 |
< |
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`; \ |
78 |
> |
ln -sf "$${PREFIX}$(B2_TOPDIR)/src/$$i" src/$$i; \ |
79 |
|
done; |