--- SIDPlayer/src/Makefile 2000/07/28 12:42:29 1.1.1.1 +++ SIDPlayer/src/Makefile 2000/09/19 13:27:50 1.3 @@ -4,6 +4,9 @@ ## makefile-engine will do all of the hard work for you. This handles both ## Intel and PowerPC builds of the BeOS. +# Version number +SP_VERSION = 4.0 + ## Application Specific Settings --------------------------------------------- # specify the name of the binary @@ -104,29 +107,39 @@ COMPILER_FLAGS = # specify additional linker flags LINKER_FLAGS = - ## include the makefile-engine include /boot/develop/etc/makefile-engine - # Create links to Frodo sources main.cpp: cpu_macros.h cpu_opcodes.h prefs.h sid.cpp cpu_macros.h cpu_opcodes.h prefs.h sid.cpp: ln -s ../../Frodo/src/$@ $@ -# Create distribution -BUILD_DIR = /tmp/$(NAME) -ARCHIVE_NAME = SIDPlayer_4.0_$(CPU).zip -dist: - mkdir $(BUILD_DIR) - mkdir $(BUILD_DIR)/src - cp *.cpp *.h Makefile $(BUILD_DIR)/src - cp -R clamp_includes $(BUILD_DIR)/src - cp SIDPlayer.rsrc $(BUILD_DIR)/src - cp obj.$(CPU)/$(NAME) $(BUILD_DIR) - cp -R "../PSID Demo" $(BUILD_DIR) - cp ../COPYING ../README $(BUILD_DIR) - mimeset -f $(BUILD_DIR) - (cd /tmp; zip -r $(ARCHIVE_NAME) $(NAME)) - mv /tmp/$(ARCHIVE_NAME) $(ARCHIVE_NAME) - rm -rf $(BUILD_DIR) +# Create binary distribution +DISTDIR = SIDPlayer-$(SP_VERSION) +ARCHIVE = SIDPlayer-$(SP_VERSION)-$(CPU).zip +dist: $(TARGET) + -rm -rf $(DISTDIR) + mkdir $(DISTDIR) + cp ../COPYING ../README $(DISTDIR) + cp $(TARGET) $(DISTDIR)/SIDPlayer + cp -R "../PSID Demo" $(DISTDIR) + rm -rf $(DISTDIR)/"PSID Demo/CVS" + mimeset -f $(DISTDIR) + zip -r $(ARCHIVE) $(DISTDIR) + rm -rf $(DISTDIR) + +# Create source distribution +SRCARCH = SIDPlayer-$(SP_VERSION).tar.gz +srcdist: $(SRCS) + -rm -rf $(SRCARCH) + mkdir $(DISTDIR) + mkdir $(DISTDIR)/src + cp ../COPYING ../README $(DISTDIR) + cp *.cpp *.h Makefile $(DISTDIR)/src + cp -R clamp_includes $(DISTDIR)/src + cp SIDPlayer.rsrc $(DISTDIR)/src + cp -R "../PSID Demo" $(DISTDIR) + rm -rf $(DISTDIR)/"PSID Demo/CVS" + tar cfvz $(SRCARCH) $(DISTDIR) + rm -rf $(DISTDIR)