1 |
cebix |
1.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 |
|
|
default: help |
15 |
|
|
|
16 |
|
|
help: |
17 |
|
|
@echo "This top-level Makefile is for creating SheepShaver distributions." |
18 |
|
|
@echo "The following targets are available:" |
19 |
|
|
@echo " tarball source tarball ($(SRCARCHIVE))" |
20 |
|
|
@echo " links create links to Basilisk II sources" |
21 |
|
|
|
22 |
|
|
clean: |
23 |
|
|
-rm -f $(SRCARCHIVE) |
24 |
|
|
|
25 |
|
|
# |
26 |
|
|
# Source tarball |
27 |
|
|
# |
28 |
|
|
tarball: $(SRCARCHIVE) |
29 |
|
|
|
30 |
|
|
$(SRCARCHIVE): $(SRCS) $(DOCS) |
31 |
|
|
-rm -rf $(TMPDIR) |
32 |
|
|
mkdir $(TMPDIR) |
33 |
|
|
cd $(TMPDIR); cvs export -D "$(ISODATE)" SheepShaver |
34 |
|
|
rm $(TMPDIR)/SheepShaver/Makefile |
35 |
|
|
mv $(TMPDIR)/SheepShaver $(TMPDIR)/$(VERNAME) |
36 |
|
|
cd $(TMPDIR); tar cfz $@ $(VERNAME) |
37 |
|
|
mv $(TMPDIR)/$@ . |
38 |
|
|
rm -rf $(TMPDIR) |
39 |
|
|
|
40 |
|
|
# |
41 |
|
|
# Links to Basilisk II sources |
42 |
|
|
# |
43 |
|
|
links: |
44 |
|
|
@list='adb.cpp audio.cpp cdrom.cpp disk.cpp extfs.cpp prefs.cpp \ |
45 |
|
|
scsi.cpp sony.cpp xpram.cpp \ |
46 |
|
|
include/adb.h include/audio.h include/audio_defs.h \ |
47 |
|
|
include/cdrom.h include/clip.h include/debug.h include/disk.h \ |
48 |
|
|
include/extfs.h include/extfs_defs.h include/prefs.h \ |
49 |
|
|
include/scsi.h include/serial.h include/serial_defs.h \ |
50 |
|
|
include/sony.h include/sys.h include/timer.h include/xpram.h \ |
51 |
|
|
BeOS/audio_beos.cpp BeOS/extfs_beos.cpp BeOS/scsi_beos.cpp \ |
52 |
|
|
BeOS/serial_beos.cpp BeOS/sys_beos.cpp BeOS/timer_beos.cpp \ |
53 |
|
|
BeOS/xpram_beos.cpp BeOS/SheepDriver BeOS/SheepNet \ |
54 |
|
|
Unix/audio_oss_esd.cpp Unix/extfs_unix.cpp Unix/serial_unix.cpp \ |
55 |
|
|
Unix/sys_unix.cpp Unix/timer_unix.cpp Unix/xpram_unix.cpp \ |
56 |
|
|
Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver'; \ |
57 |
|
|
for i in $$list; do \ |
58 |
|
|
echo $$i; \ |
59 |
|
|
ln -sf `pwd`/../BasiliskII/src/$$i src/$$i; \ |
60 |
|
|
done; |