blob: eff7e6b4020b8df81c0db7953eb496fa133f5372 [file] [log] [blame]
Sergei Poselenovb4489622007-07-05 08:17:37 +02001#
2# (C) Copyright 2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Sergei Poselenovb4489622007-07-05 08:17:37 +02006#
Yuri Tikhonov2d2b9942008-03-31 10:51:37 +02007include $(TOPDIR)/config.mk
Sergei Poselenovb4489622007-07-05 08:17:37 +02008
Sebastien Carlier6d8962e2010-11-05 15:48:07 +01009LIB = libpost$(ARCH)fpu.o
Sergei Poselenovb4489622007-07-05 08:17:37 +020010
Wolfgang Denk139e1872011-12-22 04:29:41 +000011COBJS-$(CONFIG_HAS_POST) += 20001122-1.o
12COBJS-$(CONFIG_HAS_POST) += 20010114-2.o
13COBJS-$(CONFIG_HAS_POST) += 20010226-1.o
14COBJS-$(CONFIG_HAS_POST) += 980619-1.o
15COBJS-$(CONFIG_HAS_POST) += acc1.o
16COBJS-$(CONFIG_HAS_POST) += compare-fp-1.o
17COBJS-$(CONFIG_HAS_POST) += fpu.o
18COBJS-$(CONFIG_HAS_POST) += mul-subnormal-single-1.o
19
20COBJS-$(CONFIG_HAS_POST) += darwin-ldouble.o
Sergei Poselenovb4489622007-07-05 08:17:37 +020021
22include $(TOPDIR)/post/rules.mk
23
Yuri Tikhonovce82ff02008-12-20 14:54:21 +030024CFLAGS := $(shell echo $(CFLAGS) | sed s/-msoft-float//)
Sergei Poselenovb4489622007-07-05 08:17:37 +020025CFLAGS += -mhard-float -fkeep-inline-functions
Wolfgang Denk139e1872011-12-22 04:29:41 +000026
27$(obj)%.o: %.c
28 $(CC) $(ALL_CFLAGS) -o $@.fp $< -c
29 $(OBJCOPY) -R .gnu.attributes $@.fp $@
30 rm -f $@.fp