2002-02-04 16:58:13 +00:00
|
|
|
# Makefile for creating SheepShaver distributions
|
|
|
|
# Written in 1999 by Christian Bauer <Christian.Bauer@uni-mainz.de>
|
|
|
|
|
|
|
|
VERSION := 2
|
|
|
|
RELEASE := 2
|
|
|
|
VERNAME := SheepShaver-$(VERSION)
|
|
|
|
|
|
|
|
SRCARCHIVE := $(shell date +SheepShaver_src_%d%m%Y.tar.gz)
|
|
|
|
|
|
|
|
TMPDIR := $(shell date +/tmp/build%m%s)
|
|
|
|
DOCS := HISTORY LOG TODO
|
|
|
|
SRCS := src
|
|
|
|
|
2002-05-09 09:55:45 +00:00
|
|
|
# Where Basilisk II directory can be found
|
|
|
|
B2_TOPDIR := ../BasiliskII
|
|
|
|
|
2003-09-07 14:25:48 +00:00
|
|
|
# Where Kheperix directory can be found
|
|
|
|
KPX_TOPDIR := ../kheperix
|
|
|
|
|
2002-02-04 16:58:13 +00:00
|
|
|
default: help
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "This top-level Makefile is for creating SheepShaver distributions."
|
|
|
|
@echo "The following targets are available:"
|
|
|
|
@echo " tarball source tarball ($(SRCARCHIVE))"
|
|
|
|
@echo " links create links to Basilisk II sources"
|
2003-09-07 14:25:48 +00:00
|
|
|
@echo " kpx_cpu synchronize with Kheperix CPU emulator"
|
2002-02-04 16:58:13 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f $(SRCARCHIVE)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Source tarball
|
|
|
|
#
|
|
|
|
tarball: $(SRCARCHIVE)
|
|
|
|
|
|
|
|
$(SRCARCHIVE): $(SRCS) $(DOCS)
|
|
|
|
-rm -rf $(TMPDIR)
|
|
|
|
mkdir $(TMPDIR)
|
|
|
|
cd $(TMPDIR); cvs export -D "$(ISODATE)" SheepShaver
|
|
|
|
rm $(TMPDIR)/SheepShaver/Makefile
|
|
|
|
mv $(TMPDIR)/SheepShaver $(TMPDIR)/$(VERNAME)
|
|
|
|
cd $(TMPDIR); tar cfz $@ $(VERNAME)
|
|
|
|
mv $(TMPDIR)/$@ .
|
|
|
|
rm -rf $(TMPDIR)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Links to Basilisk II sources
|
|
|
|
#
|
|
|
|
links:
|
|
|
|
@list='adb.cpp audio.cpp cdrom.cpp disk.cpp extfs.cpp prefs.cpp \
|
|
|
|
scsi.cpp sony.cpp xpram.cpp \
|
|
|
|
include/adb.h include/audio.h include/audio_defs.h \
|
|
|
|
include/cdrom.h include/clip.h include/debug.h include/disk.h \
|
|
|
|
include/extfs.h include/extfs_defs.h include/prefs.h \
|
|
|
|
include/scsi.h include/serial.h include/serial_defs.h \
|
|
|
|
include/sony.h include/sys.h include/timer.h include/xpram.h \
|
|
|
|
BeOS/audio_beos.cpp BeOS/extfs_beos.cpp BeOS/scsi_beos.cpp \
|
|
|
|
BeOS/serial_beos.cpp BeOS/sys_beos.cpp BeOS/timer_beos.cpp \
|
|
|
|
BeOS/xpram_beos.cpp BeOS/SheepDriver BeOS/SheepNet \
|
|
|
|
Unix/audio_oss_esd.cpp Unix/extfs_unix.cpp Unix/serial_unix.cpp \
|
2003-01-04 12:23:39 +00:00
|
|
|
Unix/sshpty.h Unix/sshpty.c Unix/strlcpy.h Unix/strlcpy.c \
|
2002-02-04 16:58:13 +00:00
|
|
|
Unix/sys_unix.cpp Unix/timer_unix.cpp Unix/xpram_unix.cpp \
|
2003-05-13 16:59:57 +00:00
|
|
|
Unix/sigsegv.h Unix/sigsegv.cpp Unix/vm_alloc.h Unix/vm_alloc.cpp \
|
2003-05-22 22:12:05 +00:00
|
|
|
Unix/posix_sem.cpp Unix/video_vosf.h Unix/video_blit.h \
|
|
|
|
Unix/video_blit.cpp \
|
2002-02-04 16:58:13 +00:00
|
|
|
Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver'; \
|
2002-05-09 09:55:45 +00:00
|
|
|
PREFIX="`pwd`/"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \
|
2002-02-04 16:58:13 +00:00
|
|
|
for i in $$list; do \
|
|
|
|
echo $$i; \
|
2002-05-09 09:55:45 +00:00
|
|
|
ln -sf $${PREFIX}$(B2_TOPDIR)/src/$$i src/$$i; \
|
2002-02-04 16:58:13 +00:00
|
|
|
done;
|
2003-09-07 14:25:48 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Synchronize with Kheperix CPU emulator"
|
|
|
|
#
|
|
|
|
kpx_cpu:
|
|
|
|
@list='include/basic-blockinfo.hpp \
|
|
|
|
include/basic-cpu.hpp \
|
|
|
|
include/basic-plugin.hpp \
|
|
|
|
include/task-plugin.hpp \
|
|
|
|
include/block-alloc.hpp \
|
|
|
|
src/cpu/block-cache.hpp \
|
|
|
|
src/cpu/vm.hpp \
|
|
|
|
src/cpu/ppc/ppc-cpu.hpp \
|
|
|
|
src/cpu/ppc/ppc-cpu.cpp \
|
|
|
|
src/cpu/ppc/ppc-decode.cpp \
|
|
|
|
src/cpu/ppc/ppc-execute.cpp \
|
|
|
|
src/cpu/ppc/genexec.pl \
|
|
|
|
src/cpu/ppc/ppc-bitfields.hpp \
|
|
|
|
src/cpu/ppc/ppc-blockinfo.hpp \
|
|
|
|
src/cpu/ppc/ppc-config.hpp \
|
|
|
|
src/cpu/ppc/ppc-operands.hpp \
|
|
|
|
src/cpu/ppc/ppc-operations.hpp \
|
2003-09-14 22:10:58 +00:00
|
|
|
src/cpu/ppc/ppc-registers.hpp \
|
|
|
|
src/test/test-powerpc.cpp'; \
|
2003-09-07 14:25:48 +00:00
|
|
|
for i in $$list; do \
|
|
|
|
echo $$i; \
|
|
|
|
mkdir -p src/kpx_cpu/`dirname $$i`; \
|
|
|
|
cp -f $(KPX_TOPDIR)/$$i src/kpx_cpu/$$i; \
|
|
|
|
/bin/true ln -sf $$i src/kpx_cpu/`basename $$i`; \
|
|
|
|
done;
|