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