xref: /openbmc/u-boot/board/siemens/rut/Makefile (revision 3be2bdf5)
1#
2# Makefile
3#
4# (C) Copyright 2013 Siemens Schweiz AG
5# (C) Heiko Schocher, DENX Software Engineering, hs@denx.de.
6#
7# Based on:
8# u-boot:/board/ti/am335x/Makefile
9# Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
10#
11# SPDX-License-Identifier:	GPL-2.0+
12#
13
14include $(TOPDIR)/config.mk
15ifneq ($(OBJTREE),$(SRCTREE))
16$(shell mkdir -p $(obj)../common)
17endif
18
19LIB	= $(obj)lib$(BOARD).o
20
21ifdef CONFIG_SPL_BUILD
22COBJS	:= mux.o
23endif
24
25COBJS	+= board.o
26ifndef CONFIG_SPL_BUILD
27COBJS += ../common/factoryset.o
28endif
29SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
30OBJS	:= $(addprefix $(obj),$(COBJS))
31SOBJS	:= $(addprefix $(obj),$(SOBJS))
32
33$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
34	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
35
36clean:
37	rm -f $(SOBJS) $(OBJS)
38
39distclean:	clean
40	rm -f $(LIB) core *.bak $(obj).depend
41
42#########################################################################
43
44# defines $(obj).depend target
45include $(SRCTREE)/rules.mk
46
47sinclude $(obj).depend
48
49#########################################################################
50