2002-07-21 03:56:22 +09:00
|
|
|
#
|
2006-09-02 02:49:50 +09:00
|
|
|
# (C) Copyright 2000-2006
|
2002-07-21 03:56:22 +09:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
|
|
|
# See file CREDITS for list of people who contributed to this
|
|
|
|
# project.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 23:48:07 +09:00
|
|
|
LIB = $(obj)libgeneric.o
|
2002-07-21 03:56:22 +09:00
|
|
|
|
2011-07-13 14:11:06 +09:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2012-04-05 20:54:58 +09:00
|
|
|
COBJS-$(CONFIG_AES) += aes.o
|
2009-02-06 11:04:50 +09:00
|
|
|
COBJS-$(CONFIG_BZIP2) += bzlib.o
|
|
|
|
COBJS-$(CONFIG_BZIP2) += bzlib_crctable.o
|
|
|
|
COBJS-$(CONFIG_BZIP2) += bzlib_decompress.o
|
|
|
|
COBJS-$(CONFIG_BZIP2) += bzlib_randtable.o
|
|
|
|
COBJS-$(CONFIG_BZIP2) += bzlib_huffman.o
|
2009-11-10 06:17:50 +09:00
|
|
|
COBJS-$(CONFIG_USB_TTY) += circbuf.o
|
2011-01-11 10:38:20 +09:00
|
|
|
COBJS-y += crc7.o
|
2008-08-29 08:18:11 +09:00
|
|
|
COBJS-y += crc16.o
|
2011-10-25 04:15:32 +09:00
|
|
|
COBJS-$(CONFIG_OF_CONTROL) += fdtdec.o
|
2012-01-17 17:20:51 +09:00
|
|
|
COBJS-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
|
2010-01-22 09:30:36 +09:00
|
|
|
COBJS-$(CONFIG_GZIP) += gunzip.o
|
2012-09-28 13:26:46 +09:00
|
|
|
COBJS-$(CONFIG_GZIP_COMPRESSED) += gzip.o
|
2013-03-05 23:39:40 +09:00
|
|
|
COBJS-y += initcall.o
|
2009-11-04 01:35:59 +09:00
|
|
|
COBJS-$(CONFIG_LMB) += lmb.o
|
2007-09-25 00:05:30 +09:00
|
|
|
COBJS-y += ldiv.o
|
2008-03-15 00:22:34 +09:00
|
|
|
COBJS-$(CONFIG_MD5) += md5.o
|
2010-01-03 16:33:58 +09:00
|
|
|
COBJS-y += net_utils.o
|
2012-12-02 13:55:18 +09:00
|
|
|
COBJS-$(CONFIG_PHYSMEM) += physmem.o
|
2010-06-13 08:45:10 +09:00
|
|
|
COBJS-y += qsort.o
|
2010-01-18 11:08:00 +09:00
|
|
|
COBJS-$(CONFIG_SHA1) += sha1.o
|
2008-06-07 19:29:52 +09:00
|
|
|
COBJS-$(CONFIG_SHA256) += sha256.o
|
2008-08-18 20:41:27 +09:00
|
|
|
COBJS-y += strmhz.o
|
2013-02-28 18:34:57 +09:00
|
|
|
COBJS-$(CONFIG_TPM) += tpm.o
|
2011-07-13 14:11:06 +09:00
|
|
|
COBJS-$(CONFIG_RBTREE) += rbtree.o
|
2013-04-13 03:59:17 +09:00
|
|
|
COBJS-$(CONFIG_BITREVERSE) += bitrev.o
|
2011-07-13 14:11:06 +09:00
|
|
|
endif
|
|
|
|
|
2012-01-31 21:03:57 +09:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
|
2012-09-18 09:22:50 +09:00
|
|
|
COBJS-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o
|
2012-01-31 21:03:57 +09:00
|
|
|
endif
|
2013-05-20 15:07:26 +09:00
|
|
|
COBJS-$(CONFIG_ADDR_MAP) += addr_map.o
|
|
|
|
COBJS-y += hashtable.o
|
|
|
|
COBJS-y += errno.o
|
|
|
|
COBJS-y += display_options.o
|
2013-04-05 13:55:21 +09:00
|
|
|
COBJS-$(CONFIG_BCH) += bch.o
|
2012-01-05 18:57:20 +09:00
|
|
|
COBJS-y += crc32.o
|
2011-07-13 14:11:06 +09:00
|
|
|
COBJS-y += ctype.o
|
|
|
|
COBJS-y += div64.o
|
2013-04-19 07:48:50 +09:00
|
|
|
COBJS-y += hang.o
|
2012-12-12 13:16:18 +09:00
|
|
|
COBJS-y += linux_string.o
|
2013-03-24 08:50:31 +09:00
|
|
|
COBJS-$(CONFIG_REGEX) += slre.o
|
2011-07-13 14:11:06 +09:00
|
|
|
COBJS-y += string.o
|
2009-11-24 22:09:21 +09:00
|
|
|
COBJS-y += time.o
|
2011-08-23 20:06:56 +09:00
|
|
|
COBJS-$(CONFIG_BOOTP_PXE) += uuid.o
|
2007-09-25 00:05:30 +09:00
|
|
|
COBJS-y += vsprintf.o
|
2012-06-05 20:33:14 +09:00
|
|
|
COBJS-$(CONFIG_RANDOM_MACADDR) += rand.o
|
2012-06-05 20:33:15 +09:00
|
|
|
COBJS-$(CONFIG_BOOTP_RANDOM_DELAY) += rand.o
|
|
|
|
COBJS-$(CONFIG_CMD_LINK_LOCAL) += rand.o
|
2007-09-25 00:05:30 +09:00
|
|
|
|
2012-06-05 20:33:15 +09:00
|
|
|
COBJS := $(sort $(COBJS-y))
|
2008-05-20 23:00:29 +09:00
|
|
|
SRCS := $(COBJS:.o=.c)
|
2006-09-02 02:49:50 +09:00
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
2002-07-21 03:56:22 +09:00
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
2010-11-05 23:48:07 +09:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2002-07-21 03:56:22 +09:00
|
|
|
|
2012-10-09 18:28:15 +09:00
|
|
|
# SEE README.arm-unaligned-accesses
|
|
|
|
$(obj)bzlib.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
|
|
|
|
|
2002-07-21 03:56:22 +09:00
|
|
|
#########################################################################
|
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2002-07-21 03:56:22 +09:00
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
sinclude $(obj).depend
|
2002-07-21 03:56:22 +09:00
|
|
|
|
|
|
|
#########################################################################
|