3 include $(TOP)/config/make.cfg
171 # If long double != double use these; otherwise, we alias the double versions
172 # These are architectures that have LDBL_MANT_DIG == 53 in float.h
173 # XXX use configure to determine this
174 ifneq ($(AROS_TARGET_CPU), ppc)
175 ifneq ($(AROS_TARGET_CPU), arm)
176 ifneq ($(AROS_TARGET_CPU), m68k)
177 FILES += s_fmal s_frexpl s_nextafterl s_nexttoward s_scalbnl
182 #MM- includes-copy : includes-copy-mlib
184 #MM includes-copy-mlib: setup-includes
185 includes-copy-mlib : $(AROS_INCLUDES)/math.h $(AROS_INCLUDES)/complex.h
187 %rule_copy from=$(SRCDIR)/$(CURDIR)/%.h to=$(AROS_INCLUDES)/%.h
189 #MM- core-linklibs : linklibs-mlib
190 #MM- linklibs : linklibs-mlib
191 #MM- linklibs-mlib : linklibs-arosm-$(CPU) arosm-setup-link
192 #MM linklibs-arosm-hasfpu : includes
193 #MM linklibs-arosm-nofpu : includes
195 # Define lint to get rid of the warnings about rcsid[]
197 USER_CFLAGS := -D_IEEE_LIBM -Dlint '-D__FBSDID(x)=' -msoft-float \
198 -Wno-uninitialized -Wno-parentheses
199 %build_linklib mmake=linklibs-arosm-nofpu libname=arosm files=$(FILES)
201 USER_CFLAGS := -D_IEEE_LIBM -Dlint '-D__FBSDID(x)=' \
202 -Wno-uninitialized -Wno-parentheses
203 %build_linklib mmake=linklibs-arosm-hasfpu libname=arosm files=$(FILES)
207 @$(RM) $(AROS_LIB)/libm.a
208 @cd $(AROS_LIB); ln -s $(if $(filter aros, $(AROS_HOST_ARCH)),$(AROS_LIB)/libarosm.a,libarosm.a) libm.a