macemu/SheepShaver/Makefile

84 lines
3.3 KiB
Makefile
Raw Normal View History

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
2005-11-29 23:48:18 +00:00
RELEASE := 3
2002-02-04 16:58:13 +00:00
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
# 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)
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 \
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 \
Unix/sigsegv.h Unix/sigsegv.cpp Unix/vm_alloc.h Unix/vm_alloc.cpp \
Unix/semaphore.h Unix/posix_sem.cpp Unix/video_vosf.h Unix/video_blit.h \
2003-11-24 22:19:35 +00:00
Unix/video_blit.cpp Unix/config.sub Unix/config.guess \
Unix/keycodes Unix/tunconfig Unix/clip_unix.cpp Unix/m4 \
Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver Unix/ether_unix.cpp \
Unix/Darwin/lowmem.c Unix/Darwin/pagezero.c Unix/Darwin/testlmem.sh \
dummy/audio_dummy.cpp dummy/clip_dummy.cpp dummy/serial_dummy.cpp \
dummy/prefs_editor_dummy.cpp dummy/scsi_dummy.cpp SDL slirp \
MacOSX/sys_darwin.cpp MacOSX/clip_macosx.cpp \
MacOSX/macos_util_macosx.h MacOSX/extfs_macosx.h \
2005-03-17 23:56:04 +00:00
MacOSX/extfs_macosx.mm Windows/clip_windows.cpp \
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 \
Windows/util_windows.h Windows/xpram_windows.cpp \
Windows/kernel_windows.h Windows/kernel_windows.cpp \
Windows/serial_windows.cpp Windows/router Windows/b2ether \
Windows/ether_windows.h Windows/ether_windows.cpp \
2005-11-27 23:54:26 +00:00
Windows/serial_windows.cpp Windows/prefs_editor_gtk.cpp'; \
PREFIX="`pwd`/"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \
2002-02-04 16:58:13 +00:00
for i in $$list; do \
echo $$i; \
ln -sf "$${PREFIX}$(B2_TOPDIR)/src/$$i" src/$$i; \
2002-02-04 16:58:13 +00:00
done;