/[cebix]/SheepShaver/Makefile
ViewVC logotype

Diff of /SheepShaver/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by gbeauche, Sun Sep 7 14:25:48 2003 UTC revision 1.36 by asvitkine, Thu Dec 29 07:39:56 2011 UTC
# Line 1  Line 1 
1  # Makefile for creating SheepShaver distributions  # Makefile for creating SheepShaver distributions
2  # Written in 1999 by Christian Bauer <Christian.Bauer@uni-mainz.de>  # Written in 1999 by Christian Bauer <Christian.Bauer@uni-mainz.de>
3    
4  VERSION := 2  VERSION := 2.3
 RELEASE := 2  
5  VERNAME := SheepShaver-$(VERSION)  VERNAME := SheepShaver-$(VERSION)
6    CVSDATE := $(shell date "+%Y%m%d")
7    
8  SRCARCHIVE := $(shell date +SheepShaver_src_%d%m%Y.tar.gz)  SRCARCHIVE := $(VERNAME)-$(CVSDATE).tar.gz
9    
10  TMPDIR := $(shell date +/tmp/build%m%s)  TMPDIR := $(shell date +/tmp/build%m%s)
11  DOCS := HISTORY LOG TODO  ISODATE := $(shell date "+%Y-%m-%d %H:%M")
12    DOCS := NEWS
13  SRCS := src  SRCS := src
14    
15  # Where Basilisk II directory can be found  # Where Basilisk II directory can be found
16  B2_TOPDIR := ../BasiliskII  B2_TOPDIR := ../BasiliskII
17    
 # Where Kheperix directory can be found  
 KPX_TOPDIR := ../kheperix  
   
18  default: help  default: help
19    
20  help:  help:
# Line 24  help: Line 22  help:
22          @echo "The following targets are available:"          @echo "The following targets are available:"
23          @echo "  tarball  source tarball ($(SRCARCHIVE))"          @echo "  tarball  source tarball ($(SRCARCHIVE))"
24          @echo "  links    create links to Basilisk II sources"          @echo "  links    create links to Basilisk II sources"
         @echo "  kpx_cpu  synchronize with Kheperix CPU emulator"  
