xref: /haiku/src/system/libroot/posix/glibc/math/Jamfile (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1SubDir HAIKU_TOP src system libroot posix glibc math ;
2
3SubDirCcFlags -D_GNU_SOURCE -DUSE_IN_LIBIO ;
4
5local architectureObject ;
6for architectureObject in [ MultiArchSubDirSetup ] {
7	on $(architectureObject) {
8		local architecture = $(TARGET_PACKAGING_ARCH) ;
9
10		SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include arch
11			$(TARGET_ARCH) ;
12		SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include arch
13			generic ;
14		SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc include ;
15		SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc math ;
16		SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc ;
17
18		UsePrivateHeaders libroot ;
19
20		local longDoubleObjects ;
21		switch $(architecture) {
22			case ppc : longDoubleObjects = ;
23			case m68k : longDoubleObjects = ;
24			case * : longDoubleObjects = cabsl.c cargl.c cimagl.c conjl.c creall.c k_casinhl.c ;
25		}
26
27		MergeObject <$(architecture)>posix_gnu_math.o :
28			cabs.c cabsf.c
29			carg.c cargf.c
30			cimag.c cimagf.c
31			conj.c conjf.c
32			creal.c crealf.c
33
34			k_casinh.c k_casinhf.c
35
36			$(longDoubleObjects)
37			;
38	}
39}
40