1##
2##  This file is a part of BeOS USB Serial driver project.
3##  Copyright (c) 2005 by Siarzhuk Zharski <imker@gmx.li>
4##  All rights reserved.
5##
6## Based on BeOS Generic Makefile v2.2 ##
7
8## Fill in this file to specify the project being created, and the referenced
9## makefile-engine will do all of the hard work for you.  This handles both
10## Intel and PowerPC builds of the BeOS.
11
12## Application Specific Settings ---------------------------------------------
13#SETVERSION=setversion
14#GETVERSION=version
15#ZIP=zip
16#ZIPOPT=-j
17
18# specify the name of the binary
19NAME=datafab
20
21# specify the type of binary
22#	APP:	Application
23#	SHARED:	Shared library or add-on
24#	STATIC:	Static library archive
25#	DRIVER: Kernel Driver
26TYPE=DRIVER
27
28# some version definitions
29#VER_MAJ = 0
30#VER_MID = 1
31#VER_MIN = 0
32#VER_TYP = d #d-development a-alpha b-beta g-RC f-release
33#VER_BLD = 18
34#VER_SHORT = $(NAME)
35#VER_LONG  = "The module for SCSI interface to USB mass storage devices. Copyright "`echo -n -e '\302\251'`" 2003-2004 by Siarzhuk Zharski"
36
37#	add support for new Pe and Eddie features
38#	to fill in generic makefile
39
40#%{
41# @src->@ 
42
43#	specify the source files to use
44#	full paths or paths relative to the makefile can be included
45# 	all files, regardless of directory, will have their object
46#	files created in the common object directory.
47#	Note that this means this makefile will not work correctly
48#	if two source files with the same name (source.c or source.cpp)
49#	are included from different directories.  Also note that spaces
50#	in folder names do not work well with this makefile.
51SRCS=datafab.c
52     
53#	specify the resource files to use
54#	full path or a relative path to the resource file can be used.
55RSRCS= 
56
57# @<-src@ 
58#%}
59
60#	end support for Pe and Eddie
61
62#	specify additional libraries to link against
63#	there are two acceptable forms of library specifications
64#	-	if your library follows the naming pattern of:
65#		libXXX.so or libXXX.a you can simply specify XXX
66#		library: libbe.so entry: be
67#		
68#	- 	if your library does not follow the standard library
69#		naming scheme you need to specify the path to the library
70#		and it's name
71#		library: my_lib.a entry: my_lib.a or path/my_lib.a
72LIBS= 
73
74#	specify additional paths to directories following the standard
75#	libXXX.so or libXXX.a naming scheme.  You can specify full paths
76#	or paths relative to the makefile.  The paths included may not
77#	be recursive, so include all of the paths where libraries can
78#	be found.  Directories where source files are found are
79#	automatically included.
80LIBPATHS= 
81
82#	additional paths to look for system headers
83#	thes use the form: #include <header>
84#	source file directories are NOT auto-included here
85SYSTEM_INCLUDE_PATHS = 
86
87#	additional paths to look for local headers
88#	thes use the form: #include "header"
89#	source file directories are automatically included
90LOCAL_INCLUDE_PATHS = ../
91
92#	specify the level of optimization that you desire
93#	NONE, SOME, FULL
94OPTIMIZE= 
95
96#	specify any preprocessor symbols to be defined.  The symbols will not
97#	have their values set automatically; you must supply the value (if any)
98#	to use.  For example, setting DEFINES to "DEBUG=1" will cause the
99#	compiler option "-DDEBUG=1" to be used.  Setting DEFINES to "DEBUG"
100#	would pass "-DDEBUG" on the compiler's command line.
101#DEFINES=DEBUG=1
102
103#	specify special warning levels
104#	if unspecified default warnings will be used
105#	NONE = supress all warnings
106#	ALL = enable all warnings
107WARNINGS=
108
109#	specify whether image symbols will be created
110#	so that stack crawls in the debugger are meaningful
111#	if TRUE symbols will be created
112SYMBOLS=TRUE
113
114#	specify debug settings
115#	if TRUE will allow application to be run from a source-level
116#	debugger.  Note that this will disable all optimzation.
117DEBUGGER=TRUE
118
119#	specify additional compiler flags for all files
120COMPILER_FLAGS =
121
122#	specify additional linker flags
123LINKER_FLAGS =
124
125#	specify the version of this particular item
126#	(for example, -app 3 4 0 d 0 -short 340 -long "340 "`echo -n -e '\302\251'`"1999 GNU GPL") 
127#	This may also be specified in a resource.
128#APP_VERSION = 
129#VERSION = $(VER_MAJ) $(VER_MID) $(VER_MIN) $(VER_TYP) $(VER_BLD) -short $(VER_SHORT) -long $(VER_LONG)
130#APP_VERSION = -app $(VERSION)
131#SYS_VERSION = -system $(VERSION)
132
133#	(for TYPE == DRIVER only) Specify desired location of driver in the /dev
134#	hierarchy. Used by the driverinstall rule. E.g., DRIVER_PATH = video/usb will
135#	instruct the driverinstall rule to place a symlink to your driver's binary in
136#	~/add-ons/kernel/drivers/dev/video/usb, so that your driver will appear at
137#	/dev/video/usb when loaded. Default is "misc".
138DRIVER_PATH=
139
140CFLAGS += -Wall
141
142## include the makefile-engine
143include $(BUILDHOME)/etc/makefile-engine
144   
145install:	default 
146	copyattr --data $(TARGET) /boot/home/config/add-ons/kernel/generic/usb_scsi_extensions/$(NAME)
147