blob: 5c2e804d90b39cc54ab7d12c6e952412fcc2abda [file] [log] [blame]
Sergei Poselenovb4489622007-07-05 08:17:37 +02001#
2# (C) Copyright 2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Sergei Poselenovb4489622007-07-05 08:17:37 +02006#
Sergei Poselenovb4489622007-07-05 08:17:37 +02007
Masahiro Yamada6825a952014-02-04 17:24:28 +09008objs-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)
Sergei Poselenovb4489622007-07-05 08:17:37 +020011
Masahiro Yamada6825a952014-02-04 17:24:28 +090012# remove -msoft-float flag
13$(foreach m, $(objs-before-objcopy), $(eval CFLAGS_REMOVE_$m := -msoft-float))
14ccflags-y := -mhard-float -fkeep-inline-functions
Wolfgang Denk139e1872011-12-22 04:29:41 +000015
Masahiro Yamada6825a952014-02-04 17:24:28 +090016# 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
Masahiro Yamada19233d82014-02-26 11:26:08 +090022$(obj)/%_.o: $(obj)/%.o FORCE
Masahiro Yamada6825a952014-02-04 17:24:28 +090023 $(call if_changed,objcopy)