1 |
cebix |
1.1 |
## BeOS Generic Makefile v2.1 ## |
2 |
|
|
|
3 |
|
|
## Fill in this file to specify the project being created, and the referenced |
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 |
|
|
## Application Specific Settings --------------------------------------------- |
8 |
|
|
|
9 |
|
|
# specify the name of the binary |
10 |
|
|
NAME=SIDPlayer |
11 |
|
|
|
12 |
|
|
# specify the type of binary |
13 |
|
|
# APP: Application |
14 |
|
|
# SHARED: Shared library or add-on |
15 |
|
|
# STATIC: Static library archive |
16 |
|
|
# DRIVER: Kernel Driver |
17 |
|
|
TYPE=APP |
18 |
|
|
|
19 |
|
|
# add support for new Pe and Eddie features |
20 |
|
|
# to fill in generic makefile |
21 |
|
|
|
22 |
|
|
#%{ |
23 |
|
|
# @src->@ |
24 |
|
|
|
25 |
|
|
# specify the source files to use |
26 |
|
|
# full paths or paths relative to the makefile can be included |
27 |
|
|
# all files, regardless of directory, will have their object |
28 |
|
|
# files created in the common object directory. |
29 |
|
|
# Note that this means this makefile will not work correctly |
30 |
|
|
# if two source files with the same name (source.c or source.cpp) |
31 |
|
|
# are included from different directories. Also note that spaces |
32 |
|
|
# in folder names do not work well with this makefile. |
33 |
|
|
SRCS=main.cpp cl_amp.cpp prefs.cpp prefs_window.cpp mem.cpp cpu.cpp sid.cpp |
34 |
|
|
|
35 |
|
|
# specify the resource files to use |
36 |
|
|
# full path or a relative path to the resource file can be used. |
37 |
|
|
RSRCS= SIDPlayer.rsrc |
38 |
|
|
|
39 |
|
|
# @<-src@ |
40 |
|
|
#%} |
41 |
|
|
|
42 |
|
|
# end support for Pe and Eddie |
43 |
|
|
|
44 |
|
|
# specify additional libraries to link against |
45 |
|
|
# there are two acceptable forms of library specifications |
46 |
|
|
# - if your library follows the naming pattern of: |
47 |
|
|
# libXXX.so or libXXX.a you can simply specify XXX |
48 |
|
|
# library: libbe.so entry: be |
49 |
|
|
# |
50 |
|
|
# - if your library does not follow the standard library |
51 |
|
|
# naming scheme you need to specify the path to the library |
52 |
|
|
# and it's name |
53 |
|
|
# library: my_lib.a entry: my_lib.a or path/my_lib.a |
54 |
|
|
LIBS=be media textencoding |
55 |
|
|
|
56 |
|
|
# specify additional paths to directories following the standard |
57 |
|
|
# libXXX.so or libXXX.a naming scheme. You can specify full paths |
58 |
|
|
# or paths relative to the makefile. The paths included may not |
59 |
|
|
# be recursive, so include all of the paths where libraries can |
60 |
|
|
# be found. Directories where source files are found are |
61 |
|
|
# automatically included. |
62 |
|
|
LIBPATHS= |
63 |
|
|
|
64 |
|
|
# additional paths to look for system headers |
65 |
|
|
# thes use the form: #include <header> |
66 |
|
|
# source file directories are NOT auto-included here |
67 |
|
|
SYSTEM_INCLUDE_PATHS = |
68 |
|
|
|
69 |
|
|
# additional paths to look for local headers |
70 |
|
|
# thes use the form: #include "header" |
71 |
|
|
# source file directories are automatically included |
72 |
|
|
LOCAL_INCLUDE_PATHS=clamp_includes |
73 |
|
|
|
74 |
|
|
# specify the level of optimization that you desire |
75 |
|
|
# NONE, SOME, FULL |
76 |
|
|
OPTIMIZE=FULL |
77 |
|
|
|
78 |
|
|
# specify any preprocessor symbols to be defined. The symbols will not |
79 |
|
|
# have their values set automatically; you must supply the value (if any) |
80 |
|
|
# to use. For example, setting DEFINES to "DEBUG=1" will cause the |
81 |
|
|
# compiler option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG" |
82 |
|
|
# would pass "-DDEBUG" on the compiler's command line. |
83 |
|
|
DEFINES=SID_PLAYER |
84 |
|
|
|
85 |
|
|
# specify special warning levels |
86 |
|
|
# if unspecified default warnings will be used |
87 |
|
|
# NONE = supress all warnings |
88 |
|
|
# ALL = enable all warnings |
89 |
|
|
WARNINGS = |
90 |
|
|
|
91 |
|
|
# specify whether image symbols will be created |
92 |
|
|
# so that stack crawls in the debugger are meaningful |
93 |
|
|
# if TRUE symbols will be created |
94 |
|
|
SYMBOLS =TRUE |
95 |
|
|
|
96 |
|
|
# specify debug settings |
97 |
|
|
# if TRUE will allow application to be run from a source-level |
98 |
|
|
# debugger. Note that this will disable all optimzation. |
99 |
|
|
DEBUGGER = |
100 |
|
|
|
101 |
|
|
# specify additional compiler flags for all files |
102 |
|
|
COMPILER_FLAGS = |
103 |
|
|
|
104 |
|
|
# specify additional linker flags |
105 |
|
|
LINKER_FLAGS = |
106 |
|
|
|
107 |
|
|
|
108 |
|
|
## include the makefile-engine |
109 |
|
|
include /boot/develop/etc/makefile-engine |
110 |
|
|
|
111 |
|
|
|
112 |
|
|
# Create links to Frodo sources |
113 |
|
|
main.cpp: cpu_macros.h cpu_opcodes.h prefs.h sid.cpp |
114 |
|
|
cpu_macros.h cpu_opcodes.h prefs.h sid.cpp: |
115 |
|
|
ln -s ../../Frodo/src/$@ $@ |
116 |
|
|
|
117 |
|
|
# Create distribution |
118 |
|
|
BUILD_DIR = /tmp/$(NAME) |
119 |
|
|
ARCHIVE_NAME = SIDPlayer_4.0_$(CPU).zip |
120 |
|
|
dist: |
121 |
|
|
mkdir $(BUILD_DIR) |
122 |
|
|
mkdir $(BUILD_DIR)/src |
123 |
|
|
cp *.cpp *.h Makefile $(BUILD_DIR)/src |
124 |
|
|
cp -R clamp_includes $(BUILD_DIR)/src |
125 |
|
|
cp SIDPlayer.rsrc $(BUILD_DIR)/src |
126 |
|
|
cp obj.$(CPU)/$(NAME) $(BUILD_DIR) |
127 |
|
|
cp -R "../PSID Demo" $(BUILD_DIR) |
128 |
|
|
cp ../COPYING ../README $(BUILD_DIR) |
129 |
|
|
mimeset -f $(BUILD_DIR) |
130 |
|
|
(cd /tmp; zip -r $(ARCHIVE_NAME) $(NAME)) |
131 |
|
|
mv /tmp/$(ARCHIVE_NAME) $(ARCHIVE_NAME) |
132 |
|
|
rm -rf $(BUILD_DIR) |