Markus Hubig | 2399ef7 | 2012-08-07 17:43:23 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2003-2008 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # (C) Copyright 2008 |
| 6 | # Stelian Pop <stelian@popies.net> |
| 7 | # Lead Tech Design <www.leadtechdesign.com> |
| 8 | # |
| 9 | # (C) Copyright 2012 |
| 10 | # Markus Hubig <mhubig@imko.de> |
| 11 | # IMKO GmbH <www.imko.de> |
| 12 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 13 | # SPDX-License-Identifier: GPL-2.0+ |
Markus Hubig | 2399ef7 | 2012-08-07 17:43:23 +0200 | [diff] [blame] | 14 | # |
| 15 | |
| 16 | include $(TOPDIR)/config.mk |
| 17 | |
| 18 | LIB = $(obj)lib$(BOARD).o |
| 19 | |
| 20 | COBJS-y += stamp9g20.o |
| 21 | COBJS-y += led.o |
| 22 | |
| 23 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 24 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 25 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 26 | |
| 27 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 28 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 29 | |
| 30 | ######################################################################### |
| 31 | |
| 32 | # defines $(obj).depend target |
| 33 | include $(SRCTREE)/rules.mk |
| 34 | |
| 35 | sinclude $(obj).depend |
| 36 | |
| 37 | ######################################################################### |