xref: /openbmc/u-boot/post/lib_powerpc/fpu/Makefile (revision 164922bd)
1#
2# (C) Copyright 2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8CPPFLAGS += -I$(TOPDIR)
9
10obj-$(CONFIG_HAS_POST)	+= 20001122-1.o
11obj-$(CONFIG_HAS_POST)	+= 20010114-2.o
12obj-$(CONFIG_HAS_POST)	+= 20010226-1.o
13obj-$(CONFIG_HAS_POST)	+= 980619-1.o
14obj-$(CONFIG_HAS_POST)	+= acc1.o
15obj-$(CONFIG_HAS_POST)	+= compare-fp-1.o
16obj-$(CONFIG_HAS_POST)	+= fpu.o
17obj-$(CONFIG_HAS_POST)	+= mul-subnormal-single-1.o
18obj-$(CONFIG_HAS_POST)	+= darwin-ldouble.o
19
20CFLAGS := $(shell echo $(CFLAGS) | sed s/-msoft-float//)
21CFLAGS += -mhard-float -fkeep-inline-functions
22
23$(obj)%.o:	%.c
24	$(CC)  $(ALL_CFLAGS) -o $@.fp $< -c
25	$(OBJCOPY) -R .gnu.attributes $@.fp $@
26	rm -f $@.fp
27