1SubDir HAIKU_TOP src add-ons kernel drivers audio echo 3g ; 2 3SetSubDirSupportedPlatformsBeOSCompatible ; 4 5if $(TARGET_PLATFORM) != haiku { 6 UseHeaders [ FDirName $(HAIKU_TOP) headers os drivers ] : true ; 7 # We need the public pcmcia headers also when not compiling for Haiku. 8} 9 10SubDirHdrs $(HAIKU_TOP) src add-ons kernel drivers audio echo ; 11SubDirHdrs $(HAIKU_TOP) src add-ons kernel drivers audio echo generic ; 12SubDirHdrs $(HAIKU_TOP) src add-ons kernel drivers audio echo generic DSP ; 13SubDirHdrs $(HAIKU_TOP) src add-ons kernel drivers audio echo generic ASIC ; 14 15UsePrivateHeaders [ FDirName kernel ] ; # For kernel_cpp.cpp 16 17# set some additional defines 18SubDirCcFlags -DECHO_BEOS -DECHO3G_FAMILY ; 19SubDirC++Flags -DECHO_BEOS -DECHO3G_FAMILY -fno-rtti -DAUTO_DUCK_ALLOCATE ; 20 21local echo_files = 22 C3g.cpp 23 C3gDco.cpp 24 CChannelMask.cpp 25 CDaffyDuck.cpp 26 CDspCommObject.cpp 27 CDspCommObjectVmixer.cpp 28 CEchoGals.cpp 29 CEchoGals_info.cpp 30 CEchoGals_midi.cpp 31 CEchoGals_mixer.cpp 32 CEchoGals_power.cpp 33 CEchoGals_transport.cpp 34 CEchoGalsMTC.cpp 35 CEchoGalsVmixer.cpp 36 CLineLevel.cpp 37 CMidiInQ.cpp 38 CMonitorCtrl.cpp 39 CMtcSync.cpp 40 CPipeOutCtrl.cpp 41 ; 42 43KernelAddon echo3g : 44 kernel_cpp.cpp 45 debug.c 46 echo.cpp 47 midi.cpp 48 multi.cpp 49 util.c 50 $(echo_files) 51 OsSupportBeOS.cpp 52; 53 54# suppress warnings on some files including the echo headers which provoke ugly warnings 55ObjectC++Flags $(echo_files) : -w ; 56ObjectC++Flags echo.cpp : -w ; 57 58SEARCH on [ FGristFiles 59 $(echo_files) 60 OsSupportBeOS.cpp 61 ] = [ FDirName $(HAIKU_TOP) src add-ons kernel drivers audio echo generic ] ; 62 63SEARCH on [ FGristFiles 64 kernel_cpp.cpp 65 ] = [ FDirName $(HAIKU_TOP) src system kernel util ] ; 66 67SEARCH on [ FGristFiles 68 debug.c 69 echo.cpp 70 midi.cpp 71 multi.cpp 72 util.c 73 ] = [ FDirName $(HAIKU_TOP) src add-ons kernel drivers audio echo ] ; 74 75Package haiku-echo3g-cvs 76 : 77 echo3g 78 : 79 boot home config add-ons kernel drivers bin ; 80 81PackageDriverSymLink haiku-echo3g-cvs : audio hmulti echo3g ; 82PackageDriverSymLink haiku-echo3g-cvs : midi echo3g ; 83 84Package haiku-echo3g-cvs : <echo!driver>echo.settings 85 : boot home config settings kernel drivers ; 86 87