272503719b01e63e110534c085bb2d3e3c997da3
[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 LIBDM = @libdm@
26 LIBTEST = $(TOPDIR)/lib/libtest.la
27
28 PKG_NAME        = @pkg_name@
29 PKG_USER        = @pkg_user@
30 PKG_GROUP       = @pkg_group@
31 PKG_RELEASE     = @pkg_release@
32 PKG_VERSION     = @pkg_version@
33 PKG_PLATFORM    = @pkg_platform@
34 PKG_DISTRIBUTION= @pkg_distribution@
35 PKG_SBIN_DIR    = @sbindir@
36 # A bit of a hack; by rights only state should probably go here
37 # But for now ...
38 PKG_LIB_DIR     = /var/lib/@pkg_name@
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_FALLOCATE = @have_fallocate@
64 HAVE_OPEN_BY_HANDLE_AT = @have_open_by_handle_at@
65 HAVE_SSL = @have_ssl@
66 HAVE_DMAPI = @have_dmapi@
67 HAVE_ATTR_LIST = @have_attr_list@
68 HAVE_FIEMAP = @have_fiemap@
69 HAVE_FALLOCATE = @have_fallocate@
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),irix)
80 PCFLAGS = -nostdinc -I$(ROOT)/usr/include -I$(TOPDIR)/../irix/include
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