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