1 |
# Makefile for creating SheepShaver distributions |
2 |
# Written in 1999 by Christian Bauer <Christian.Bauer@uni-mainz.de> |
3 |
|
4 |
VERSION := 2 |
5 |
RELEASE := 2 |
6 |
VERNAME := SheepShaver-$(VERSION) |
7 |
|
8 |
SRCARCHIVE := $(shell date +SheepShaver_src_%d%m%Y.tar.gz) |
9 |
|
10 |
TMPDIR := $(shell date +/tmp/build%m%s) |
11 |
DOCS := HISTORY LOG TODO |
12 |
SRCS := src |
13 |
|
14 |
# Where Basilisk II directory can be found |
15 |
B2_TOPDIR := ../BasiliskII |
16 |
|
17 |
default: help |
18 |
|
19 |
help: |
20 |
@echo "This top-level Makefile is for creating SheepShaver distributions." |
21 |
@echo "The following targets are available:" |
22 |
@echo " tarball source tarball ($(SRCARCHIVE))" |
23 |
@echo " links create links to Basilisk II sources" |
24 |
|
25 |
clean: |
26 |
-rm -f $(SRCARCHIVE) |
27 |
|
28 |
# |
29 |
# Source tarball |
30 |
# |
31 |
tarball: $(SRCARCHIVE) |
32 |
|
33 |
$(SRCARCHIVE): $(SRCS) $(DOCS) |
34 |
-rm -rf $(TMPDIR) |
35 |
mkdir $(TMPDIR) |
36 |
cd $(TMPDIR); cvs export -D "$(ISODATE)" SheepShaver |
37 |
rm $(TMPDIR)/SheepShaver/Makefile |
38 |
mv $(TMPDIR)/SheepShaver $(TMPDIR)/$(VERNAME) |
39 |
cd $(TMPDIR); tar cfz $@ $(VERNAME) |
40 |
mv $(TMPDIR)/$@ . |
41 |
rm -rf $(TMPDIR) |
42 |
|
43 |
# |
44 |
# Links to Basilisk II sources |
45 |
# |
46 |
links: |
47 |
@list='adb.cpp audio.cpp cdrom.cpp disk.cpp extfs.cpp prefs.cpp \ |
48 |
scsi.cpp sony.cpp xpram.cpp \ |
49 |
include/adb.h include/audio.h include/audio_defs.h \ |
50 |
include/cdrom.h include/clip.h include/debug.h include/disk.h \ |
51 |
include/extfs.h include/extfs_defs.h include/prefs.h \ |
52 |
include/scsi.h include/serial.h include/serial_defs.h \ |
53 |
include/sony.h include/sys.h include/timer.h include/xpram.h \ |
54 |
BeOS/audio_beos.cpp BeOS/extfs_beos.cpp BeOS/scsi_beos.cpp \ |
55 |
BeOS/serial_beos.cpp BeOS/sys_beos.cpp BeOS/timer_beos.cpp \ |
56 |
BeOS/xpram_beos.cpp BeOS/SheepDriver BeOS/SheepNet \ |
57 |
Unix/audio_oss_esd.cpp Unix/extfs_unix.cpp Unix/serial_unix.cpp \ |
58 |
Unix/sshpty.h Unix/sshpty.c Unix/strlcpy.h Unix/strlcpy.c \ |
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 Unix/config.sub Unix/config.guess \ |
63 |
Unix/keycodes Unix/tunconfig \ |
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 \ |
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'; \ |
71 |
PREFIX="`pwd`/"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \ |
72 |
for i in $$list; do \ |
73 |
echo $$i; \ |
74 |
ln -sf $${PREFIX}$(B2_TOPDIR)/src/$$i src/$$i; \ |
75 |
done; |