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