blob: 9846823e28ca7061b152ac451292d6b8bbb3e722 [file] [log] [blame]
Dirk Eibach6fabe552011-10-20 11:12:55 +02001#
2# (C) Copyright 2007
3# Stefan Roese, DENX Software Engineering, sr@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Dirk Eibach6fabe552011-10-20 11:12:55 +02006#
7
8include $(TOPDIR)/config.mk
9
10LIB = $(obj)lib$(BOARD).o
11
12COBJS-$(CONFIG_IO64) += io64.o
13
14COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
15
16COBJS := $(BOARD).o $(COBJS-y)
17
18SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
20
21$(LIB): $(obj).depend $(OBJS)
22 $(call cmd_link_o_target, $(OBJS))
23
24clean:
25 rm -f $(OBJS)
26
27distclean: clean
28 rm -f $(LIB) core *.bak $(obj).depend
29
30#########################################################################
31
32# defines $(obj).depend target
33include $(SRCTREE)/rules.mk
34
35sinclude $(obj).depend
36
37#########################################################################