aboutsummaryrefslogtreecommitdiff
path: root/bin/gensquashfs/Makemodule.am
blob: ff426ae15c27159cd89a728782f76a9375f60ce4 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
gensquashfs_SOURCES = bin/gensquashfs/src/mkfs.c bin/gensquashfs/src/mkfs.h \
	bin/gensquashfs/src/options.c bin/gensquashfs/src/selinux.c \
	bin/gensquashfs/src/dirscan_xattr.c bin/gensquashfs/src/filemap_xattr.c\
	bin/gensquashfs/src/fstree_from_file.c \
	bin/gensquashfs/src/fstree_from_dir.c \
	bin/gensquashfs/src/sort_by_file.c
gensquashfs_LDADD = libcommon.a libsquashfs.la libfstree.a libio.a
gensquashfs_LDADD += libutil.a libcompat.a $(LZO_LIBS) $(PTHREAD_LIBS)
gensquashfs_CPPFLAGS = $(AM_CPPFLAGS)
gensquashfs_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)

if WITH_SELINUX
gensquashfs_CPPFLAGS += -DWITH_SELINUX
gensquashfs_CFLAGS += $(LIBSELINUX_CFLAGS)
gensquashfs_LDADD += $(LIBSELINUX_LIBS)
endif

dist_man1_MANS += bin/gensquashfs/gensquashfs.1
bin_PROGRAMS += gensquashfs

GENDATADIR=$(top_srcdir)/bin/gensquashfs/test

test_filemap_xattr_SOURCES = bin/gensquashfs/test/filemap_xattr.c \
				bin/gensquashfs/src/filemap_xattr.c \
				bin/gensquashfs/src/mkfs.h
test_filemap_xattr_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/bin/gensquashfs/src
test_filemap_xattr_CPPFLAGS += -DTESTPATH=$(GENDATADIR)/xattr1.txt
test_filemap_xattr_LDADD = libsquashfs.la libfstree.a libutil.a
test_filemap_xattr_LDADD += libio.a libcompat.a

test_fstree_from_file_SOURCES = bin/gensquashfs/test/fstree_from_file.c \
				bin/gensquashfs/src/fstree_from_file.c \
				bin/gensquashfs/src/fstree_from_dir.c \
				bin/gensquashfs/src/mkfs.h
test_fstree_from_file_CPPFLAGS = $(AM_CPPFLAGS)
test_fstree_from_file_CPPFLAGS += -I$(top_srcdir)/bin/gensquashfs/src
test_fstree_from_file_CPPFLAGS += -DTESTPATH=$(GENDATADIR)/fstree1.txt
test_fstree_from_file_LDADD = libcommon.a libfstree.a libio.a libutil.a \
			libcompat.a

test_fstree_glob1_SOURCES = bin/gensquashfs/test/fstree_glob1.c \
				bin/gensquashfs/src/fstree_from_file.c \
				bin/gensquashfs/src/fstree_from_dir.c \
				bin/gensquashfs/src/mkfs.h
test_fstree_glob1_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/bin/gensquashfs/src
test_fstree_glob1_CPPFLAGS += -DTESTPATH=$(GENDATADIR)
test_fstree_glob1_LDADD = libcommon.a libfstree.a libio.a libutil.a libcompat.a

test_fstree_from_dir_SOURCES = bin/gensquashfs/test/fstree_from_dir.c \
				bin/gensquashfs/src/fstree_from_dir.c \
				bin/gensquashfs/src/mkfs.h
test_fstree_from_dir_CPPFLAGS = $(AM_CPPFLAGS)
test_fstree_from_dir_CPPFLAGS += -I$(top_srcdir)/bin/gensquashfs/src
test_fstree_from_dir_CPPFLAGS += -DTESTPATH=$(GENDATADIR)/testdir
test_fstree_from_dir_LDADD = libcommon.a libfstree.a libutil.a libcompat.a

test_sort_file_SOURCES = bin/gensquashfs/test/sort_file.c \
				bin/gensquashfs/src/fstree_from_file.c \
				bin/gensquashfs/src/fstree_from_dir.c \
				bin/gensquashfs/src/sort_by_file.c \
				bin/gensquashfs/src/mkfs.h
test_sort_file_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/bin/gensquashfs/src
test_sort_file_LDADD = libcommon.a libfstree.a libio.a libutil.a libcompat.a

fstree_fuzz_SOURCES = bin/gensquashfs/test/fstree_fuzz.c \
			bin/gensquashfs/src/fstree_from_file.c \
			bin/gensquashfs/src/fstree_from_dir.c \
			bin/gensquashfs/src/mkfs.h
fstree_fuzz_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/bin/gensquashfs/src
fstree_fuzz_LDADD = libcommon.a libfstree.a libio.a libutil.a libcompat.a

GENSQUASHFS_TESTS = \
	test_filemap_xattr test_fstree_from_file test_fstree_from_dir \
	test_fstree_glob1 test_sort_file

noinst_PROGRAMS += fstree_fuzz

check_PROGRAMS += $(GENSQUASHFS_TESTS)
TESTS += $(GENSQUASHFS_TESTS)

EXTRA_DIST += $(GENDATADIR)/xattr1.txt $(GENDATADIR)/fstree1.txt
EXTRA_DIST += $(GENDATADIR)/fstree_glob1.txt $(GENDATADIR)/fstree_glob2.txt
EXTRA_DIST += $(GENDATADIR)/fstree_glob3.txt
EXTRA_DIST += $(GENDATADIR)/testdir