Magnus Lilja | 6eeb6f7 | 2009-07-01 01:07:55 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2008 Magnus Lilja <lilja.magnus@gmail.com> |
| 3 | # |
| 4 | # (C) Copyright 2000-2006 |
| 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Magnus Lilja | 6eeb6f7 | 2009-07-01 01:07:55 +0200 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 12 | LIB = $(obj)lib$(BOARD).o |
Magnus Lilja | 6eeb6f7 | 2009-07-01 01:07:55 +0200 | [diff] [blame] | 13 | |
Benoît Thébaudeau | efb7c00 | 2013-04-11 09:35:51 +0000 | [diff] [blame] | 14 | ifdef CONFIG_SPL_BUILD |
| 15 | SOBJS := lowlevel_init.o |
| 16 | endif |
Magnus Lilja | 6eeb6f7 | 2009-07-01 01:07:55 +0200 | [diff] [blame] | 17 | COBJS := mx31pdk.o |
| 18 | |
| 19 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 20 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 21 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 22 | |
| 23 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 24 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Magnus Lilja | 6eeb6f7 | 2009-07-01 01:07:55 +0200 | [diff] [blame] | 25 | |
Magnus Lilja | 6eeb6f7 | 2009-07-01 01:07:55 +0200 | [diff] [blame] | 26 | ######################################################################### |
| 27 | |
| 28 | # defines $(obj).depend target |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |
| 32 | |
| 33 | ######################################################################### |