xref: /openbmc/u-boot/fs/ext4/Makefile (revision a1596438)
1*a1596438SUma Shankar#
2*a1596438SUma Shankar# (C) Copyright 2006
3*a1596438SUma Shankar# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4*a1596438SUma Shankar#
5*a1596438SUma Shankar# (C) Copyright 2003
6*a1596438SUma Shankar# Pavel Bartusek, Sysgo Real-Time Solutions AG, pba@sysgo.de
7*a1596438SUma Shankar#
8*a1596438SUma Shankar#
9*a1596438SUma Shankar# See file CREDITS for list of people who contributed to this
10*a1596438SUma Shankar# project.
11*a1596438SUma Shankar#
12*a1596438SUma Shankar# This program is free software; you can redistribute it and/or
13*a1596438SUma Shankar# modify it under the terms of the GNU General Public License as
14*a1596438SUma Shankar# published by the Free Software Foundation; either version 2 of
15*a1596438SUma Shankar# the License, or (at your option) any later version.
16*a1596438SUma Shankar#
17*a1596438SUma Shankar# This program is distributed in the hope that it will be useful,
18*a1596438SUma Shankar# but WITHOUT ANY WARRANTY; without even the implied warranty of
19*a1596438SUma Shankar# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20*a1596438SUma Shankar# GNU General Public License for more details.
21*a1596438SUma Shankar#
22*a1596438SUma Shankar# You should have received a copy of the GNU General Public License
23*a1596438SUma Shankar# along with this program; if not, write to the Free Software
24*a1596438SUma Shankar# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25*a1596438SUma Shankar# MA 02111-1307 USA
26*a1596438SUma Shankar#
27*a1596438SUma Shankar
28*a1596438SUma Shankarinclude $(TOPDIR)/config.mk
29*a1596438SUma Shankar
30*a1596438SUma ShankarLIB	= $(obj)libext4fs.o
31*a1596438SUma Shankar
32*a1596438SUma ShankarAOBJS	=
33*a1596438SUma ShankarCOBJS-$(CONFIG_CMD_EXT4) := ext4fs.o ext4_common.o dev.o
34*a1596438SUma Shankarifndef CONFIG_CMD_EXT4
35*a1596438SUma ShankarCOBJS-$(CONFIG_CMD_EXT2) := ext4fs.o ext4_common.o dev.o
36*a1596438SUma Shankarendif
37*a1596438SUma Shankar
38*a1596438SUma ShankarSRCS	:= $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
39*a1596438SUma ShankarOBJS	:= $(addprefix $(obj),$(AOBJS) $(COBJS-y))
40*a1596438SUma Shankar
41*a1596438SUma Shankar
42*a1596438SUma Shankarall:	$(LIB) $(AOBJS)
43*a1596438SUma Shankar
44*a1596438SUma Shankar$(LIB):	$(obj).depend $(OBJS)
45*a1596438SUma Shankar	$(call cmd_link_o_target, $(OBJS))
46*a1596438SUma Shankar
47*a1596438SUma Shankar#########################################################################
48*a1596438SUma Shankar
49*a1596438SUma Shankar# defines $(obj).depend target
50*a1596438SUma Shankarinclude $(SRCTREE)/rules.mk
51*a1596438SUma Shankar
52*a1596438SUma Shankarsinclude $(obj).depend
53*a1596438SUma Shankar
54*a1596438SUma Shankar#########################################################################
55