xfstests generic 310: check concurrently of readdir and read on the same directory fd
[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
15
16 LINUX_TARGETS = xfsctl bstat t_mtab getdevicesize preallo_rw_pattern_reader \
17         preallo_rw_pattern_writer ftrunc trunc fs_perms testx looptest \
18         locktest unwritten_mmap bulkstat_unlink_test t_stripealign \
19         bulkstat_unlink_test_modified t_dir_offset t_futimens t_immutable \
20         stale_handle pwrite_mmap_blocked t_dir_offset2 seek_sanity_test \
21         seek_copy_test t_readdir_1 t_readdir_2
22
23 SUBDIRS =
24
25 LLDLIBS = $(LIBATTR) $(LIBHANDLE) $(LIBACL)
26
27 ifeq ($(HAVE_XLOG_ASSIGN_LSN), true)
28 LINUX_TARGETS += loggen
29 endif
30
31 ifeq ($(HAVE_FIEMAP), true)
32 LINUX_TARGETS += fiemap-tester
33 endif
34
35 ifeq ($(HAVE_FALLOCATE), true)
36 LCFLAGS += -DHAVE_FALLOCATE
37 endif
38
39 IRIX_TARGETS = open_unlink
40
41 ifeq ($(PKG_PLATFORM),linux)
42 TARGETS += $(LINUX_TARGETS)
43 endif
44
45 ifeq ($(PKG_PLATFORM),irix)
46 TARGETS += $(IRIX_TARGETS)
47 LLDLIBS += -lgen
48 endif
49
50 ifeq ($(HAVE_DB), true)
51 TARGETS += dbtest
52 LLDLIBS += $(LIBGDBM)
53 endif
54
55 ifeq ($(HAVE_AIO), true)
56 SUBDIRS += aio-dio-regress
57 endif
58
59 CFILES = $(TARGETS:=.c)
60 LDIRT = $(TARGETS)
61
62
63 default: depend $(TARGETS) $(SUBDIRS)
64
65 depend: .dep
66
67 include $(BUILDRULES)
68
69 $(TARGETS): $(LIBTEST)
70         @echo "    [CC]    $@"
71         $(Q)$(LTLINK) $@.c -o $@ $(CFLAGS) $(LDFLAGS) $(LDLIBS) $(LIBTEST)
72
73 LINKTEST = $(LTLINK) $@.c -o $@ $(CFLAGS) $(LDFLAGS)
74
75 install: default $(addsuffix -install,$(SUBDIRS))
76         $(INSTALL) -m 755 -d $(PKG_LIB_DIR)/src
77         $(LTINSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/src
78         $(LTINSTALL) -m 755 fill2attr fill2fs fill2fs_check scaleread.sh $(PKG_LIB_DIR)/src
79         $(LTINSTALL) -m 644 dumpfile $(PKG_LIB_DIR)/src
80
81 %-install:
82         $(MAKE) -C $* install
83
84 -include .dep