Dave Liu | 7737d5c | 2006-11-03 12:11:15 -0600 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2006 Freescale Semiconductor, Inc. |
| 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Dave Liu | 7737d5c | 2006-11-03 12:11:15 -0600 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 9 | LIB := $(obj)libqe.o |
Dave Liu | 7737d5c | 2006-11-03 12:11:15 -0600 | [diff] [blame] | 10 | |
Sebastien Carlier | c05b18f | 2010-11-18 12:06:46 +0100 | [diff] [blame] | 11 | COBJS-$(and $(CONFIG_QE),$(CONFIG_OF_LIBFDT)) += fdt.o |
Jean-Christophe PLAGNIOL-VILLARD | 7ba44a5 | 2008-08-13 01:40:41 +0200 | [diff] [blame] | 12 | COBJS-$(CONFIG_QE) += qe.o uccf.o uec.o uec_phy.o |
Dave Liu | 7737d5c | 2006-11-03 12:11:15 -0600 | [diff] [blame] | 13 | |
Jean-Christophe PLAGNIOL-VILLARD | 7ba44a5 | 2008-08-13 01:40:41 +0200 | [diff] [blame] | 14 | COBJS := $(COBJS-y) |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 15 | SRCS := $(COBJS:.o=.c) |
| 16 | OBJS := $(addprefix $(obj),$(COBJS)) |
Dave Liu | 7737d5c | 2006-11-03 12:11:15 -0600 | [diff] [blame] | 17 | |
| 18 | all: $(LIB) |
| 19 | |
| 20 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 21 | $(call cmd_link_o_target, $(OBJS)) |
Dave Liu | 7737d5c | 2006-11-03 12:11:15 -0600 | [diff] [blame] | 22 | |
| 23 | ######################################################################### |
| 24 | |
| 25 | include $(SRCTREE)/rules.mk |
| 26 | |
| 27 | sinclude $(obj).depend |
| 28 | |
| 29 | ######################################################################### |