blob: 75f1b856d82051cd098f2789ef5124414dc6971e [file] [log] [blame]
Enric Balletbo i Serra5f5c1d12013-04-04 22:27:58 +00001#
2# Makefile
3#
4# Copyright (C) 2013, ISEE 2007 SL - http://www.isee.biz/
5#
Wolfgang Denk1a459662013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Enric Balletbo i Serra5f5c1d12013-04-04 22:27:58 +00007#
8
9include $(TOPDIR)/config.mk
10
11LIB = $(obj)lib$(BOARD).o
12
13ifdef CONFIG_SPL_BUILD
14COBJS := mux.o
15endif
16
17COBJS += board.o
18SRCS := $(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#########################################################################