ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/Makefile
Revision: 1.25
Committed: 2005-11-30T07:25:37Z (19 years ago) by gbeauche
Branch: MAIN
Changes since 1.24: +2 -1 lines
Log Message:
Modernize tarball VERNAME

File Contents

# User Rev Content
1 cebix 1.1 # Makefile for creating SheepShaver distributions
2     # Written in 1999 by Christian Bauer <Christian.Bauer@uni-mainz.de>
3    
4 gbeauche 1.24 VERSION := 2.3
5 cebix 1.1 VERNAME := SheepShaver-$(VERSION)
6 gbeauche 1.25 CVSDATE := $(shell date "+%Y%m%d")
7 cebix 1.1
8 gbeauche 1.25 SRCARCHIVE := $(VERNAME)-$(CVSDATE).tar.gz
9 cebix 1.1
10     TMPDIR := $(shell date +/tmp/build%m%s)
11 gbeauche 1.24 ISODATE := $(shell date "+%Y-%m-%d %H:%M")
12     DOCS := NEWS
13 cebix 1.1 SRCS := src
14    
15 gbeauche 1.2 # Where Basilisk II directory can be found
16     B2_TOPDIR := ../BasiliskII
17    
18 cebix 1.1 default: help
19    
20     help:
21     @echo "This top-level Makefile is for creating SheepShaver distributions."
22     @echo "The following targets are available:"
23     @echo " tarball source tarball ($(SRCARCHIVE))"
24     @echo " links create links to Basilisk II sources"
25    
26     clean:
27     -rm -f $(SRCARCHIVE)
28    
29     #
30     # Source tarball
31     #
32     tarball: $(SRCARCHIVE)
33    
34     $(SRCARCHIVE): $(SRCS) $(DOCS)
35     -rm -rf $(TMPDIR)
36     mkdir $(TMPDIR)
37 gbeauche 1.24 cd $(TMPDIR); cvs export -D "$(ISODATE)" BasiliskII SheepShaver
38     cd $(TMPDIR)/SheepShaver/src/Unix && mkdir Darwin
39     cd $(TMPDIR)/SheepShaver && make links
40     cd $(TMPDIR)/SheepShaver/src/Unix && NO_CONFIGURE=1 ./autogen.sh
41     cd $(TMPDIR)/SheepShaver/src/Windows && NO_CONFIGURE=1 ../Unix/autogen.sh
42 cebix 1.1 rm $(TMPDIR)/SheepShaver/Makefile
43 gbeauche 1.24 cp -aL $(TMPDIR)/SheepShaver $(TMPDIR)/$(VERNAME)
44 cebix 1.1 cd $(TMPDIR); tar cfz $@ $(VERNAME)
45     mv $(TMPDIR)/$@ .
46     rm -rf $(TMPDIR)
47    
48     #
49     # Links to Basilisk II sources
50     #
51     links:
52     @list='adb.cpp audio.cpp cdrom.cpp disk.cpp extfs.cpp prefs.cpp \
53     scsi.cpp sony.cpp xpram.cpp \
54     include/adb.h include/audio.h include/audio_defs.h \
55     include/cdrom.h include/clip.h include/debug.h include/disk.h \
56     include/extfs.h include/extfs_defs.h include/prefs.h \
57     include/scsi.h include/serial.h include/serial_defs.h \
58     include/sony.h include/sys.h include/timer.h include/xpram.h \
59     BeOS/audio_beos.cpp BeOS/extfs_beos.cpp BeOS/scsi_beos.cpp \
60     BeOS/serial_beos.cpp BeOS/sys_beos.cpp BeOS/timer_beos.cpp \
61     BeOS/xpram_beos.cpp BeOS/SheepDriver BeOS/SheepNet \
62     Unix/audio_oss_esd.cpp Unix/extfs_unix.cpp Unix/serial_unix.cpp \
63 gbeauche 1.3 Unix/sshpty.h Unix/sshpty.c Unix/strlcpy.h Unix/strlcpy.c \
64 cebix 1.1 Unix/sys_unix.cpp Unix/timer_unix.cpp Unix/xpram_unix.cpp \
65 gbeauche 1.4 Unix/sigsegv.h Unix/sigsegv.cpp Unix/vm_alloc.h Unix/vm_alloc.cpp \
66 gbeauche 1.20 Unix/semaphore.h Unix/posix_sem.cpp Unix/video_vosf.h Unix/video_blit.h \
67 gbeauche 1.8 Unix/video_blit.cpp Unix/config.sub Unix/config.guess \
68 gbeauche 1.19 Unix/keycodes Unix/tunconfig Unix/clip_unix.cpp Unix/m4 \
69     Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver Unix/ether_unix.cpp \
70 gbeauche 1.12 Unix/Darwin/lowmem.c Unix/Darwin/pagezero.c Unix/Darwin/testlmem.sh \
71 gbeauche 1.16 dummy/audio_dummy.cpp dummy/clip_dummy.cpp dummy/serial_dummy.cpp \
72 gbeauche 1.19 dummy/prefs_editor_dummy.cpp dummy/scsi_dummy.cpp SDL slirp \
73 gbeauche 1.14 MacOSX/sys_darwin.cpp MacOSX/clip_macosx.cpp \
74     MacOSX/macos_util_macosx.h MacOSX/extfs_macosx.h \
75 gbeauche 1.17 MacOSX/extfs_macosx.mm Windows/clip_windows.cpp \
76     Windows/cd_defs.h Windows/cdenable Windows/extfs_windows.cpp \
77     Windows/posix_emu.cpp Windows/posix_emu.h Windows/sys_windows.cpp \
78     Windows/timer_windows.cpp Windows/util_windows.cpp \
79 gbeauche 1.21 Windows/util_windows.h Windows/xpram_windows.cpp \
80     Windows/kernel_windows.h Windows/kernel_windows.cpp \
81     Windows/serial_windows.cpp Windows/router Windows/b2ether \
82     Windows/ether_windows.h Windows/ether_windows.cpp \
83 gbeauche 1.22 Windows/serial_windows.cpp Windows/prefs_editor_gtk.cpp'; \
84 gbeauche 1.2 PREFIX="`pwd`/"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \
85 cebix 1.1 for i in $$list; do \
86     echo $$i; \
87 gbeauche 1.16 ln -sf "$${PREFIX}$(B2_TOPDIR)/src/$$i" src/$$i; \
88 cebix 1.1 done;