blob: cb2b99902585d84ec1e974410f50cd069639a367 [file] [log] [blame]
Chandan Nath7d744102011-10-14 02:58:26 +00001#
2# Makefile
3#
4# Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
5#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Chandan Nath7d744102011-10-14 02:58:26 +00007#
8
9include $(TOPDIR)/config.mk
10
11LIB = $(obj)lib$(BOARD).o
12
Tom Rini7a247722012-07-31 10:50:01 -070013ifdef CONFIG_SPL_BUILD
Tom Rini59c2cc92012-07-30 16:13:10 -070014COBJS := mux.o
Tom Rini7a247722012-07-31 10:50:01 -070015endif
Chandan Nath7d744102011-10-14 02:58:26 +000016
Peter Korsgaard85ec2db2012-10-18 01:21:09 +000017COBJS += board.o
Chandan Nath7d744102011-10-14 02:58:26 +000018SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
22$(LIB): $(obj).depend $(OBJS) $(SOBJS)
23 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
24
25clean:
26 rm -f $(SOBJS) $(OBJS)
27
28distclean: clean
29 rm -f $(LIB) core *.bak $(obj).depend
30
31#########################################################################
32
33# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
35
36sinclude $(obj).depend
37
38#########################################################################