1## BeOS Generic Makefile v2.2 ## 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 10NAME= ../ramfs 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 17TYPE= DRIVER 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. 33SRCS= AllocationInfo.cpp AreaUtils.cpp Attribute.cpp AttributeIndex.cpp \ 34 AttributeIndexImpl.cpp AttributeIterator.cpp \ 35 BlockAllocator.cpp BlockAllocatorArea.cpp BlockAllocatorAreaBucket.cpp \ 36 BlockReferenceManager.cpp DataContainer.cpp Debug.cpp \ 37 Directory.cpp Entry.cpp EntryIterator.cpp EntryListener.cpp File.cpp \ 38 Index.cpp IndexDirectory.cpp LastModifiedIndex.cpp Locker.cpp \ 39 NameIndex.cpp Node.cpp \ 40 NodeListener.cpp \ 41 NodeTable.cpp Query.cpp SizeIndex.cpp String.cpp SymLink.cpp Volume.cpp \ 42 cpp.cpp kernel_interface.cpp 43 44# specify the resource files to use 45# full path or a relative path to the resource file can be used. 46RSRCS= 47 48# @<-src@ 49#%} 50 51# end support for Pe and Eddie 52 53# specify additional libraries to link against 54# there are two acceptable forms of library specifications 55# - if your library follows the naming pattern of: 56# libXXX.so or libXXX.a you can simply specify XXX 57# library: libbe.so entry: be 58# 59# - if your library does not follow the standard library 60# naming scheme you need to specify the path to the library 61# and it's name 62# library: my_lib.a entry: my_lib.a or path/my_lib.a 63LIBS= /boot/develop/tools/gnupro/lib/gcc-lib/i586-beos/2.9-beos-000224/libgcc.a 64# specify additional paths to directories following the standard 65# libXXX.so or libXXX.a naming scheme. You can specify full paths 66# or paths relative to the makefile. The paths included may not 67# be recursive, so include all of the paths where libraries can 68# be found. Directories where source files are found are 69# automatically included. 70LIBPATHS= 71 72# additional paths to look for system headers 73# thes use the form: #include <header> 74# source file directories are NOT auto-included here 75SYSTEM_INCLUDE_PATHS = 76 77# additional paths to look for local headers 78# thes use the form: #include "header" 79# source file directories are automatically included 80LOCAL_INCLUDE_PATHS = 81 82# specify the level of optimization that you desire 83# NONE, SOME, FULL 84OPTIMIZE= NONE 85 86# specify any preprocessor symbols to be defined. The symbols will not 87# have their values set automatically; you must supply the value (if any) 88# to use. For example, setting DEFINES to "DEBUG=1" will cause the 89# compiler option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG" 90# would pass "-DDEBUG" on the compiler's command line. 91# 92# USER - [0/1] userland build 93# DEBUG - [0/1] Enable debugging. 94# DBG_PRINT - [0/1] Print debug output to file (only if DEBUG). 95# DBG_PRINT_FILE - [0/1] Name of debug output file 96# (only if DBG_PRINT). 97# 98DEFINES= USER=0 \ 99 DEBUG=1 \ 100 DEBUG_PRINT=1 \ 101 DEBUG_PRINT_FILE=\"/var/log/ramfs.log\" \ 102 B_BAD_DATA=B_ERROR 103 104# specify special warning levels 105# if unspecified default warnings will be used 106# NONE = supress all warnings 107# ALL = enable all warnings 108WARNINGS = ALL 109 110# specify whether image symbols will be created 111# so that stack crawls in the debugger are meaningful 112# if TRUE symbols will be created 113SYMBOLS = TRUE 114 115# specify debug settings 116# if TRUE will allow application to be run from a source-level 117# debugger. Note that this will disable all optimzation. 118DEBUGGER = TRUE 119 120# specify additional compiler flags for all files 121#COMPILER_FLAGS = -include "cpp.h" -fno-exceptions -fno-rtti \ 122 123COMPILER_FLAGS = -include "cpp.h" -fno-exceptions \ 124 -Wmissing-prototypes -Woverloaded-virtual \ 125 -Wpointer-arith -Wcast-align -Wsign-compare 126 127# specify additional linker flags 128LINKER_FLAGS = 129 130# specify the version of this particular item 131# (for example, -app 3 4 0 d 0 -short 340 -long "340 "`echo -n -e '\302\251'`"1999 GNU GPL") 132# This may also be specified in a resource. 133APP_VERSION = 134 135# (for TYPE == DRIVER only) Specify desired location of driver in the /dev 136# hierarchy. Used by the driverinstall rule. E.g., DRIVER_PATH = video/usb will 137# instruct the driverinstall rule to place a symlink to your driver's binary in 138# ~/add-ons/kernel/drivers/dev/video/usb, so that your driver will appear at 139# /dev/video/usb when loaded. Default is "misc". 140DRIVER_PATH = 141 142## include the makefile-engine 143include $(BUILDHOME)/etc/makefile-engine 144