ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/Makefile
Revision: 1.24
Committed: 2005-11-30T00:29:29Z (18 years, 11 months ago) by gbeauche
Branch: MAIN
Changes since 1.23: +9 -5 lines
Log Message:
Makefile fixes. Also checkout Basilisk II tree while preparing the
SheepShaver sources tree as it's better to have the tarball having
the B2 sources inside too.

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