xref: /haiku/src/system/libroot/posix/glibc/arch/m68k/Jamfile (revision 9feac945ad0a96271df02f2f93180575b45c5da7)
1cc9ad8e8SFrançois RevolSubDir HAIKU_TOP src system libroot posix glibc arch m68k ;
2cc9ad8e8SFrançois Revol
3f504f610SAugustin CavalierSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include arch m68k ;
4cc9ad8e8SFrançois RevolSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include arch generic ;
5cc9ad8e8SFrançois RevolSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include ;
6f504f610SAugustin CavalierSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc libio ;
7cc9ad8e8SFrançois RevolSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc stdlib ;
8cc9ad8e8SFrançois RevolSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc math ;
9cc9ad8e8SFrançois RevolSubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc ;
10cc9ad8e8SFrançois Revol
11cc9ad8e8SFrançois RevolSubDirHdrs $(HAIKU_TOP) src system libroot posix glibc arch generic ;
12cc9ad8e8SFrançois Revol
13ae901935SOliver TappeUsePrivateHeaders libroot ;
14ae901935SOliver Tappe
15cc9ad8e8SFrançois Revolif $(OPTIM) = -O0 {
16cc9ad8e8SFrançois Revol	OPTIM = -O ;
17cc9ad8e8SFrançois Revol}
18cc9ad8e8SFrançois Revol
19f504f610SAugustin CavalierSubDirCcFlags -D_GNU_SOURCE -D_IEEE_LIBM -DPIC ;
20086766edSFrançois RevolSubDirAsFlags -DMOTOROLA_SYNTAX -DPIC ;
21cc9ad8e8SFrançois Revol
22cc9ad8e8SFrançois Revollocal genericSources =
23cc9ad8e8SFrançois Revol	cmp.c dbl2mpn.c divrem.c
24f504f610SAugustin Cavalier	mpn2dbl.c mpn2flt.c mpn2ldbl.c
25cc9ad8e8SFrançois Revol	mul.c mul_n.c
26f504f610SAugustin Cavalier	ldbl2mpn.c
27cc9ad8e8SFrançois Revol
28*9feac945SAugustin Cavalier	s_isnan.c s_isnanf.c
29*9feac945SAugustin Cavalier	s_finite.c #s_finitef.c
30*9feac945SAugustin Cavalier	s_isinf.c #s_isinff.c
31*9feac945SAugustin Cavalier
32086766edSFrançois Revol	s_clog.c s_clogf.c #s_clogl.c
33086766edSFrançois Revol	s_csqrt.c s_csqrtf.c #s_csqrtl.c
34086766edSFrançois Revol	s_cacos.c s_cacosf.c #s_cacosl.c
35086766edSFrançois Revol	s_cacosh.c s_cacoshf.c #s_cacoshl.c
36086766edSFrançois Revol	s_casin.c s_casinf.c #s_casinl.c
37086766edSFrançois Revol	s_casinh.c s_casinhf.c #s_casinhl.c
38086766edSFrançois Revol	s_catan.c s_catanf.c #s_catanl.c
39086766edSFrançois Revol	s_catanh.c s_catanhf.c #s_catanhl.c
40086766edSFrançois Revol	s_csin.c s_csinf.c #s_csinl.c
41086766edSFrançois Revol	s_csinh.c s_csinhf.c #s_csinhl.c
42086766edSFrançois Revol	s_ctan.c s_ctanf.c #s_ctanl.c
43086766edSFrançois Revol	s_ctanh.c s_ctanhf.c #s_ctanhl.c
44086766edSFrançois Revol	s_ccos.c s_ccosf.c #s_ccosl.c
45086766edSFrançois Revol	s_ccosh.c s_ccoshf.c #s_ccoshl.c
46086766edSFrançois Revol	s_cexp.c s_cexpf.c #s_cexpl.c
47086766edSFrançois Revol	s_clog10.c s_clog10f.c #s_clog10l.c
48086766edSFrançois Revol	s_cpow.c s_cpowf.c #s_cpowl.c
49086766edSFrançois Revol	s_cproj.c s_cprojf.c #s_cprojl.c
50cc9ad8e8SFrançois Revol	;
51cc9ad8e8SFrançois Revol
52b0944c78SIngo Weinholdlocal architectureObject ;
53b0944c78SIngo Weinholdfor architectureObject in [ MultiArchSubDirSetup m68k ] {
54b0944c78SIngo Weinhold	on $(architectureObject) {
55b0944c78SIngo Weinhold		local architecture = $(TARGET_PACKAGING_ARCH) ;
56b0944c78SIngo Weinhold
57f504f610SAugustin Cavalier		MergeObject <$(architecture)>posix_gnu_arch_$(TARGET_ARCH).o :
58dd68e9e8SFrançois Revol			add_n.S
59dd68e9e8SFrançois Revol			addmul_1.S
60f504f610SAugustin Cavalier
61dd68e9e8SFrançois Revol			mul_1.S
62f504f610SAugustin Cavalier			lshift.S rshift.S
63dd68e9e8SFrançois Revol			sub_n.S
64dd68e9e8SFrançois Revol			submul_1.S
65850456edSJérôme Duval
66f504f610SAugustin Cavalier			$(genericSources)
67cc9ad8e8SFrançois Revol			;
68cc9ad8e8SFrançois Revol
69cc9ad8e8SFrançois Revol		SEARCH on [ FGristFiles $(genericSources) ]
70b0944c78SIngo Weinhold			= [ FDirName $(HAIKU_TOP) src system libroot posix glibc arch
71f504f610SAugustin Cavalier				generic ] ;
72b0944c78SIngo Weinhold	}
73b0944c78SIngo Weinhold}
74