Andreas Bießmann | ad7a178 | 2011-06-30 22:03:20 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2001-2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # Copyright (C) 2011 |
| 6 | # Corscience GmbH & Co.KG, Andreas Bießmann <biessmann@corscience.de> |
| 7 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
Andreas Bießmann | ad7a178 | 2011-06-30 22:03:20 +0000 | [diff] [blame] | 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
| 12 | LIB := $(obj)lib$(BOARD).o |
| 13 | |
| 14 | COBJS-y += $(BOARD).o |
| 15 | |
| 16 | SRCS := $(COBJS-y:.o=.c) |
| 17 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 18 | |
| 19 | $(LIB): $(obj).depend $(OBJS) |
| 20 | $(call cmd_link_o_target, $(OBJS)) |
| 21 | |
| 22 | ######################################################################### |
| 23 | |
| 24 | # defines $(obj).depend target |
| 25 | include $(SRCTREE)/rules.mk |
| 26 | |
| 27 | sinclude $(obj).depend |
| 28 | |
| 29 | ######################################################################### |