xref: /openbmc/u-boot/post/lib_powerpc/fpu/Makefile (revision f739fcd8)
1# SPDX-License-Identifier: GPL-2.0+
2#
3# (C) Copyright 2007
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
6objs-before-objcopy := 20001122-1.o 20010114-2.o 20010226-1.o 980619-1.o \
7	acc1.o compare-fp-1.o fpu.o mul-subnormal-single-1.o darwin-ldouble.o
8targets += $(objs-before-objcopy)
9
10# remove -msoft-float flag
11$(foreach m, $(objs-before-objcopy), $(eval CFLAGS_REMOVE_$m := -msoft-float))
12ccflags-y := -mhard-float -fkeep-inline-functions
13
14# Do not delete intermidiate files (*.o)
15.SECONDARY: $(call objectify, $(objs-before-objcopy))
16
17obj-y := $(objs-before-objcopy:.o=_.o)
18
19OBJCOPYFLAGS := -R .gnu.attributes
20$(obj)/%_.o: $(obj)/%.o FORCE
21	$(call if_changed,objcopy)
22