blob: 3aaf7579345f18ef33610f9f4040a0aecde24738 [file] [log] [blame]
Dave Liu7737d5c2006-11-03 12:11:15 -06001#
2# Copyright (C) 2006 Freescale Semiconductor, Inc.
3#
Wolfgang Denk1a459662013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Dave Liu7737d5c2006-11-03 12:11:15 -06005#
6
7include $(TOPDIR)/config.mk
8
Sebastien Carlier6d8962e2010-11-05 15:48:07 +01009LIB := $(obj)libqe.o
Dave Liu7737d5c2006-11-03 12:11:15 -060010
Sebastien Carlierc05b18f2010-11-18 12:06:46 +010011COBJS-$(and $(CONFIG_QE),$(CONFIG_OF_LIBFDT)) += fdt.o
Jean-Christophe PLAGNIOL-VILLARD7ba44a52008-08-13 01:40:41 +020012COBJS-$(CONFIG_QE) += qe.o uccf.o uec.o uec_phy.o
Dave Liu7737d5c2006-11-03 12:11:15 -060013
Jean-Christophe PLAGNIOL-VILLARD7ba44a52008-08-13 01:40:41 +020014COBJS := $(COBJS-y)
Wolfgang Denk53677ef2008-05-20 16:00:29 +020015SRCS := $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
Dave Liu7737d5c2006-11-03 12:11:15 -060017
18all: $(LIB)
19
20$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS))
Dave Liu7737d5c2006-11-03 12:11:15 -060022
23#########################################################################
24
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend
28
29#########################################################################