Gerald Van Baren | fa3a74c | 2007-03-31 12:05:39 -0400 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2007 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Gerald Van Baren | fa3a74c | 2007-03-31 12:05:39 -0400 | [diff] [blame] | 6 | # |
Gerald Van Baren | 7cd5da0 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 7 | |
Gerald Van Baren | fa3a74c | 2007-03-31 12:05:39 -0400 | [diff] [blame] | 8 | include $(TOPDIR)/config.mk |
Gerald Van Baren | 7cd5da0 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 9 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB = $(obj)libfdt.o |
Gerald Van Baren | 7cd5da0 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 11 | |
Wolfgang Denk | 94abd7c | 2007-04-04 01:49:15 +0200 | [diff] [blame] | 12 | SOBJS = |
Gerald Van Baren | 7cd5da0 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 13 | |
Gerald Van Baren | c71b64f | 2012-10-15 22:24:36 -0400 | [diff] [blame] | 14 | COBJS-libfdt += fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_sw.o fdt_wip.o fdt_empty_tree.o |
Gerald Van Baren | 7cd5da0 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 15 | |
Jean-Christophe PLAGNIOL-VILLARD | cd67345 | 2008-11-24 13:33:51 +0100 | [diff] [blame] | 16 | COBJS-$(CONFIG_OF_LIBFDT) += $(COBJS-libfdt) |
| 17 | COBJS-$(CONFIG_FIT) += $(COBJS-libfdt) |
| 18 | |
| 19 | |
| 20 | COBJS := $(sort $(COBJS-y)) |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 21 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
Gerald Van Baren | fa3a74c | 2007-03-31 12:05:39 -0400 | [diff] [blame] | 22 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
Gerald Van Baren | 7cd5da0 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 23 | |
Gerald Van Baren | fa3a74c | 2007-03-31 12:05:39 -0400 | [diff] [blame] | 24 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 25 | $(call cmd_link_o_target, $(OBJS)) |
Gerald Van Baren | 7cd5da0 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 26 | |
Gerald Van Baren | fa3a74c | 2007-03-31 12:05:39 -0400 | [diff] [blame] | 27 | ######################################################################### |
Gerald Van Baren | 7cd5da0 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 28 | |
Gerald Van Baren | fa3a74c | 2007-03-31 12:05:39 -0400 | [diff] [blame] | 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
Gerald Van Baren | 7cd5da0 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 31 | |
Gerald Van Baren | fa3a74c | 2007-03-31 12:05:39 -0400 | [diff] [blame] | 32 | sinclude $(obj).depend |
Gerald Van Baren | 7cd5da0 | 2007-03-31 11:59:59 -0400 | [diff] [blame] | 33 | |
Gerald Van Baren | fa3a74c | 2007-03-31 12:05:39 -0400 | [diff] [blame] | 34 | ######################################################################### |