Add fallocate calls to fsx
[xfstests-dev.git] / include / builddefs.in
1 #
2 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
3 #
4 # @configure_input@
5 #
6
7 ifndef _BUILDDEFS_INCLUDED_
8 _BUILDDEFS_INCLUDED_ = 1
9
10 DEBUG = @debug_build@
11 OPTIMIZER = @opt_build@
12 MALLOCLIB = @malloc_lib@
13 LOADERFLAGS = @LDFLAGS@
14 CFLAGS = @CFLAGS@
15 CPPFLAGS = @CPPFLAGS@
16
17 HAVE_LIBXFS = @have_libxfs@
18 HAVE_XLOG_ASSIGN_LSN = @have_xlog_assign_lsn@
19 LIBXFS = @libxfs@
20 LIBACL = @libacl@
21 LIBATTR = @libattr@
22 LIBGDBM = @libgdbm@
23 LIBUUID = @libuuid@
24 LIBHANDLE = @libhdl@
25 LIBTEST = $(TOPDIR)/lib/libtest.la
26
27 PKG_NAME        = @pkg_name@
28 PKG_USER        = @pkg_user@
29 PKG_GROUP       = @pkg_group@
30 PKG_RELEASE     = @pkg_release@
31 PKG_VERSION     = @pkg_version@
32 PKG_PLATFORM    = @pkg_platform@
33 PKG_DISTRIBUTION= @pkg_distribution@
34 PKG_SBIN_DIR    = @sbindir@
35 # A bit of a hack; by rights only state should probably go here
36 # But for now ...
37 PKG_LIB_DIR     = /var/lib/@pkg_name@
38
39 CC              = @cc@
40 AWK             = @awk@
41 SED             = @sed@
42 TAR             = @tar@
43 ZIP             = @zip@
44 MAKE            = @make@
45 ECHO            = @echo@
46 SORT            = @sort@
47 LN_S            = @LN_S@
48 LIBTOOL         = @LIBTOOL@
49 MAKEDEPEND      = @makedepend@
50
51 MSGFMT          = @msgfmt@
52 MSGMERGE        = @msgmerge@
53
54 RPM             = @rpm@
55 RPMBUILD        = @rpmbuild@
56 RPM_VERSION     = @rpm_version@
57
58 ENABLE_SHARED = @enable_shared@
59 HAVE_DB = @have_db@
60 HAVE_AIO = @have_aio@
61 HAVE_FALLOCATE = @have_fallocate@
62 HAVE_DMAPI = @have_dmapi@
63 HAVE_ATTR_LIST = @have_attr_list@
64 HAVE_FIEMAP = @have_fiemap@
65 HAVE_FALLOCATE = @have_fallocate@
66
67 GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall
68
69 ifeq ($(PKG_PLATFORM),linux)
70 PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS)
71 endif
72 ifeq ($(PKG_PLATFORM),darwin)
73 PCFLAGS = -traditional-cpp $(GCCFLAGS)
74 endif
75 ifeq ($(PKG_PLATFORM),irix)
76 PCFLAGS = -nostdinc -I$(ROOT)/usr/include -I$(TOPDIR)/../irix/include
77 endif
78 ifeq ($(PKG_PLATFORM),freebsd)
79 endif
80
81 GCFLAGS = $(OPTIMIZER) $(DEBUG) $(CPPFLAGS) \
82         -I$(TOPDIR)/include -DVERSION=\"$(PKG_VERSION)\"
83
84 # Global, Platform, Local CFLAGS
85 CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
86
87 include $(TOPDIR)/include/buildmacros
88
89 endif
90
91 #
92 # For targets that should always be rebuilt,
93 # define a target that is never up-to-date.
94 # Targets needing this should depend on $(_FORCE)
95 _FORCE = __force_build