blob: c17179cbc832dcce46bf51184d0ddd23f8f9f5d7 [file] [log] [blame]
wdenk87e33a62002-07-20 18:56:22 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk87e33a62002-07-20 18:56:22 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# See file CREDITS for list of people who contributed to this
6# project.
7#
8# This program is free software; you can redistribute it and/or
9# modify it under the terms of the GNU General Public License as
10# published by the Free Software Foundation; either version 2 of
11# the License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21# MA 02111-1307 USA
22#
23
24include $(TOPDIR)/config.mk
25
Marian Balakowiczf9328632006-09-01 19:49:50 +020026LIB = $(obj)libgeneric.a
wdenk87e33a62002-07-20 18:56:22 +000027
Kumar Gala63240ba2008-12-13 17:20:28 -060028COBJS-$(CONFIG_ADDR_MAP) += addr_map.o
Mike Frysingerab76e982009-02-05 21:04:50 -050029COBJS-$(CONFIG_BZIP2) += bzlib.o
30COBJS-$(CONFIG_BZIP2) += bzlib_crctable.o
31COBJS-$(CONFIG_BZIP2) += bzlib_decompress.o
32COBJS-$(CONFIG_BZIP2) += bzlib_randtable.o
33COBJS-$(CONFIG_BZIP2) += bzlib_huffman.o
Peter Tyser9ef78512009-11-09 15:17:50 -060034COBJS-$(CONFIG_USB_TTY) += circbuf.o
Jean-Christophe PLAGNIOL-VILLARDbbf52df2008-08-29 01:18:11 +020035COBJS-y += crc16.o
Grant Likelyf0037c52007-09-24 09:05:30 -060036COBJS-y += crc32.o
37COBJS-y += ctype.o
38COBJS-y += display_options.o
39COBJS-y += div64.o
Jean-Christophe PLAGNIOL-VILLARD717a2222008-08-28 12:31:48 +020040COBJS-y += gunzip.o
Kumar Gala4ed65522008-02-27 21:51:47 -060041COBJS-y += lmb.o
Grant Likelyf0037c52007-09-24 09:05:30 -060042COBJS-y += ldiv.o
Bartlomiej Sieka0ede0c32008-03-14 16:22:34 +010043COBJS-$(CONFIG_MD5) += md5.o
Dirk Behme6a45e382010-01-03 08:33:58 +010044COBJS-y += net_utils.o
Grant Likelyf0037c52007-09-24 09:05:30 -060045COBJS-y += sha1.o
Jean-Christophe PLAGNIOL-VILLARDb571afd2008-06-07 12:29:52 +020046COBJS-$(CONFIG_SHA256) += sha256.o
Grant Likelyf0037c52007-09-24 09:05:30 -060047COBJS-y += string.o
Haavard Skinnemoen0768b7a2008-08-18 13:41:27 +020048COBJS-y += strmhz.o
Ingo van Lil3eb90ba2009-11-24 14:09:21 +010049COBJS-y += time.o
Grant Likelyf0037c52007-09-24 09:05:30 -060050COBJS-y += vsprintf.o
51COBJS-y += zlib.o
Kyungmin Park7ba890b2008-10-08 11:01:17 +090052COBJS-$(CONFIG_RBTREE) += rbtree.o
Wolfgang Denk511d0c72006-10-09 00:42:01 +020053
Grant Likelyf0037c52007-09-24 09:05:30 -060054COBJS := $(COBJS-y)
Wolfgang Denk53677ef2008-05-20 16:00:29 +020055SRCS := $(COBJS:.o=.c)
Marian Balakowiczf9328632006-09-01 19:49:50 +020056OBJS := $(addprefix $(obj),$(COBJS))
wdenk87e33a62002-07-20 18:56:22 +000057
Marian Balakowiczf9328632006-09-01 19:49:50 +020058$(LIB): $(obj).depend $(OBJS)
Wolfgang Denk2b208f52006-10-09 01:02:05 +020059 $(AR) $(ARFLAGS) $@ $(OBJS)
wdenk87e33a62002-07-20 18:56:22 +000060
61#########################################################################
62
Marian Balakowiczf9328632006-09-01 19:49:50 +020063# defines $(obj).depend target
64include $(SRCTREE)/rules.mk
wdenk87e33a62002-07-20 18:56:22 +000065
Marian Balakowiczf9328632006-09-01 19:49:50 +020066sinclude $(obj).depend
wdenk87e33a62002-07-20 18:56:22 +000067
68#########################################################################