check: allow '-e testid' to exclude a single test
[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 LIBATTR = @libattr@
24 LIBGDBM = @libgdbm@
25 LIBUUID = @libuuid@
26 LIBHANDLE = @libhdl@
27 LIBDM = @libdm@
28 LIBTEST = $(TOPDIR)/lib/libtest.la
29 prefix = @prefix@
30
31 PKG_NAME        = @pkg_name@
32 PKG_USER        = @pkg_user@
33 PKG_GROUP       = @pkg_group@
34 PKG_RELEASE     = @pkg_release@
35 PKG_VERSION     = @pkg_version@
36 PKG_PLATFORM    = @pkg_platform@
37 PKG_DISTRIBUTION= @pkg_distribution@
38 PKG_LIB_DIR     = $(DESTDIR)@exec_prefix@/@pkg_name@
39
40
41 CC              = @cc@
42 AWK             = @awk@
43 SED             = @sed@
44 TAR             = @tar@
45 ZIP             = @zip@
46 MAKE            = @make@
47 ECHO            = @echo@
48 SORT            = @sort@
49 LN_S            = @LN_S@
50 SHELL           = @SHELL@
51 LIBTOOL         = @LIBTOOL@
52 MAKEDEPEND      = @makedepend@
53
54 MSGFMT          = @msgfmt@
55 MSGMERGE        = @msgmerge@
56
57 RPM             = @rpm@
58 RPMBUILD        = @rpmbuild@
59 RPM_VERSION     = @rpm_version@
60
61 ENABLE_SHARED = @enable_shared@
62 HAVE_DB = @have_db@
63 HAVE_AIO = @have_aio@
64 HAVE_URING = @have_uring@
65 HAVE_FALLOCATE = @have_fallocate@
66 HAVE_OPEN_BY_HANDLE_AT = @have_open_by_handle_at@
67 HAVE_DMAPI = @have_dmapi@
68 HAVE_ATTR_LIST = @have_attr_list@
69 HAVE_FIEMAP = @have_fiemap@
70 HAVE_FALLOCATE = @have_fallocate@
71 HAVE_COPY_FILE_RANGE = @have_copy_file_range@
72 HAVE_LIBBTRFSUTIL = @have_libbtrfsutil@
73
74 GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall
75
76 ifeq ($(PKG_PLATFORM),linux)
77 PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS)
78 endif
79 ifeq ($(PKG_PLATFORM),darwin)
80 PCFLAGS = -traditional-cpp $(GCCFLAGS)
81 endif
82 ifeq ($(PKG_PLATFORM),freebsd)
83 endif
84
85 GCFLAGS = $(OPTIMIZER) $(DEBUG) $(CPPFLAGS) \
86         -I$(TOPDIR)/include -DVERSION=\"$(PKG_VERSION)\"
87
88 # Global, Platform, Local CFLAGS
89 CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
90
91 include $(TOPDIR)/include/buildmacros
92
93 endif
94
95 #
96 # For targets that should always be rebuilt,
97 # define a target that is never up-to-date.
98 # Targets needing this should depend on $(_FORCE)
99 _FORCE = __force_build