Julien May | 72646d2 | 2008-06-23 13:57:52 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2008 Miromico AG |
| 3 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Julien May | 72646d2 | 2008-06-23 13:57:52 +0200 | [diff] [blame] | 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 8 | LIB := $(obj)lib$(BOARD).o |
Julien May | 72646d2 | 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 | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 16 | $(call cmd_link_o_target, $(OBJS)) |
Julien May | 72646d2 | 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 | ######################################################################### |