Kyungmin Park | 1d8dca6 | 2008-11-19 16:23:06 +0100 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Kyungmin Park | 1d8dca6 | 2008-11-19 16:23:06 +0100 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB := $(obj)libubi.o |
Kyungmin Park | 1d8dca6 | 2008-11-19 16:23:06 +0100 | [diff] [blame] | 11 | |
| 12 | ifdef CONFIG_CMD_UBI |
| 13 | COBJS-y += build.o vtbl.o vmt.o upd.o kapi.o eba.o io.o wl.o scan.o crc32.o |
| 14 | |
| 15 | COBJS-y += misc.o |
| 16 | COBJS-y += debug.o |
| 17 | endif |
| 18 | |
| 19 | COBJS := $(COBJS-y) |
| 20 | SRCS := $(COBJS:.o=.c) |
| 21 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 22 | |
| 23 | all: $(LIB) |
| 24 | |
| 25 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 26 | $(call cmd_link_o_target, $(OBJS)) |
Kyungmin Park | 1d8dca6 | 2008-11-19 16:23:06 +0100 | [diff] [blame] | 27 | |
| 28 | ######################################################################### |
| 29 | |
| 30 | # defines $(obj).depend target |
| 31 | include $(SRCTREE)/rules.mk |
| 32 | |
| 33 | sinclude $(obj).depend |
| 34 | |
| 35 | ######################################################################### |