2002-02-04 16:58:13 +00:00
|
|
|
# Makefile for creating SheepShaver distributions
|
|
|
|
# Written in 1999 by Christian Bauer <Christian.Bauer@uni-mainz.de>
|
|
|
|
|
2005-11-30 00:29:29 +00:00
|
|
|
VERSION := 2.3
|
2002-02-04 16:58:13 +00:00
|
|
|
VERNAME := SheepShaver-$(VERSION)
|
2005-11-30 07:25:37 +00:00
|
|
|
CVSDATE := $(shell date "+%Y%m%d")
|
2002-02-04 16:58:13 +00:00
|
|
|
|
2005-11-30 07:25:37 +00:00
|
|
|
SRCARCHIVE := $(VERNAME)-$(CVSDATE).tar.gz
|
2002-02-04 16:58:13 +00:00
|
|
|
|
|
|
|
TMPDIR := $(shell date +/tmp/build%m%s)
|
2005-11-30 00:29:29 +00:00
|
|
|
ISODATE := $(shell date "+%Y-%m-%d %H:%M")
|
|
|
|
DOCS := NEWS
|
2002-02-04 16:58:13 +00:00
|
|
|
SRCS := src
|
|
|
|
|
2002-05-09 09:55:45 +00:00
|
|
|
# Where Basilisk II directory can be found
|
|
|
|
B2_TOPDIR := ../BasiliskII
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f $(SRCARCHIVE)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Source tarball
|
|
|
|
#
|
|
|
|
tarball: $(SRCARCHIVE)
|
|
|
|
|
|
|
|
$(SRCARCHIVE): $(SRCS) $(DOCS)
|
|
|
|
-rm -rf $(TMPDIR)
|
|
|
|
mkdir $(TMPDIR)
|
2005-11-30 00:29:29 +00:00
|
|
|
cd $(TMPDIR); cvs export -D "$(ISODATE)" BasiliskII SheepShaver
|
|
|
|
cd $(TMPDIR)/SheepShaver/src/Unix && mkdir Darwin
|
|
|
|
cd $(TMPDIR)/SheepShaver && make links
|
|
|
|
cd $(TMPDIR)/SheepShaver/src/Unix && NO_CONFIGURE=1 ./autogen.sh
|
|
|
|
cd $(TMPDIR)/SheepShaver/src/Windows && NO_CONFIGURE=1 ../Unix/autogen.sh
|
2002-02-04 16:58:13 +00:00
|
|
|
rm $(TMPDIR)/SheepShaver/Makefile
|
2005-11-30 00:29:29 +00:00
|
|
|
cp -aL $(TMPDIR)/SheepShaver $(TMPDIR)/$(VERNAME)
|
2002-02-04 16:58:13 +00:00
|
|
|
cd $(TMPDIR); tar cfz $@ $(VERNAME)
|
|
|
|
mv $(TMPDIR)/$@ .
|
|
|
|
rm -rf $(TMPDIR)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Links to Basilisk II sources
|
|
|
|
#
|
|
|
|
links:
|
2018-06-19 04:36:27 +00:00
|
|
|
(cd src/Windows; if [ ! -e m4 ]; then ln -s ../../../BasiliskII/src/Unix/m4; fi)
|
2012-07-07 15:33:57 +00:00
|
|
|
@list='adb.cpp audio.cpp cdrom.cpp disk.cpp extfs.cpp pict.c \
|
|
|
|
prefs.cpp scsi.cpp sony.cpp xpram.cpp \
|
2020-07-06 07:09:47 +00:00
|
|
|
bincue.cpp include/bincue.h \
|
2002-02-04 16:58:13 +00:00
|
|
|
include/adb.h include/audio.h include/audio_defs.h \
|
|
|
|
include/cdrom.h include/clip.h include/debug.h include/disk.h \
|
2012-07-07 15:33:57 +00:00
|
|
|
include/extfs.h include/extfs_defs.h include/pict.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 \
|
2002-02-04 16:58:13 +00:00
|
|
|
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 \
|
2020-02-10 12:48:32 +00:00
|
|
|
CrossPlatform/sigsegv.h CrossPlatform/vm_alloc.h CrossPlatform/vm_alloc.cpp \
|
2015-08-09 22:46:03 +00:00
|
|
|
CrossPlatform/video_vosf.h CrossPlatform/video_blit.h CrossPlatform/video_blit.cpp \
|
2020-09-18 09:42:36 +00:00
|
|
|
Unix/audio_oss_esd.cpp \
|
2013-02-24 20:57:18 +00:00
|
|
|
Unix/vhd_unix.cpp \
|
2010-10-06 00:34:15 +00:00
|
|
|
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 \
|
2022-10-08 16:55:42 +00:00
|
|
|
Unix/sys_unix.cpp Unix/timer_unix.cpp Unix/xpram_unix.cpp Unix/prefs_unix.cpp \
|
2015-08-09 22:46:03 +00:00
|
|
|
Unix/semaphore.h Unix/posix_sem.cpp Unix/config.sub Unix/config.guess Unix/m4 \
|
2005-12-04 16:26:57 +00:00
|
|
|
Unix/keycodes Unix/tunconfig Unix/clip_unix.cpp Unix/Irix/audio_irix.cpp \
|
2005-07-03 13:05:36 +00:00
|
|
|
Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver Unix/ether_unix.cpp \
|
2013-02-24 19:15:21 +00:00
|
|
|
Unix/rpc.h Unix/rpc_unix.cpp Unix/ldscripts \
|
2013-03-03 22:05:02 +00:00
|
|
|
Unix/tinyxml2.h Unix/tinyxml2.cpp Unix/disk_unix.h \
|
|
|
|
Unix/disk_sparsebundle.cpp Unix/Darwin/mkstandalone \
|
2020-02-10 12:48:32 +00:00
|
|
|
Unix/Darwin/pagezero.c Unix/Darwin/testlmem.sh \
|
2004-11-22 22:21:33 +00:00
|
|
|
dummy/audio_dummy.cpp dummy/clip_dummy.cpp dummy/serial_dummy.cpp \
|
2005-07-03 13:05:36 +00:00
|
|
|
dummy/prefs_editor_dummy.cpp dummy/scsi_dummy.cpp SDL slirp \
|
2012-07-01 01:40:16 +00:00
|
|
|
MacOSX/sys_darwin.cpp MacOSX/clip_macosx.cpp MacOSX/clip_macosx64.mm \
|
2009-02-19 07:02:46 +00:00
|
|
|
MacOSX/macos_util_macosx.h Unix/cpr.sh \
|
2007-12-30 09:15:00 +00:00
|
|
|
MacOSX/extfs_macosx.cpp Windows/clip_windows.cpp \
|
2007-06-13 16:34:13 +00:00
|
|
|
MacOSX/MacOSX_sound_if.cpp MacOSX/MacOSX_sound_if.h \
|
|
|
|
MacOSX/AudioBackEnd.cpp MacOSX/AudioBackEnd.h \
|
|
|
|
MacOSX/AudioDevice.cpp MacOSX/AudioDevice.h MacOSX/audio_macosx.cpp \
|
2011-12-29 07:39:56 +00:00
|
|
|
MacOSX/utils_macosx.mm MacOSX/utils_macosx.h \
|
2005-03-17 23:56:04 +00:00
|
|
|
Windows/cd_defs.h Windows/cdenable Windows/extfs_windows.cpp \
|
|
|
|
Windows/posix_emu.cpp Windows/posix_emu.h Windows/sys_windows.cpp \
|
|
|
|
Windows/timer_windows.cpp Windows/util_windows.cpp \
|
2005-11-27 22:29:32 +00:00
|
|
|
Windows/util_windows.h Windows/xpram_windows.cpp \
|
|
|
|
Windows/serial_windows.cpp Windows/router Windows/b2ether \
|
|
|
|
Windows/ether_windows.h Windows/ether_windows.cpp \
|
2017-01-18 12:52:19 +00:00
|
|
|
Windows/serial_windows.cpp Windows/prefs_editor_gtk.cpp \
|
2006-07-17 07:43:54 +00:00
|
|
|
uae_cpu/compiler/codegen_x86.h'; \
|
2010-04-08 03:50:26 +00:00
|
|
|
PREFIX="../"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \
|
2002-02-04 16:58:13 +00:00
|
|
|
for i in $$list; do \
|
2010-04-08 03:50:26 +00:00
|
|
|
if test "$$i" != "\\"; then \
|
|
|
|
echo $$i; o=$$i; \
|
|
|
|
case $$i in *codegen_x86.h) o=kpx_cpu/src/cpu/jit/x86/codegen_x86.h;; esac; \
|
|
|
|
SUB=`echo $$o | sed 's;[^/]*/;../;g' | sed 's;[^/]*$$;;'` ;\
|
2017-01-22 23:07:47 +00:00
|
|
|
cur_link=src/$$o ;\
|
2020-03-17 22:11:12 +00:00
|
|
|
if [ -e "$$cur_link" ]; then rm -rf "$$cur_link"; fi ;\
|
2017-01-22 23:07:47 +00:00
|
|
|
ln -sf "$$PREFIX$$SUB$(B2_TOPDIR)/src/$$i" $$cur_link; \
|
2010-04-08 03:50:26 +00:00
|
|
|
fi; \
|
2017-01-22 23:07:47 +00:00
|
|
|
done;
|