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