generic: test revalidation of encrypted dentries
[xfstests-dev.git] / src / Makefile
1 #
2 # Copyright (c) 2000-2005 Silicon Graphics, Inc.  All Rights Reserved.
3 #
4
5 TOPDIR = ..
6 include $(TOPDIR)/include/builddefs
7
8 TARGETS = dirstress fill fill2 getpagesize holes lstat64 \
9         nametest permname randholes runas truncfile usemem \
10         mmapcat append_reader append_writer dirperf metaperf \
11         devzero feature alloc fault fstest t_access_root \
12         godown resvtest writemod makeextents itrash rename \
13         multi_open_unlink dmiperf unwritten_sync genhashnames t_holes \
14         t_mmap_writev t_truncate_cmtime dirhash_collide t_rename_overwrite \
15         holetest t_truncate_self t_mmap_dio af_unix t_mmap_stale_pmd
16
17 LINUX_TARGETS = xfsctl bstat t_mtab getdevicesize preallo_rw_pattern_reader \
18         preallo_rw_pattern_writer ftrunc trunc fs_perms testx looptest \
19         locktest unwritten_mmap bulkstat_unlink_test t_stripealign \
20         bulkstat_unlink_test_modified t_dir_offset t_futimens t_immutable \
21         stale_handle pwrite_mmap_blocked t_dir_offset2 seek_sanity_test \
22         seek_copy_test t_readdir_1 t_readdir_2 fsync-tester nsexec cloner \
23         renameat2 t_getcwd e4compact test-nextquota punch-alternating \
24         attr-list-by-handle-cursor-test listxattr dio-interleaved t_dir_type \
25         dio-invalidate-cache stat_test t_encrypted_d_revalidate
26
27 SUBDIRS =
28
29 LLDLIBS = $(LIBATTR) $(LIBHANDLE) $(LIBACL) -lpthread
30
31 ifeq ($(HAVE_XLOG_ASSIGN_LSN), true)
32 LINUX_TARGETS += loggen
33 endif
34
35 ifeq ($(HAVE_FIEMAP), true)
36 LINUX_TARGETS += fiemap-tester
37 endif
38
39 ifeq ($(HAVE_OPEN_BY_HANDLE_AT), true)
40 LINUX_TARGETS += open_by_handle
41 endif
42
43 ifeq ($(HAVE_FALLOCATE), true)
44 LCFLAGS += -DHAVE_FALLOCATE
45 endif
46
47 ifeq ($(PKG_PLATFORM),linux)
48 TARGETS += $(LINUX_TARGETS)
49 endif
50
51 ifeq ($(PKG_PLATFORM),irix)
52 LLDLIBS += -lgen
53 endif
54
55 ifeq ($(HAVE_DB), true)
56 TARGETS += dbtest
57 LLDLIBS += $(LIBGDBM)
58 endif
59
60 ifeq ($(HAVE_AIO), true)
61 SUBDIRS += aio-dio-regress
62 endif
63
64 ifeq ($(HAVE_SSL), true)
65 TARGETS += fssum
66 LLDLIBS += -lssl -lcrypto
67 ifeq ($(PKG_PLATFORM),linux)
68 CFLAGS += -D__LINUX__
69 endif
70 endif
71
72 CFILES = $(TARGETS:=.c)
73 LDIRT = $(TARGETS)
74
75
76 default: depend $(TARGETS) $(SUBDIRS)
77
78 depend: .dep
79
80 include $(BUILDRULES)
81
82 $(TARGETS): $(LIBTEST)
83         @echo "    [CC]    $@"
84         $(Q)$(LTLINK) $@.c -o $@ $(CFLAGS) $(LDFLAGS) $(LDLIBS) $(LIBTEST)
85
86 LINKTEST = $(LTLINK) $@.c -o $@ $(CFLAGS) $(LDFLAGS)
87
88 install: default $(addsuffix -install,$(SUBDIRS))
89         $(INSTALL) -m 755 -d $(PKG_LIB_DIR)/src
90         $(LTINSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/src
91         $(LTINSTALL) -m 755 fill2attr fill2fs fill2fs_check scaleread.sh $(PKG_LIB_DIR)/src
92         $(LTINSTALL) -m 644 dumpfile $(PKG_LIB_DIR)/src
93
94 %-install:
95         $(MAKE) -C $* install
96
97 -include .dep