Stefan Roese | 13b4f63 | 2012-08-14 15:04:19 +0200 | [diff] [blame] | 1 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 2 | # SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | 13b4f63 | 2012-08-14 15:04:19 +0200 | [diff] [blame] | 3 | # |
| 4 | |
| 5 | include $(TOPDIR)/config.mk |
| 6 | |
| 7 | LIB = $(obj)lib$(BOARD).o |
| 8 | |
| 9 | COBJS := $(BOARD).o |
| 10 | |
| 11 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 12 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 13 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 14 | |
| 15 | $(LIB): $(obj).depend $(OBJS) |
| 16 | $(call cmd_link_o_target, $(OBJS)) |
| 17 | |
| 18 | ######################################################################### |
| 19 | |
| 20 | # defines $(obj).depend target |
| 21 | include $(SRCTREE)/rules.mk |
| 22 | |
| 23 | sinclude $(obj).depend |
| 24 | |
| 25 | ######################################################################### |