xref: /rk3399_rockchip-uboot/post/lib_powerpc/fpu/Makefile (revision 139e1875d3b3dc31a6ea964f6ff3912fed32c4a2)
1a47a12beSStefan Roese#
2a47a12beSStefan Roese# (C) Copyright 2007
3a47a12beSStefan Roese# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4a47a12beSStefan Roese#
5a47a12beSStefan Roese# See file CREDITS for list of people who contributed to this
6a47a12beSStefan Roese# project.
7a47a12beSStefan Roese#
8a47a12beSStefan Roese# This program is free software; you can redistribute it and/or
9a47a12beSStefan Roese# modify it under the terms of the GNU General Public License as
10a47a12beSStefan Roese# published by the Free Software Foundation; either version 2 of
11a47a12beSStefan Roese# the License, or (at your option) any later version.
12a47a12beSStefan Roese#
13a47a12beSStefan Roese# This program is distributed in the hope that it will be useful,
14a47a12beSStefan Roese# but WITHOUT ANY WARRANTY; without even the implied warranty of
15a47a12beSStefan Roese# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16a47a12beSStefan Roese# GNU General Public License for more details.
17a47a12beSStefan Roese#
18a47a12beSStefan Roese# You should have received a copy of the GNU General Public License
19a47a12beSStefan Roese# along with this program; if not, write to the Free Software
20a47a12beSStefan Roese# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21a47a12beSStefan Roese# MA 02111-1307 USA
22a47a12beSStefan Roese#
23a47a12beSStefan Roeseinclude $(TOPDIR)/config.mk
24a47a12beSStefan Roese
256d8962e8SSebastien CarlierLIB	= libpost$(ARCH)fpu.o
26a47a12beSStefan Roese
27*139e1875SWolfgang DenkCOBJS-$(CONFIG_HAS_POST)	+= 20001122-1.o
28*139e1875SWolfgang DenkCOBJS-$(CONFIG_HAS_POST)	+= 20010114-2.o
29*139e1875SWolfgang DenkCOBJS-$(CONFIG_HAS_POST)	+= 20010226-1.o
30*139e1875SWolfgang DenkCOBJS-$(CONFIG_HAS_POST)	+= 980619-1.o
31*139e1875SWolfgang DenkCOBJS-$(CONFIG_HAS_POST)	+= acc1.o
32*139e1875SWolfgang DenkCOBJS-$(CONFIG_HAS_POST)	+= compare-fp-1.o
33*139e1875SWolfgang DenkCOBJS-$(CONFIG_HAS_POST)	+= fpu.o
34*139e1875SWolfgang DenkCOBJS-$(CONFIG_HAS_POST)	+= mul-subnormal-single-1.o
35*139e1875SWolfgang Denk
36*139e1875SWolfgang DenkCOBJS-$(CONFIG_HAS_POST)	+= darwin-ldouble.o
37a47a12beSStefan Roese
38a47a12beSStefan Roeseinclude $(TOPDIR)/post/rules.mk
39a47a12beSStefan Roese
40a47a12beSStefan RoeseCFLAGS := $(shell echo $(CFLAGS) | sed s/-msoft-float//)
41a47a12beSStefan RoeseCFLAGS += -mhard-float -fkeep-inline-functions
42*139e1875SWolfgang Denk
43*139e1875SWolfgang Denk$(obj)%.o:	%.c
44*139e1875SWolfgang Denk	$(CC)  $(ALL_CFLAGS) -o $@.fp $< -c
45*139e1875SWolfgang Denk	$(OBJCOPY) -R .gnu.attributes $@.fp $@
46*139e1875SWolfgang Denk	rm -f $@.fp
47