blob: eff7e6b4020b8df81c0db7953eb496fa133f5372 [file] [log] [blame]
Sergei Poselenov3190dbe2007-07-05 08:17:37 +02001#
2# (C) Copyright 2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Sergei Poselenov3190dbe2007-07-05 08:17:37 +02006#
Yuri Tikhonovbdfd3022008-03-31 10:51:37 +02007include $(TOPDIR)/config.mk
Sergei Poselenov3190dbe2007-07-05 08:17:37 +02008
Sebastien Carliera8d426f2010-11-05 15:48:07 +01009LIB = libpost$(ARCH)fpu.o
Sergei Poselenov3190dbe2007-07-05 08:17:37 +020010
Wolfgang Denk62449052011-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 Poselenov3190dbe2007-07-05 08:17:37 +020021
22include $(TOPDIR)/post/rules.mk
23
Yuri Tikhonov7ed66f72008-12-20 14:54:21 +030024CFLAGS := $(shell echo $(CFLAGS) | sed s/-msoft-float//)
Sergei Poselenov3190dbe2007-07-05 08:17:37 +020025CFLAGS += -mhard-float -fkeep-inline-functions
Wolfgang Denk62449052011-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