ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SIDPlayer/src/Makefile
Revision: 1.2
Committed: 2000-09-18T22:41:10Z (23 years, 2 months ago) by cebix
Branch: MAIN
Changes since 1.1: +31 -18 lines
Log Message:
added targets for binary/source distributions

File Contents

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