Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 1 | # |
| 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 Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 10 | # |
| 11 | |
| 12 | include $(TOPDIR)/config.mk |
| 13 | ifneq ($(OBJTREE),$(SRCTREE)) |
Ricardo Ribalda Delgado | 4c2c4c3 | 2010-12-24 01:38:10 +0100 | [diff] [blame] | 14 | $(shell mkdir -p $(obj)../../xilinx/ppc405-generic) |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 15 | endif |
| 16 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 17 | LIB = $(obj)lib$(BOARD).o |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 18 | |
| 19 | COBJS += ../../xilinx/ppc405-generic/xilinx_ppc405_generic.o |
| 20 | |
| 21 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 23 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 24 | |
Ricardo Ribalda Delgado | 4c2c4c3 | 2010-12-24 01:38:10 +0100 | [diff] [blame] | 25 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 26 | $(call cmd_link_o_target, $(OBJS)) |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 27 | |
Ricardo Ribalda Delgado | 78ea77e | 2008-10-21 18:29:46 +0200 | [diff] [blame] | 28 | ######################################################################### |
| 29 | |
| 30 | # defines $(obj).depend target |
| 31 | include $(SRCTREE)/rules.mk |
| 32 | |
| 33 | sinclude $(obj).depend |
| 34 | |
| 35 | ######################################################################### |