xref: /haiku/src/system/boot/arch/m68k/Jamfile (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1SubDir HAIKU_TOP src system boot arch m68k ;
2
3local platform ;
4for platform in [ MultiBootSubDirSetup amiga_m68k atari_m68k next_m68k ] {
5	on $(platform) {
6		DEFINES += _BOOT_MODE ;
7
8		local kernelArchSources =
9			arch_elf.cpp
10		;
11
12		local librootStringArchSources =
13			arch_string.S
14		;
15
16		local librootOsArchSources =
17			byteorder.S
18		;
19
20		local librootStringGenericSources =
21			#memcpy.c
22			memset.c
23		;
24
25		BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] :
26			$(kernelArchSources)
27			$(librootStringArchSources)
28			$(librootOsArchSources)
29			$(librootStringGenericSources)
30			:
31		;
32
33		BootMergeObject boot_arch_m68k_030.o :
34			mmu_030.cpp
35			: -Wno-unused -mcpu=68030
36		;
37
38		BootMergeObject boot_arch_m68k_040.o :
39			mmu_040.cpp
40			: -Wno-unused -mcpu=68040 -Wa,-m68040
41		;
42
43		BootMergeObject boot_arch_m68k_060.o :
44			mmu_060.cpp
45			: -Wno-unused -mcpu=68060
46		;
47
48		SEARCH on [ FGristFiles $(kernelArchSources) ]
49			= [ FDirName $(HAIKU_TOP) src system kernel arch m68k ] ;
50		SEARCH on [ FGristFiles $(librootStringArchSources) ]
51			= [ FDirName $(HAIKU_TOP) src system libroot posix string arch m68k ] ;
52		SEARCH on [ FGristFiles $(librootOsArchSources) ]
53			= [ FDirName $(HAIKU_TOP) src system libroot os arch m68k ] ;
54		SEARCH on [ FGristFiles $(librootStringGenericSources) ]
55			= [ FDirName $(HAIKU_TOP) src system libroot posix string arch generic ] ;
56	}
57}
58