blob: 597afdee67fcde77c1edc0286bee53cc8d1f037c [file] [log] [blame]
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -04001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2008
6# Ricardo Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es
7# Work supported by Qtechnology http://www.qtec.com
8#
Wolfgang Denk1a459662013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -040010#
11
12include $(TOPDIR)/config.mk
13ifneq ($(OBJTREE),$(SRCTREE))
Ricardo Ribalda Delgado7e4c3a42010-12-24 01:38:10 +010014$(shell mkdir -p $(obj)../../xilinx/ppc440-generic)
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -040015endif
16
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010017LIB = $(obj)lib$(BOARD).o
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -040018
Ricardo Ribalda Delgado880f6a52008-09-09 10:00:33 -040019COBJS += ../../xilinx/ppc440-generic/xilinx_ppc440_generic.o
Ricardo Ribalda Delgado7e4c3a42010-12-24 01:38:10 +010020SOBJS += ../../xilinx/ppc440-generic/init.o
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -040021
22SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
23OBJS := $(addprefix $(obj),$(COBJS))
24SOBJS := $(addprefix $(obj),$(SOBJS))
25
Ricardo Ribalda Delgado7e4c3a42010-12-24 01:38:10 +010026$(LIB): $(obj).depend $(OBJS) $(SOBJS)
27 $(call cmd_link_o_target, $(OBJS))
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -040028
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -040029#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################