-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
236 lines (180 loc) · 8.68 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
## ****************************************** ##
## Zeta Generic Makefile v3.0-internal ##
## Fill in this file to specify the project being created, and the referenced
## makefile-engine will do all of the hard work for you.
## Application Specific Settings ---------------------------------------------
# specify the name of the binary
NAME := Project1
# specify the type of binary
# APP: Application
# SHARED: Shared library
# ADDON: An add-on
# STATIC: Static library archive
# DRIVER: Kernel Driver
# MODULE: Kernel Module
# DECOR: A window decorator project
TYPE := SHARED
# add support for new Pe and Eddie features
# to fill in generic makefile
#%{
# @src->@
# specify the source files to use
# full paths or paths relative to the makefile can be included
# all files, regardless of directory, will have their object
# files created in the common object directory.
# Note that this means this makefile will not work correctly
# if two source files with the same name (source.c or source.cpp)
# are included from different directories. Also note that spaces
# in folder names do not work well with this makefile.
# If you leave this blank, then all *.c *.cpp *.S *.s *.asm files
# in the top level local directory are automatically included.
SRCS := sort_save.cpp
# specify the resource files to use
# full path or a relative path to the resource file can be used.
RSRC := ss.icon.rsrc \
# Specify your RDEF files, if any.
RDEFS := ss.icon.rdef
# @<-src@
#%}
# end support for Pe and Eddie
# specify additional libraries to link against
# there are two acceptable forms of library specifications
# - if your library follows the naming pattern of:
# libXXX.so or libXXX.a you can simply specify XXX
# library: libbe.so entry: be
#
# - if your library does not follow the standard library
# naming scheme you need to specify the path to the library
# and it's name
# library: my_lib.a entry: my_lib.a or path/my_lib.a
LIBS := experimental \
be \
zeta
# specify additional paths to directories following the standard
# libXXX.so or libXXX.a naming scheme. You can specify full paths
# or paths relative to the makefile. The paths included may not
# be recursive, so include all of the paths where libraries can
# be found. Directories where source files are found are
# automatically included.
LIBPATHS :=
# additional paths to look for system headers
# these use the form: #include <header.h>
# source file directories are NOT auto-included here
SYSTEM_INCLUDE_PATHS :=
# additional paths to look for local headers
# thes use the form: #include "header.h"
# source file directories are automatically included
LOCAL_INCLUDE_PATHS :=
# specify the level of optimization that you desire
# NONE, SOME, FULL
OPTIMIZE := FULL
# specify any preprocessor symbols to be defined. The symbols will not
# have their values set automatically; you must supply the value (if any)
# to use. For example, setting DEFINES to "DEBUG=1" will cause the
# compiler option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG"
# would pass "-DDEBUG" on the compiler's command line.
DEFINES :=
# specify special warning levels
# if unspecified default warnings will be used
# NONE = supress all warnings
# ALL = enable all warnings
WARNINGS :=
# specify whether image symbols will be created
# so that stack crawls in the debugger are meaningful
# if TRUE symbols will be created
SYMBOLS :=
# specify debug settings
# if TRUE will allow application to be run from a source-level
# debugger. Note that this will disable all optimzation.
DEBUGGER :=
# specify additional compiler flags for all files
COMPILER_FLAGS :=
# specify additional linker flags
LINKER_FLAGS :=
# specify additional flex flags
FLEX_FLAGS :=
# specify additional bison flags
BISON_FLAGS :=
# specify the version of this particular item (follows setversion parameter structure)
# for example:
# -app 3 4 0 d 0 -short "340" -long "340 "`echo -n -e '©'`"1999 GNU GPL"
# -app 1 0 1 f 0 -short "App 1.0.1" -long "Company App 1.0.1 written by FOO"
# This may also be specified in a resource.
APP_VERSION :=
# (for TYPE == DRIVER only) Specify desired location of driver in the /dev
# hierarchy. Used by the driverinstall rule. E.g., DRIVER_PATH = video/usb will
# instruct the driverinstall rule to place a symlink to your driver's binary in
# ~/add-ons/kernel/drivers/dev/video/usb, so that your driver will appear at
# /dev/video/usb when loaded. Default is "misc".
DRIVER_PATH :=
# Specify if you want the object files to be somewhere besides the default location.
OBJ_DIR := _objects
# Specify a non default placement for the target
TARGET_DIR := .
# If you want to see the complete build line for every file, then set this to 'true',
# otherwise it will tell you at the end what the build flags were.
CHATTY :=
# Special Zeta build system var
BOOTREL_INSTALL_DIR := apps/System/Project1
# Specify a directory for the 'install' target.
INSTALL_DIR := /boot/$(BOOTREL_INSTALL_DIR)
# Specify the name of this makefile.
# If you leave this blank, the makefile will not be considered as part of the
# dependenies for the project, and the project will not be rebuilt when the makefile
# is changed
MAKEFILE :=
# Specify TRUE if you want the install target to create links in the BeMenu
MENU_LINKS := TRUE
# Related to MENU_LINKS, specify the name of the direcotry in the BeMenu
# you wish the link to go in. If the directory does not exist, it will be
# created.
APP_MENU := Software/System
# If, for some reason, you don't want to use the dependencies (flex and yacc seem to choke
# on them), set this to false
DODEPS :=
# Set this variable if you have an svg text file you wish to use as
# your target's icon.
SVG_ICON :=
# If you have some fancy custom build steps to do, specify them here
EXTRA_BUILD_STEPS :=
# If you have some other files that should trigger a re-link, such as libs in the same
# project that may get rebuilt, specify the full path to them here.
EXTRA_DEPS :=
##################################################################################################
#
## Z E T A S p e c i f i c
#
##################################################################################################
# Source lib dependencies:
# Specify the libs we have the sources to here that this project depends on and it will
# be built if it is out of date. Not as cool and automatic as scons, but hey, it works
# for the most part: example: SRC_LIBS_SHARED := be zeta tracker
SRC_LIBS_SHARED :=
SRC_LIBS_STATIC :=
# Specify the path to the Screenshot file. If this is not specified, then the SCREENSHOT default
# will be $(PWD)/$(NAME).png
# If this application is not to have a screenshot, use NONE
SCREENSHOT :=
# Specify the category that this zeta component belongs in
ZETA_CATEGORY := System
# The .zip package that this file will be included in. If this is left blank, then
# $(NAME).zip will be used.
# This feature is meant for having multiple items included in the a single .zip package
PACKAGE :=
# If this target is a component of another target. That is, if this is part of a package
# but not the 'main' part. Typically the main app will have the screenshot, and set
# the relevant attributes. If this is set to 'true' then this makefile will not attempt to set
# attributes or a screenshot or a description.
IS_COMPONENT :=
# If this is a mandatory component, set this to 'false'. The default is true.
# Optional components will be zipped up with thier attribs and everything.
# Non-Optional (mandatory) components will just be copied to the directory structure and
# added to the manifest for copying during install
OPTIONAL :=
# Specify the names of the Language files here. (ie: AboutWindow.de AboutWindow.en)
LANG_FILES :=
# If your language files are in a different directory, specify the relative directory here.
# ie: Language/Dictionaries
LANG_FILES_DIR :=
include $(BUILD_SCRIPT_DIR)/makefile-engine.zeta
# include /boot/develop/etc/makefile-engine