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