xref: /openbmc/u-boot/board/LaCie/net2big_v2/Makefile (revision 3765b3e7)
1#
2# Copyright (C) 2011 Simon Guinot <sguinot@lacie.com>
3#
4# Based on Kirkwood support:
5# (C) Copyright 2009
6# Marvell Semiconductor <www.marvell.com>
7# Written-by: Prafulla Wadaskar <prafulla@marvell.com>
8#
9# SPDX-License-Identifier:	GPL-2.0+
10#
11
12include $(TOPDIR)/config.mk
13ifneq ($(OBJTREE),$(SRCTREE))
14$(shell mkdir -p $(obj)../common)
15endif
16
17LIB	= $(obj)lib$(BOARD).o
18
19COBJS	:= $(BOARD).o ../common/common.o
20ifneq ($(and $(CONFIG_KIRKWOOD_GPIO),$(CONFIG_NET2BIG_V2)),)
21COBJS	+= ../common/cpld-gpio-bus.o
22endif
23
24SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
25OBJS	:= $(addprefix $(obj),$(COBJS))
26SOBJS	:= $(addprefix $(obj),$(SOBJS))
27
28$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
29	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
30
31clean:
32	rm -f $(SOBJS) $(OBJS)
33
34distclean:	clean
35	rm -f $(LIB) core *.bak .depend
36
37#########################################################################
38
39# defines $(obj).depend target
40include $(SRCTREE)/rules.mk
41
42sinclude $(obj).depend
43
44#########################################################################
45