1# 2# (C) Copyright 2007 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# SPDX-License-Identifier: GPL-2.0+ 6# 7include $(TOPDIR)/config.mk 8 9LIB = libpost$(ARCH)fpu.o 10 11COBJS-$(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 21 22include $(TOPDIR)/post/rules.mk 23 24CFLAGS := $(shell echo $(CFLAGS) | sed s/-msoft-float//) 25CFLAGS += -mhard-float -fkeep-inline-functions 26 27$(obj)%.o: %.c 28 $(CC) $(ALL_CFLAGS) -o $@.fp $< -c 29 $(OBJCOPY) -R .gnu.attributes $@.fp $@ 30 rm -f $@.fp 31