blob: a8de3e1df6d441364b26d689a0b58f797fd7d03e [file] [log] [blame]
wdenk87e33a62002-07-20 18:56:22 +00001#
Marian Balakowiczd62379d2006-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 Balakowiczd62379d2006-09-01 19:49:50 +020026LIB = $(obj)libgeneric.a
wdenk87e33a62002-07-20 18:56:22 +000027
Kumar Gala0949bd12008-12-13 17:20:28 -060028COBJS-$(CONFIG_ADDR_MAP) += addr_map.o
Mike Frysinger7c1555f2009-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 Tysere8b39e42009-11-09 15:17:50 -060034COBJS-$(CONFIG_USB_TTY) += circbuf.o
Jean-Christophe PLAGNIOL-VILLARD9ec67ee2008-08-29 01:18:11 +020035COBJS-y += crc16.o
Grant Likely1179ad12007-09-24 09:05:30 -060036COBJS-y += crc32.o
37COBJS-y += ctype.o
38COBJS-y += display_options.o
39COBJS-y += div64.o
Wolfgang Denk74aedc12010-06-12 00:19:46 +020040COBJS-y += errno.o
Mike Frysingerab427ae2010-01-21 19:30:36 -050041COBJS-$(CONFIG_GZIP) += gunzip.o
Wolfgang Denkc9ae9862010-06-20 13:17:12 +020042COBJS-y += hashtable.o
Mike Frysingera0dadf82009-11-03 11:35:59 -050043COBJS-$(CONFIG_LMB) += lmb.o
Grant Likely1179ad12007-09-24 09:05:30 -060044COBJS-y += ldiv.o
Bartlomiej Siekab0ce3522008-03-14 16:22:34 +010045COBJS-$(CONFIG_MD5) += md5.o
Dirk Behme8b3cc062010-01-03 08:33:58 +010046COBJS-y += net_utils.o
Wolfgang Denk90699222010-06-13 01:45:10 +020047COBJS-y += qsort.o
Mike Frysinger9a849802010-01-17 21:08:00 -050048COBJS-$(CONFIG_SHA1) += sha1.o
Jean-Christophe PLAGNIOL-VILLARDc58a6b82008-06-07 12:29:52 +020049COBJS-$(CONFIG_SHA256) += sha256.o
Grant Likely1179ad12007-09-24 09:05:30 -060050COBJS-y += string.o
Haavard Skinnemoenb644d6b2008-08-18 13:41:27 +020051COBJS-y += strmhz.o
Ingo van Lilf0f778a2009-11-24 14:09:21 +010052COBJS-y += time.o
Grant Likely1179ad12007-09-24 09:05:30 -060053COBJS-y += vsprintf.o
Mike Frysingerab427ae2010-01-21 19:30:36 -050054COBJS-$(CONFIG_ZLIB) += zlib.o
Kyungmin Park06be5b92008-10-08 11:01:17 +090055COBJS-$(CONFIG_RBTREE) += rbtree.o
Wolfgang Denk4df0da52006-10-09 00:42:01 +020056
Grant Likely1179ad12007-09-24 09:05:30 -060057COBJS := $(COBJS-y)
Wolfgang Denka1be4762008-05-20 16:00:29 +020058SRCS := $(COBJS:.o=.c)
Marian Balakowiczd62379d2006-09-01 19:49:50 +020059OBJS := $(addprefix $(obj),$(COBJS))
wdenk87e33a62002-07-20 18:56:22 +000060
Marian Balakowiczd62379d2006-09-01 19:49:50 +020061$(LIB): $(obj).depend $(OBJS)
Wolfgang Denk6a65e422006-10-09 01:02:05 +020062 $(AR) $(ARFLAGS) $@ $(OBJS)
wdenk87e33a62002-07-20 18:56:22 +000063
64#########################################################################
65
Marian Balakowiczd62379d2006-09-01 19:49:50 +020066# defines $(obj).depend target
67include $(SRCTREE)/rules.mk
wdenk87e33a62002-07-20 18:56:22 +000068
Marian Balakowiczd62379d2006-09-01 19:49:50 +020069sinclude $(obj).depend
wdenk87e33a62002-07-20 18:56:22 +000070
71#########################################################################