blob: 07373df99ae4a35d31a9e0a8e8510780c96c2f84 [file] [log] [blame]
Gerald Van Barenfa3a74c2007-03-31 12:05:39 -04001#
2# (C) Copyright 2000-2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Gerald Van Barenfa3a74c2007-03-31 12:05:39 -04006#
Gerald Van Baren7cd5da02007-03-31 11:59:59 -04007
Gerald Van Barenfa3a74c2007-03-31 12:05:39 -04008include $(TOPDIR)/config.mk
Gerald Van Baren7cd5da02007-03-31 11:59:59 -04009
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)libfdt.o
Gerald Van Baren7cd5da02007-03-31 11:59:59 -040011
Wolfgang Denk94abd7c2007-04-04 01:49:15 +020012SOBJS =
Gerald Van Baren7cd5da02007-03-31 11:59:59 -040013
Gerald Van Barenc71b64f2012-10-15 22:24:36 -040014COBJS-libfdt += fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_sw.o fdt_wip.o fdt_empty_tree.o
Gerald Van Baren7cd5da02007-03-31 11:59:59 -040015
Jean-Christophe PLAGNIOL-VILLARDcd673452008-11-24 13:33:51 +010016COBJS-$(CONFIG_OF_LIBFDT) += $(COBJS-libfdt)
17COBJS-$(CONFIG_FIT) += $(COBJS-libfdt)
18
19
20COBJS := $(sort $(COBJS-y))
Wolfgang Denk53677ef2008-05-20 16:00:29 +020021SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
Gerald Van Barenfa3a74c2007-03-31 12:05:39 -040022OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
Gerald Van Baren7cd5da02007-03-31 11:59:59 -040023
Gerald Van Barenfa3a74c2007-03-31 12:05:39 -040024$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS))
Gerald Van Baren7cd5da02007-03-31 11:59:59 -040026
Gerald Van Barenfa3a74c2007-03-31 12:05:39 -040027#########################################################################
Gerald Van Baren7cd5da02007-03-31 11:59:59 -040028
Gerald Van Barenfa3a74c2007-03-31 12:05:39 -040029# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
Gerald Van Baren7cd5da02007-03-31 11:59:59 -040031
Gerald Van Barenfa3a74c2007-03-31 12:05:39 -040032sinclude $(obj).depend
Gerald Van Baren7cd5da02007-03-31 11:59:59 -040033
Gerald Van Barenfa3a74c2007-03-31 12:05:39 -040034#########################################################################