blob: 81d23c58b62aad039a4f7c4499af81d1f47eda74 [file] [log] [blame]
Dirk Eibacha605ea72010-10-21 10:50:05 +02001#
2# (C) Copyright 2007
3# Stefan Roese, DENX Software Engineering, sr@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Dirk Eibacha605ea72010-10-21 10:50:05 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Dirk Eibacha605ea72010-10-21 10:50:05 +020011
Dirk Eibach6e9e6c32012-04-26 03:54:22 +000012COBJS-$(CONFIG_NEO) += neo.o
Dirk Eibacha605ea72010-10-21 10:50:05 +020013COBJS-$(CONFIG_IO) += io.o
14COBJS-$(CONFIG_IOCON) += iocon.o
Dirk Eibach2da0fc02011-01-21 09:31:21 +010015COBJS-$(CONFIG_DLVISION_10G) += dlvision-10g.o
Dirk Eibacha605ea72010-10-21 10:50:05 +020016
17COBJS := $(BOARD).o $(COBJS-y)
18SOBJS =
19
20SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS))
22SOBJS := $(addprefix $(obj),$(SOBJS))
23
24$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Dirk Eibacha605ea72010-10-21 10:50:05 +020026
Dirk Eibacha605ea72010-10-21 10:50:05 +020027#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################