xref: /openbmc/u-boot/fs/jffs2/Makefile (revision 3765b3e7)
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8include $(TOPDIR)/config.mk
9
10LIB	= $(obj)libjffs2.o
11
12AOBJS	=
13ifdef CONFIG_CMD_JFFS2
14COBJS-$(CONFIG_JFFS2_LZO) += compr_lzo.o
15COBJS-y += compr_rtime.o
16COBJS-y += compr_rubin.o
17COBJS-y += compr_zlib.o
18COBJS-y += jffs2_1pass.o
19COBJS-y += mini_inflate.o
20endif
21
22COBJS	:= $(COBJS-y)
23SRCS	:= $(AOBJS:.o=.S) $(COBJS:.o=.c)
24OBJS	:= $(addprefix $(obj),$(AOBJS) $(COBJS))
25
26#CPPFLAGS +=
27
28all:	$(LIB) $(AOBJS)
29
30$(LIB):	$(obj).depend $(OBJS)
31	$(call cmd_link_o_target, $(OBJS))
32
33
34#########################################################################
35
36# defines $(obj).depend target
37include $(SRCTREE)/rules.mk
38
39sinclude $(obj).depend
40
41#########################################################################
42