xref: /rk3399_rockchip-uboot/fs/cramfs/Makefile (revision dd875c767e6fb0f4fecfb799b706d84562a7acee)
1*dd875c76Swdenk#
2*dd875c76Swdenk# (C) Copyright 2000, 2001
3*dd875c76Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4*dd875c76Swdenk#
5*dd875c76Swdenk# See file CREDITS for list of people who contributed to this
6*dd875c76Swdenk# project.
7*dd875c76Swdenk#
8*dd875c76Swdenk# This program is free software; you can redistribute it and/or
9*dd875c76Swdenk# modify it under the terms of the GNU General Public License as
10*dd875c76Swdenk# published by the Free Software Foundation; either version 2 of
11*dd875c76Swdenk# the License, or (at your option) any later version.
12*dd875c76Swdenk#
13*dd875c76Swdenk# This program is distributed in the hope that it will be useful,
14*dd875c76Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
15*dd875c76Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*dd875c76Swdenk# GNU General Public License for more details.
17*dd875c76Swdenk#
18*dd875c76Swdenk# You should have received a copy of the GNU General Public License
19*dd875c76Swdenk# along with this program; if not, write to the Free Software
20*dd875c76Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21*dd875c76Swdenk# MA 02111-1307 USA
22*dd875c76Swdenk#
23*dd875c76Swdenk
24*dd875c76Swdenkinclude $(TOPDIR)/config.mk
25*dd875c76Swdenk
26*dd875c76SwdenkLIB	= libcramfs.a
27*dd875c76Swdenk
28*dd875c76SwdenkAOBJS	=
29*dd875c76SwdenkCOBJS	= cramfs.o uncompress.o
30*dd875c76SwdenkOBJS	= $(AOBJS) $(COBJS)
31*dd875c76Swdenk
32*dd875c76Swdenk#CPPFLAGS +=
33*dd875c76Swdenk
34*dd875c76Swdenkall:	$(LIB) $(AOBJS)
35*dd875c76Swdenk
36*dd875c76Swdenk$(LIB):	.depend $(OBJS)
37*dd875c76Swdenk	$(AR) crv $@ $(OBJS)
38*dd875c76Swdenk
39*dd875c76Swdenk
40*dd875c76Swdenk#########################################################################
41*dd875c76Swdenk
42*dd875c76Swdenk.depend:	Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c)
43*dd875c76Swdenk		$(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@
44*dd875c76Swdenk
45*dd875c76Swdenksinclude .depend
46*dd875c76Swdenk
47*dd875c76Swdenk#########################################################################
48