blob: cc161ae39de8bf2457b192d169a3f3554429bb35 [file] [log] [blame]
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02001#
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 Denkd79de1d2013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020010#
11
12include $(TOPDIR)/config.mk
13ifneq ($(OBJTREE),$(SRCTREE))
Ricardo Ribalda Delgado4c2c4c32010-12-24 01:38:10 +010014$(shell mkdir -p $(obj)../../xilinx/ppc405-generic)
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020015endif
16
Sebastien Carliera8d426f2010-11-05 15:48:07 +010017LIB = $(obj)lib$(BOARD).o
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020018
19COBJS += ../../xilinx/ppc405-generic/xilinx_ppc405_generic.o
20
21SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
22OBJS := $(addprefix $(obj),$(COBJS))
23SOBJS := $(addprefix $(obj),$(SOBJS))
24
Ricardo Ribalda Delgado4c2c4c32010-12-24 01:38:10 +010025$(LIB): $(obj).depend $(OBJS) $(SOBJS)
26 $(call cmd_link_o_target, $(OBJS))
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020027
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +020028#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################