blob: 9713353ddf7008de55c811c2cb2ac30a9b8ca4d6 [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
Grant Likelyf0037c52007-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
33COBJS-y += crc32.o
34COBJS-y += ctype.o
35COBJS-y += display_options.o
36COBJS-y += div64.o
37COBJS-y += ldiv.o
38COBJS-y += sha1.o
39COBJS-y += string.o
40COBJS-y += vsprintf.o
41COBJS-y += zlib.o
Wolfgang Denk511d0c72006-10-09 00:42:01 +020042
Grant Likelyf0037c52007-09-24 09:05:30 -060043COBJS := $(COBJS-y)
Marian Balakowiczf9328632006-09-01 19:49:50 +020044SRCS := $(COBJS:.o=.c)
45OBJS := $(addprefix $(obj),$(COBJS))
wdenk87e33a62002-07-20 18:56:22 +000046
Marian Balakowiczf9328632006-09-01 19:49:50 +020047$(LIB): $(obj).depend $(OBJS)
Wolfgang Denk2b208f52006-10-09 01:02:05 +020048 $(AR) $(ARFLAGS) $@ $(OBJS)
wdenk87e33a62002-07-20 18:56:22 +000049
50#########################################################################
51
Marian Balakowiczf9328632006-09-01 19:49:50 +020052# defines $(obj).depend target
53include $(SRCTREE)/rules.mk
wdenk87e33a62002-07-20 18:56:22 +000054
Marian Balakowiczf9328632006-09-01 19:49:50 +020055sinclude $(obj).depend
wdenk87e33a62002-07-20 18:56:22 +000056
57#########################################################################