Sergei Poselenov | 3190dbe | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2007 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Sergei Poselenov | 3190dbe | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 6 | # |
Yuri Tikhonov | bdfd302 | 2008-03-31 10:51:37 +0200 | [diff] [blame] | 7 | include $(TOPDIR)/config.mk |
Sergei Poselenov | 3190dbe | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 8 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 9 | LIB = libpost$(ARCH)fpu.o |
Sergei Poselenov | 3190dbe | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 10 | |
Wolfgang Denk | 6244905 | 2011-12-22 04:29:41 +0000 | [diff] [blame] | 11 | COBJS-$(CONFIG_HAS_POST) += 20001122-1.o |
| 12 | COBJS-$(CONFIG_HAS_POST) += 20010114-2.o |
| 13 | COBJS-$(CONFIG_HAS_POST) += 20010226-1.o |
| 14 | COBJS-$(CONFIG_HAS_POST) += 980619-1.o |
| 15 | COBJS-$(CONFIG_HAS_POST) += acc1.o |
| 16 | COBJS-$(CONFIG_HAS_POST) += compare-fp-1.o |
| 17 | COBJS-$(CONFIG_HAS_POST) += fpu.o |
| 18 | COBJS-$(CONFIG_HAS_POST) += mul-subnormal-single-1.o |
| 19 | |
| 20 | COBJS-$(CONFIG_HAS_POST) += darwin-ldouble.o |
Sergei Poselenov | 3190dbe | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 21 | |
| 22 | include $(TOPDIR)/post/rules.mk |
| 23 | |
Yuri Tikhonov | 7ed66f7 | 2008-12-20 14:54:21 +0300 | [diff] [blame] | 24 | CFLAGS := $(shell echo $(CFLAGS) | sed s/-msoft-float//) |
Sergei Poselenov | 3190dbe | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 25 | CFLAGS += -mhard-float -fkeep-inline-functions |
Wolfgang Denk | 6244905 | 2011-12-22 04:29:41 +0000 | [diff] [blame] | 26 | |
| 27 | $(obj)%.o: %.c |
| 28 | $(CC) $(ALL_CFLAGS) -o $@.fp $< -c |
| 29 | $(OBJCOPY) -R .gnu.attributes $@.fp $@ |
| 30 | rm -f $@.fp |