25    
26  clean:  clean:
27          -rm -f $(SRCARCHIVE)          -rm -f $(SRCARCHIVE)
# Line 37  tarball: $(SRCARCHIVE) Line 34  tarball: $(SRCARCHIVE)
34  $(SRCARCHIVE): $(SRCS) $(DOCS)  $(SRCARCHIVE): $(SRCS) $(DOCS)
35          -rm -rf $(TMPDIR)          -rm -rf $(TMPDIR)
36          mkdir $(TMPDIR)          mkdir $(TMPDIR)
37          cd $(TMPDIR); cvs export -D "$(ISODATE)" SheepShaver          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          rm $(TMPDIR)/SheepShaver/Makefile          rm $(TMPDIR)/SheepShaver/Makefile
43          mv $(TMPDIR)/SheepShaver $(TMPDIR)/$(VERNAME)          cp -aL $(TMPDIR)/SheepShaver $(TMPDIR)/$(VERNAME)
44          cd $(TMPDIR); tar cfz $@ $(VERNAME)          cd $(TMPDIR); tar cfz $@ $(VERNAME)
45          mv $(TMPDIR)/$@ .          mv $(TMPDIR)/$@ .
46          rm -rf $(TMPDIR)          rm -rf $(TMPDIR)
# Line 58  links: Line 59  links:
59                 BeOS/audio_beos.cpp BeOS/extfs_beos.cpp BeOS/scsi_beos.cpp \                 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 \                 BeOS/serial_beos.cpp BeOS/sys_beos.cpp BeOS/timer_beos.cpp \
61                 BeOS/xpram_beos.cpp BeOS/SheepDriver BeOS/SheepNet \                 BeOS/xpram_beos.cpp BeOS/SheepDriver BeOS/SheepNet \
62                 Unix/audio_oss_esd.cpp Unix/extfs_unix.cpp Unix/serial_unix.cpp \                 Unix/audio_oss_esd.cpp Unix/bincue_unix.cpp Unix/bincue_unix.h \
63                   Unix/vhd_unix.cpp Unix/vhd_unix.h \
64                   Unix/extfs_unix.cpp Unix/serial_unix.cpp \
65                 Unix/sshpty.h Unix/sshpty.c Unix/strlcpy.h Unix/strlcpy.c \                 Unix/sshpty.h Unix/sshpty.c Unix/strlcpy.h Unix/strlcpy.c \
66                 Unix/sys_unix.cpp Unix/timer_unix.cpp Unix/xpram_unix.cpp \                 Unix/sys_unix.cpp Unix/timer_unix.cpp Unix/xpram_unix.cpp \
67                 Unix/sigsegv.h Unix/sigsegv.cpp Unix/vm_alloc.h Unix/vm_alloc.cpp \                 Unix/sigsegv.h Unix/sigsegv.cpp Unix/vm_alloc.h Unix/vm_alloc.cpp \
68                 Unix/posix_sem.cpp Unix/video_vosf.h Unix/video_blit.h \                 Unix/semaphore.h Unix/posix_sem.cpp Unix/video_vosf.h Unix/video_blit.h \
69                 Unix/video_blit.cpp \                 Unix/video_blit.cpp Unix/config.sub Unix/config.guess Unix/m4 \
70                 Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver'; \                 Unix/keycodes Unix/tunconfig Unix/clip_unix.cpp Unix/Irix/audio_irix.cpp \
71          PREFIX="`pwd`/"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \                 Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver Unix/ether_unix.cpp \
72          for i in $$list; do \                 Unix/rpc.h Unix/rpc_unix.cpp Unix/ldscripts Unix/Darwin/mkstandalone \
73            echo $$i; \                 Unix/Darwin/lowmem.c Unix/Darwin/pagezero.c Unix/Darwin/testlmem.sh \
74            ln -sf $${PREFIX}$(B2_TOPDIR)/src/$$i src/$$i; \                 dummy/audio_dummy.cpp dummy/clip_dummy.cpp dummy/serial_dummy.cpp \
75          done;                 dummy/prefs_editor_dummy.cpp dummy/scsi_dummy.cpp SDL slirp \
76                   MacOSX/sys_darwin.cpp MacOSX/clip_macosx.cpp \
77  #                 MacOSX/macos_util_macosx.h Unix/cpr.sh \
78  # Synchronize with Kheperix CPU emulator"                 MacOSX/extfs_macosx.cpp Windows/clip_windows.cpp \
79  #                 MacOSX/MacOSX_sound_if.cpp MacOSX/MacOSX_sound_if.h \
80  kpx_cpu:                 MacOSX/AudioBackEnd.cpp MacOSX/AudioBackEnd.h \
81          @list='include/basic-blockinfo.hpp \                 MacOSX/AudioDevice.cpp MacOSX/AudioDevice.h MacOSX/audio_macosx.cpp \
82                 include/basic-cpu.hpp \                 MacOSX/utils_macosx.mm MacOSX/utils_macosx.h \
83                 include/basic-plugin.hpp \                 Windows/cd_defs.h Windows/cdenable Windows/extfs_windows.cpp \
84                 include/task-plugin.hpp \                 Windows/posix_emu.cpp Windows/posix_emu.h Windows/sys_windows.cpp \
85                 include/block-alloc.hpp \                 Windows/timer_windows.cpp Windows/util_windows.cpp \
86                 src/cpu/block-cache.hpp \                 Windows/util_windows.h Windows/xpram_windows.cpp \
87                 src/cpu/vm.hpp \                 Windows/kernel_windows.h Windows/kernel_windows.cpp \
88                 src/cpu/ppc/ppc-cpu.hpp \                 Windows/serial_windows.cpp Windows/router Windows/b2ether \
89                 src/cpu/ppc/ppc-cpu.cpp \                 Windows/ether_windows.h Windows/ether_windows.cpp \
90                 src/cpu/ppc/ppc-decode.cpp \                 Windows/serial_windows.cpp Windows/prefs_editor_gtk.cpp \
91                 src/cpu/ppc/ppc-execute.cpp \                 uae_cpu/compiler/codegen_x86.h'; \
92                 src/cpu/ppc/genexec.pl \          PREFIX="../"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \
                src/cpu/ppc/ppc-bitfields.hpp \  
                src/cpu/ppc/ppc-blockinfo.hpp \  
                src/cpu/ppc/ppc-config.hpp \  
                src/cpu/ppc/ppc-operands.hpp \  
                src/cpu/ppc/ppc-operations.hpp \  
                src/cpu/ppc/ppc-registers.hpp'; \  
93          for i in $$list; do \          for i in $$list; do \
94            echo $$i; \            if test "$$i" != "\\"; then \
95            mkdir -p src/kpx_cpu/`dirname $$i`; \              echo $$i; o=$$i; \
96            cp -f  $(KPX_TOPDIR)/$$i src/kpx_cpu/$$i; \              case $$i in *codegen_x86.h) o=kpx_cpu/src/cpu/jit/x86/codegen_x86.h;; esac; \
97            /bin/true ln -sf $$i src/kpx_cpu/`basename $$i`; \              SUB=`echo $$o | sed 's;[^/]*/;../;g' | sed 's;[^/]*$$;;'` ;\
98          done;              ln -sf "$$PREFIX$$SUB$(B2_TOPDIR)/src/$$i" src/$$o; \
99              fi; \
100            done; \
101            ln -sf ../../../../../SheepShaver/src/Unix/config.h $(B2_TOPDIR)/src/Unix/Linux/NetDriver/config.h

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.36

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.17