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		local kernelArchSources =
7			arch_elf.cpp
8		;
9
10		local librootStringArchSources =
11			arch_string.S
12		;
13
14		local librootOsArchSources =
15			byteorder.S
16		;
17
18		local librootStringGenericSources =
19			#memcpy.c
20			memset.c
21		;
22
23		BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] :
24			$(kernelArchSources)
25			$(librootStringArchSources)
26			$(librootOsArchSources)
27			$(librootStringGenericSources)
28			:
29		;
30
31		BootMergeObject boot_arch_m68k_030.o :
32			mmu_030.cpp
33			: -Wno-unused -mcpu=68030
34		;
35
36		BootMergeObject boot_arch_m68k_040.o :
37			mmu_040.cpp
38			: -Wno-unused -mcpu=68040 -Wa,-m68040
39		;
40
41		BootMergeObject boot_arch_m68k_060.o :
42			mmu_060.cpp
43			: -Wno-unused -mcpu=68060
44		;
45
46		SEARCH on [ FGristFiles $(kernelArchSources) ]
47			= [ FDirName $(HAIKU_TOP) src system kernel arch m68k ] ;
48		SEARCH on [ FGristFiles $(librootStringArchSources) ]
49			= [ FDirName $(HAIKU_TOP) src system libroot posix string arch m68k ] ;
50		SEARCH on [ FGristFiles $(librootOsArchSources) ]
51			= [ FDirName $(HAIKU_TOP) src system libroot os arch m68k ] ;
52		SEARCH on [ FGristFiles $(librootStringGenericSources) ]
53			= [ FDirName $(HAIKU_TOP) src system libroot posix string arch generic ] ;
54	}
55}
56