John Rigby | afbf889 | 2011-04-19 10:42:42 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) ST-Ericsson SA 2009 |
| 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
John Rigby | afbf889 | 2011-04-19 10:42:42 +0000 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
| 9 | CFLAGS += -D__RELEASE -D__STN_8500 |
| 10 | LIB = $(obj)lib$(BOARD).o |
| 11 | |
Mathieu J. Poirier | 42cb8fb | 2012-07-31 08:59:24 +0000 | [diff] [blame] | 12 | COBJS := u8500_href.o gpio.o |
John Rigby | afbf889 | 2011-04-19 10:42:42 +0000 | [diff] [blame] | 13 | |
| 14 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 15 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 16 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 17 | |
| 18 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 19 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 20 | |
John Rigby | afbf889 | 2011-04-19 10:42:42 +0000 | [diff] [blame] | 21 | ######################################################################### |
| 22 | |
| 23 | # defines $(obj).depend target |
| 24 | include $(SRCTREE)/rules.mk |
| 25 | |
| 26 | sinclude $(obj).depend |
| 27 | |
| 28 | ######################################################################### |