summaryrefslogtreecommitdiff
path: root/jffsX-utils/Makemodule.am
blob: 4ae4c57b2e05458f942885c676d4e06278e2370f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
mkfs_jffs2_SOURCES = \
	jffsX-utils/mkfs.jffs2.c \
	jffsX-utils/compr.h \
	jffsX-utils/compr.c \
	jffsX-utils/compr_rtime.c \
	jffsX-utils/compr.h \
	jffsX-utils/summary.h \
	include/linux/jffs2.h \
	include/mtd/jffs2-user.h \
	include/list.h \
	include/rbtree.h
mkfs_jffs2_LDADD = libmtd.a $(ZLIB_LIBS) $(LZO_LIBS)
mkfs_jffs2_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CFLAGS) $(LZO_CFLAGS)

jffs2reader_SOURCES = jffsX-utils/jffs2reader.c	include/mtd/jffs2-user.h
jffs2reader_LDADD = libmtd.a $(ZLIB_LIBS) $(LZO_LIBS)
jffs2reader_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CFLAGS) $(LZO_CFLAGS)

jffs2dump_SOURCES = jffsX-utils/jffs2dump.c include/mtd/jffs2-user.h
jffs2dump_SOURCES += jffsX-utils/summary.h
jffs2dump_LDADD = libmtd.a $(ZLIB_LIBS) $(LZO_LIBS)
jffs2dump_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CFLAGS) $(LZO_CFLAGS)

sumtool_SOURCES = jffsX-utils/sumtool.c jffsX-utils/summary.h
sumtool_LDADD = libmtd.a

if WITH_LZO
mkfs_jffs2_SOURCES += jffsX-utils/compr_lzo.c
endif

if WITH_ZLIB
mkfs_jffs2_SOURCES += jffsX-utils/compr_zlib.c
endif

EXTRA_DIST += jffsX-utils/device_table.txt jffsX-utils/mkfs.jffs2.1

dist_man1_MANS += jffsX-utils/mkfs.jffs2.1
sbin_PROGRAMS += mkfs.jffs2 jffs2dump jffs2reader sumtool