Reinhard Meyer | 82a0979 | 2010-10-30 23:09:58 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2003-2008 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # (C) Copyright 2010 |
| 6 | # Reinhard Meyer, EMK Elektronik, reinhard.meyer@emk-elektronik.de |
| 7 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
Reinhard Meyer | 82a0979 | 2010-10-30 23:09:58 +0000 | [diff] [blame] | 9 | # |
| 10 | |
| 11 | include $(TOPDIR)/config.mk |
| 12 | |
Reinhard Meyer | 9d9f00e | 2010-12-09 10:07:31 +0100 | [diff] [blame] | 13 | LIB = $(obj)lib$(BOARD).o |
Reinhard Meyer | 82a0979 | 2010-10-30 23:09:58 +0000 | [diff] [blame] | 14 | |
Reinhard Meyer | 9d9f00e | 2010-12-09 10:07:31 +0100 | [diff] [blame] | 15 | COBJS-y += $(BOARD).o |
Reinhard Meyer | 82a0979 | 2010-10-30 23:09:58 +0000 | [diff] [blame] | 16 | COBJS-$(CONFIG_ATMEL_SPI) += spi.o |
| 17 | |
| 18 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 20 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 21 | |
| 22 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Reinhard Meyer | 9d9f00e | 2010-12-09 10:07:31 +0100 | [diff] [blame] | 23 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Reinhard Meyer | 82a0979 | 2010-10-30 23:09:58 +0000 | [diff] [blame] | 24 | |
Reinhard Meyer | 82a0979 | 2010-10-30 23:09:58 +0000 | [diff] [blame] | 25 | ######################################################################### |
| 26 | |
| 27 | # defines $(obj).depend target |
| 28 | include $(SRCTREE)/rules.mk |
| 29 | |
| 30 | sinclude $(obj).depend |
| 31 | |
| 32 | ######################################################################### |