From 8a1faae799346021744f17311b6867e42c2dc77f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 13 Aug 2002 22:10:06 +0000 Subject: [PATCH] Fixed the build process of bfs; -g and -O2 don't mix well together... To enable debug output, type: $ DEBUG=1 jam Also, it's now automatically installed in /boot/home/config/add-ons/kernel/file_systems git-svn-id: file:///srv/svn/repos/haiku/trunk/current@751 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/Jamfile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/add-ons/kernel/file_systems/bfs/Jamfile b/src/add-ons/kernel/file_systems/bfs/Jamfile index 427f5feb35..3eee79a1a2 100644 --- a/src/add-ons/kernel/file_systems/bfs/Jamfile +++ b/src/add-ons/kernel/file_systems/bfs/Jamfile @@ -1,10 +1,9 @@ SubDir OBOS_TOP src add-ons kernel file_systems bfs ; -{ - local debug = -g ; +if $(DEBUG) { local defines = [ FDefines DEBUG ] ; - SubDirCcFlags $(defines) $(debug) ; - SubDirC++Flags $(defines) $(debug) ; + SubDirCcFlags $(defines) ; + SubDirC++Flags $(defines) ; } R5KernelAddon obfs : [ FDirName kernel file_systems bfs ] : @@ -22,3 +21,14 @@ R5KernelAddon obfs : [ FDirName kernel file_systems bfs ] : BufferPool.cpp ; +rule InstallBFS +{ + Depends install : $(1) ; +} + +actions ignore InstallBFS +{ + cp $(1) /boot/home/config/add-ons/kernel/file_systems/ +} + +InstallBFS obfs ;