Stefan Roese | e1b8d0b | 2012-08-14 15:04:19 +0200 | [diff] [blame] | 1 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 2 | # SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | e1b8d0b | 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 | ######################################################################### |