blob: 1a88e9499d12925165b08aa6eddf9396ab5a28f2 [file] [log] [blame]
Kyungmin Park1d8dca62008-11-19 16:23:06 +01001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Kyungmin Park1d8dca62008-11-19 16:23:06 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB := $(obj)libubi.o
Kyungmin Park1d8dca62008-11-19 16:23:06 +010011
12ifdef CONFIG_CMD_UBI
13COBJS-y += build.o vtbl.o vmt.o upd.o kapi.o eba.o io.o wl.o scan.o crc32.o
14
15COBJS-y += misc.o
16COBJS-y += debug.o
17endif
18
19COBJS := $(COBJS-y)
20SRCS := $(COBJS:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS))
22
23all: $(LIB)
24
25$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010026 $(call cmd_link_o_target, $(OBJS))
Kyungmin Park1d8dca62008-11-19 16:23:06 +010027
28#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################