fstests: remove DMAPI support from build system
[xfstests-dev.git] / include / builddefs.in
1 # SPDX-License-Identifier: GPL-2.0
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 top_builddir=$(TOPDIR)
11
12 DEBUG = @debug_build@
13 OPTIMIZER = @opt_build@
14 MALLOCLIB = @malloc_lib@
15 LOADERFLAGS = @LDFLAGS@
16 CFLAGS = @CFLAGS@
17 CPPFLAGS = @CPPFLAGS@
18
19 HAVE_LIBXFS = @have_libxfs@
20 HAVE_XLOG_ASSIGN_LSN = @have_xlog_assign_lsn@
21 LIBXFS = @libxfs@
22 LIBACL = @libacl@
23 LIBGDBM = @libgdbm@
24 LIBUUID = @libuuid@
25 LIBHANDLE = @libhdl@
26 LIBDM = @libdm@
27 LIBTEST = $(TOPDIR)/lib/libtest.la
28 prefix = @prefix@
29
30 PKG_NAME        = @pkg_name@
31 PKG_USER        = @pkg_user@
32 PKG_GROUP       = @pkg_group@
33 PKG_RELEASE     = @pkg_release@
34 PKG_VERSION     = @pkg_version@
35 PKG_PLATFORM    = @pkg_platform@
36 PKG_DISTRIBUTION= @pkg_distribution@
37 PKG_LIB_DIR     = $(DESTDIR)@exec_prefix@/@pkg_name@
38
39
40 CC              = @cc@
41 AWK             = @awk@
42 SED             = @sed@
43 TAR             = @tar@
44 ZIP             = @zip@
45 MAKE            = @make@
46 ECHO            = @echo@
47 SORT            = @sort@
48 LN_S            = @LN_S@
49 SHELL           = @SHELL@
50 LIBTOOL         = @LIBTOOL@
51 MAKEDEPEND      = @makedepend@
52
53 MSGFMT          = @msgfmt@
54 MSGMERGE        = @msgmerge@
55
56 RPM             = @rpm@
57 RPMBUILD        = @rpmbuild@
58 RPM_VERSION     = @rpm_version@
59
60 ENABLE_SHARED = @enable_shared@
61 HAVE_DB = @have_db@
62 HAVE_AIO = @have_aio@
63 HAVE_URING = @have_uring@
64 HAVE_FALLOCATE = @have_fallocate@
65 HAVE_OPEN_BY_HANDLE_AT = @have_open_by_handle_at@
66 HAVE_FIEMAP = @have_fiemap@
67 HAVE_FALLOCATE = @have_fallocate@
68 HAVE_COPY_FILE_RANGE = @have_copy_file_range@
69 HAVE_LIBBTRFSUTIL = @have_libbtrfsutil@
70
71 GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall
72
73 ifeq ($(PKG_PLATFORM),linux)
74 PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS)
75 endif
76 ifeq ($(PKG_PLATFORM),darwin)
77 PCFLAGS = -traditional-cpp $(GCCFLAGS)
78 endif
79 ifeq ($(PKG_PLATFORM),freebsd)
80 endif
81
82 GCFLAGS = $(OPTIMIZER) $(DEBUG) $(CPPFLAGS) \
83         -I$(TOPDIR)/include -DVERSION=\"$(PKG_VERSION)\"
84
85 # Global, Platform, Local CFLAGS
86 CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
87
88 include $(TOPDIR)/include/buildmacros
89
90 endif
91
92 #
93 # For targets that should always be rebuilt,
94 # define a target that is never up-to-date.
95 # Targets needing this should depend on $(_FORCE)
96 _FORCE = __force_build