wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2000-2006 |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB = $(obj)libjffs2.o |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 11 | |
| 12 | AOBJS = |
Jean-Christophe PLAGNIOL-VILLARD | 08ab4e1 | 2008-08-31 04:24:56 +0200 | [diff] [blame] | 13 | ifdef CONFIG_CMD_JFFS2 |
Wolfgang Denk | f098337 | 2010-01-15 11:10:33 +0100 | [diff] [blame] | 14 | COBJS-$(CONFIG_JFFS2_LZO) += compr_lzo.o |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 15 | COBJS-y += compr_rtime.o |
| 16 | COBJS-y += compr_rubin.o |
| 17 | COBJS-y += compr_zlib.o |
Jean-Christophe PLAGNIOL-VILLARD | 08ab4e1 | 2008-08-31 04:24:56 +0200 | [diff] [blame] | 18 | COBJS-y += jffs2_1pass.o |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 19 | COBJS-y += mini_inflate.o |
Jean-Christophe PLAGNIOL-VILLARD | 08ab4e1 | 2008-08-31 04:24:56 +0200 | [diff] [blame] | 20 | endif |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 21 | |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 22 | COBJS := $(COBJS-y) |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 23 | SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c) |
| 24 | OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS)) |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 25 | |
| 26 | #CPPFLAGS += |
| 27 | |
| 28 | all: $(LIB) $(AOBJS) |
| 29 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 30 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 31 | $(call cmd_link_o_target, $(OBJS)) |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 32 | |
| 33 | |
| 34 | ######################################################################### |
| 35 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 36 | # defines $(obj).depend target |
| 37 | include $(SRCTREE)/rules.mk |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 38 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 39 | sinclude $(obj).depend |
wdenk | 012771d | 2002-03-08 21:31:05 +0000 | [diff] [blame] | 40 | |
| 41 | ######################################################################### |