Julien May | 5c374c9 | 2008-06-23 13:57:52 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2008 Miromico AG |
| 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Julien May | 5c374c9 | 2008-06-23 13:57:52 +0200 | [diff] [blame] | 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 8 | LIB := $(obj)lib$(BOARD).o |
Julien May | 5c374c9 | 2008-06-23 13:57:52 +0200 | [diff] [blame] | 9 | |
| 10 | COBJS := $(BOARD).o |
| 11 | |
| 12 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 13 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
| 14 | |
| 15 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 16 | $(call cmd_link_o_target, $(OBJS)) |
Julien May | 5c374c9 | 2008-06-23 13:57:52 +0200 | [diff] [blame] | 17 | |
| 18 | ######################################################################### |
| 19 | |
| 20 | # defines $(obj).depend target |
| 21 | include $(SRCTREE)/rules.mk |
| 22 | |
| 23 | sinclude $(obj).depend |
| 24 | |
| 25 | ######################################################################### |