blob: a11ca32e81af8a3794f7272fa69cb699d547f698 [file] [log] [blame]
wdenk012771d2002-03-08 21:31:05 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk012771d2002-03-08 21:31:05 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk012771d2002-03-08 21:31:05 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)libjffs2.o
wdenk012771d2002-03-08 21:31:05 +000011
12AOBJS =
Jean-Christophe PLAGNIOL-VILLARD08ab4e12008-08-31 04:24:56 +020013ifdef CONFIG_CMD_JFFS2
Wolfgang Denkf0983372010-01-15 11:10:33 +010014COBJS-$(CONFIG_JFFS2_LZO) += compr_lzo.o
Grant Likelyf0037c52007-09-24 09:05:30 -060015COBJS-y += compr_rtime.o
16COBJS-y += compr_rubin.o
17COBJS-y += compr_zlib.o
Jean-Christophe PLAGNIOL-VILLARD08ab4e12008-08-31 04:24:56 +020018COBJS-y += jffs2_1pass.o
Grant Likelyf0037c52007-09-24 09:05:30 -060019COBJS-y += mini_inflate.o
Jean-Christophe PLAGNIOL-VILLARD08ab4e12008-08-31 04:24:56 +020020endif
Marian Balakowiczf9328632006-09-01 19:49:50 +020021
Grant Likelyf0037c52007-09-24 09:05:30 -060022COBJS := $(COBJS-y)
Marian Balakowiczf9328632006-09-01 19:49:50 +020023SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c)
24OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS))
wdenk012771d2002-03-08 21:31:05 +000025
26#CPPFLAGS +=
27
28all: $(LIB) $(AOBJS)
29
Marian Balakowiczf9328632006-09-01 19:49:50 +020030$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010031 $(call cmd_link_o_target, $(OBJS))
wdenk012771d2002-03-08 21:31:05 +000032
33
34#########################################################################
35
Marian Balakowiczf9328632006-09-01 19:49:50 +020036# defines $(obj).depend target
37include $(SRCTREE)/rules.mk
wdenk012771d2002-03-08 21:31:05 +000038
Marian Balakowiczf9328632006-09-01 19:49:50 +020039sinclude $(obj).depend
wdenk012771d2002-03-08 21:31:05 +000040
41#########################################################################