blob: d62c39bef76eedfa2d04e9f9b0e120e3de75e196 [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
Grant Likely1179ad12007-09-24 09:05:30 -060028COBJS-y += bzlib.o
29COBJS-y += bzlib_crctable.o
30COBJS-y += bzlib_decompress.o
31COBJS-y += bzlib_randtable.o
32COBJS-y += bzlib_huffman.o
Jean-Christophe PLAGNIOL-VILLARD9ec67ee2008-08-29 01:18:11 +020033COBJS-y += crc16.o
Grant Likely1179ad12007-09-24 09:05:30 -060034COBJS-y += crc32.o
35COBJS-y += ctype.o
36COBJS-y += display_options.o
37COBJS-y += div64.o
Jean-Christophe PLAGNIOL-VILLARDb8ec24c2008-08-28 12:31:48 +020038COBJS-y += gunzip.o
Kumar Gala6d7bfa82008-02-27 21:51:47 -060039COBJS-y += lmb.o
Grant Likely1179ad12007-09-24 09:05:30 -060040COBJS-y += ldiv.o
Bartlomiej Siekab0ce3522008-03-14 16:22:34 +010041COBJS-$(CONFIG_MD5) += md5.o
Grant Likely1179ad12007-09-24 09:05:30 -060042COBJS-y += sha1.o
Jean-Christophe PLAGNIOL-VILLARDc58a6b82008-06-07 12:29:52 +020043COBJS-$(CONFIG_SHA256) += sha256.o
Grant Likely1179ad12007-09-24 09:05:30 -060044COBJS-y += string.o
Haavard Skinnemoenb644d6b2008-08-18 13:41:27 +020045COBJS-y += strmhz.o
Grant Likely1179ad12007-09-24 09:05:30 -060046COBJS-y += vsprintf.o
47COBJS-y += zlib.o
Kyungmin Park06be5b92008-10-08 11:01:17 +090048COBJS-$(CONFIG_RBTREE) += rbtree.o
Wolfgang Denk4df0da52006-10-09 00:42:01 +020049
Grant Likely1179ad12007-09-24 09:05:30 -060050COBJS := $(COBJS-y)
Wolfgang Denka1be4762008-05-20 16:00:29 +020051SRCS := $(COBJS:.o=.c)
Marian Balakowiczd62379d2006-09-01 19:49:50 +020052OBJS := $(addprefix $(obj),$(COBJS))
wdenk87e33a62002-07-20 18:56:22 +000053
Marian Balakowiczd62379d2006-09-01 19:49:50 +020054$(LIB): $(obj).depend $(OBJS)
Wolfgang Denk6a65e422006-10-09 01:02:05 +020055 $(AR) $(ARFLAGS) $@ $(OBJS)
wdenk87e33a62002-07-20 18:56:22 +000056
57#########################################################################
58
Marian Balakowiczd62379d2006-09-01 19:49:50 +020059# defines $(obj).depend target
60include $(SRCTREE)/rules.mk
wdenk87e33a62002-07-20 18:56:22 +000061
Marian Balakowiczd62379d2006-09-01 19:49:50 +020062sinclude $(obj).depend
wdenk87e33a62002-07-20 18:56:22 +000063
64#########################################################################