| 4 |
## makefile-engine will do all of the hard work for you. This handles both |
## makefile-engine will do all of the hard work for you. This handles both |
| 5 |
## Intel and PowerPC builds of the BeOS. |
## Intel and PowerPC builds of the BeOS. |
| 6 |
|
|
| 7 |
# Version number |
# Get version number from configure.in |
| 8 |
SP_VERSION = 4.0 |
version := $(shell grep <configure.in INIT_AUTOMAKE | sed -e 's/.*\[//' -e 's/\].*//') |
| 9 |
|
|
| 10 |
## Application Specific Settings --------------------------------------------- |
## Application Specific Settings --------------------------------------------- |
| 11 |
|
|
| 33 |
# if two source files with the same name (source.c or source.cpp) |
# if two source files with the same name (source.c or source.cpp) |
| 34 |
# are included from different directories. Also note that spaces |
# are included from different directories. Also note that spaces |
| 35 |
# in folder names do not work well with this makefile. |
# in folder names do not work well with this makefile. |
| 36 |
SRCS=src/main_beos.cpp src/main.cpp src/cl_amp.cpp src/prefs.cpp \ |
SRCS=src/main_beos.cpp src/main.cpp src/cl_amp.cpp src/soundplay.cpp \ |
| 37 |
src/prefs_window.cpp src/mem.cpp src/cpu.cpp src/sid.cpp |
src/prefs.cpp src/prefs_items.cpp src/prefs_window.cpp src/mem.cpp \ |
| 38 |
|
src/cpu.cpp src/sid.cpp |
| 39 |
|
|
| 40 |
# specify the resource files to use |
# specify the resource files to use |
| 41 |
# full path or a relative path to the resource file can be used. |
# full path or a relative path to the resource file can be used. |
| 42 |
RSRCS= SIDPlayer.rsrc |
RSRCS=src/SIDPlayer.rsrc |
| 43 |
|
|
| 44 |
# @<-src@ |
# @<-src@ |
| 45 |
#%} |
#%} |
| 74 |
# additional paths to look for local headers |
# additional paths to look for local headers |
| 75 |
# thes use the form: #include "header" |
# thes use the form: #include "header" |
| 76 |
# source file directories are automatically included |
# source file directories are automatically included |
| 77 |
LOCAL_INCLUDE_PATHS=src/clamp_includes |
LOCAL_INCLUDE_PATHS=src/clamp_includes src/soundplay_includes |
| 78 |
|
|
| 79 |
# specify the level of optimization that you desire |
# specify the level of optimization that you desire |
| 80 |
# NONE, SOME, FULL |
# NONE, SOME, FULL |
| 85 |
# to use. For example, setting DEFINES to "DEBUG=1" will cause the |
# to use. For example, setting DEFINES to "DEBUG=1" will cause the |
| 86 |
# compiler option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG" |
# compiler option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG" |
| 87 |
# would pass "-DDEBUG" on the compiler's command line. |
# would pass "-DDEBUG" on the compiler's command line. |
| 88 |
DEFINES=SID_PLAYER |
DEFINES=SID_PLAYER VERSION=\"$(version)\" |
| 89 |
|
|
| 90 |
# specify special warning levels |
# specify special warning levels |
| 91 |
# if unspecified default warnings will be used |
# if unspecified default warnings will be used |
| 118 |
ln -s ../Frodo/src/$@ $@ |
ln -s ../Frodo/src/$@ $@ |
| 119 |
|
|
| 120 |
# Create binary distribution |
# Create binary distribution |
| 121 |
DISTDIR = SIDPlayer-$(SP_VERSION) |
distdir = SIDPlayer-$(version) |
|
ARCHIVE = SIDPlayer-$(SP_VERSION)-$(CPU).zip |
|
| 122 |
dist: $(TARGET) |
dist: $(TARGET) |
| 123 |
-rm -rf $(DISTDIR) |
-rm -rf $(distdir) |
| 124 |
mkdir $(DISTDIR) |
mkdir $(distdir) |
| 125 |
cp COPYING README $(DISTDIR) |
cp COPYING README $(distdir) |
| 126 |
cp $(TARGET) $(DISTDIR)/SIDPlayer |
cp $(TARGET) $(distdir)/SIDPlayer |
| 127 |
cp -R "PSID Demo" $(DISTDIR) |
cp -R "PSID Demo" $(distdir) |
| 128 |
rm -rf $(DISTDIR)/"PSID Demo/CVS" |
rm -rf $(distdir)/"PSID Demo/CVS" |
| 129 |
mimeset -f $(DISTDIR) |
mimeset -f $(distdir) |
| 130 |
zip -r $(ARCHIVE) $(DISTDIR) |
zip -ry $(distdir)-$(CPU).zip $(distdir) |
| 131 |
rm -rf $(DISTDIR) |
rm -rf $(distdir) |