952a3e03d3fe52b041ff7534dd58e9a29609cff5
[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 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_FALLOCATE = @have_fallocate@
65 HAVE_OPEN_BY_HANDLE_AT = @have_open_by_handle_at@
66 HAVE_SSL = @have_ssl@
67 HAVE_DMAPI = @have_dmapi@
68 HAVE_ATTR_LIST = @have_attr_list@
69 HAVE_FIEMAP = @have_fiemap@
70 HAVE_FALLOCATE = @have_fallocate@
71
72 GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall
73
74 ifeq ($(PKG_PLATFORM),linux)
75 PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS)
76 endif
77 ifeq ($(PKG_PLATFORM),darwin)
78 PCFLAGS = -traditional-cpp $(GCCFLAGS)
79 endif
80 ifeq ($(PKG_PLATFORM),irix)
81 PCFLAGS = -nostdinc -I$(ROOT)/usr/include -I$(TOPDIR)/../irix/include
82 endif
83 ifeq ($(PKG_PLATFORM),freebsd)
84 endif
85
86 GCFLAGS = $(OPTIMIZER) $(DEBUG) $(CPPFLAGS) \
87         -I$(TOPDIR)/include -DVERSION=\"$(PKG_VERSION)\"
88
89 # Global, Platform, Local CFLAGS
90 CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
91
92 include $(TOPDIR)/include/buildmacros
93
94 endif
95
96 #
97 # For targets that should always be rebuilt,
98 # define a target that is never up-to-date.
99 # Targets needing this should depend on $(_FORCE)
100 _FORCE = __force_build