xref: /haiku/src/add-ons/kernel/file_systems/iso9660/Jamfile (revision db10640de90f7f9519ba2da9577b7c1af3c64f6b)
1SubDir OBOS_TOP src add-ons kernel file_systems iso9660 ;
2
3# save original optimization level
4oldOPTIM = $(OPTIM) ;
5
6# set some additional defines (most of them are currently unused in the iso9660 add-on)
7{
8	local defines =
9		KEEP_WRONG_DIRENT_RECLEN
10		;
11
12	if $(COMPILE_FOR_R5) {
13		defines += COMPILE_FOR_R5 ;
14	}
15
16	if $(DEBUG) = 0 {
17		# the gcc on BeOS doesn't compile BFS correctly with -O2 or more
18		OPTIM = -O1 ;
19	}
20
21	defines = [ FDefines $(defines) ] ;
22	SubDirCcFlags $(defines) -Wall -Wno-multichar ;
23}
24
25R5KernelAddon iso9660 : [ FDirName kernel file_systems iso9660 ] :
26	iso.c
27	kernel_interface.c
28	;
29
30rule InstallISO9660
31{
32	Depends $(<) : $(>) ;
33}
34
35actions ignore InstallISO9660
36{
37	cp $(>) /boot/home/config/add-ons/kernel/file_systems/
38}
39
40InstallISO9660 install : iso9660 ;
41
42# restore original optimization level
43OPTIM = $(oldOPTIM) ;
44