Added BFS_REPLACEMENT define that will enable compiling OpenBFS as as full

BFS replacement (will report itself as "bfs" instead of "obfs". Is there a
way to change the add-on name based on the same define?


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7403 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Bruno G. Albuquerque 2004-05-04 01:24:27 +00:00
parent c832ff1e1b
commit e4758ac382
2 changed files with 9 additions and 1 deletions

View File

@ -11,9 +11,17 @@ oldOPTIM = $(OPTIM) ;
#BFS_BIG_ENDIAN_ONLY
;
# Force the API version to be the R5 one even when compiling
# under Dano/Zeta
if $(COMPILE_FOR_R5) {
defines += COMPILE_FOR_R5 ;
}
# Enable OpenBFS to be compiled as a full BFS replacement. Will
# report itself as "bfs" instead of "obfs"
if $(BFS_REPLACEMENT) {
defines += BFS_REPLACEMENT
}
if $(DEBUG) = 0 {
# the gcc on BeOS doesn't compile BFS correctly with -O2 or more

View File

@ -215,7 +215,7 @@ vnode_ops fs_entry = {
#define BFS_IO_SIZE 65536
// ToDo: has to change to "bfs" later
#ifdef COMPILE_FOR_R5
#ifdef BFS_REPLACEMENT
# define BFS_NAME "bfs"
#else
# define BFS_NAME "obfs"