Integrate existing dmapi qa tests into xfs qa infrastructure
[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
15 LIBXFS = @libxfs@
16 LIBACL = @libacl@
17 LIBATTR = @libattr@
18 LIBGDBM = @libgdbm@
19 LIBUUID = @libuuid@
20 LIBHANDLE = @libhdl@
21 LIBTEST = $(TOPDIR)/lib/libtest.la
22
23 PKG_NAME        = @pkg_name@
24 PKG_USER        = @pkg_user@
25 PKG_GROUP       = @pkg_group@
26 PKG_RELEASE     = @pkg_release@
27 PKG_VERSION     = @pkg_version@
28 PKG_PLATFORM    = @pkg_platform@
29 PKG_DISTRIBUTION= @pkg_distribution@
30
31 CC              = @cc@
32 AWK             = @awk@
33 SED             = @sed@
34 TAR             = @tar@
35 ZIP             = @zip@
36 MAKE            = @make@
37 ECHO            = @echo@
38 SORT            = @sort@
39 LN_S            = @LN_S@
40 LIBTOOL         = @LIBTOOL@
41 MAKEDEPEND      = @makedepend@
42
43 MSGFMT          = @msgfmt@
44 MSGMERGE        = @msgmerge@
45
46 RPM             = @rpm@
47 RPMBUILD        = @rpmbuild@
48 RPM_VERSION     = @rpm_version@
49
50 ENABLE_SHARED = @enable_shared@
51 HAVE_DB = @have_db@
52 HAVE_AIO = @have_aio@
53 HAVE_ATTR_LIST = @have_attr_list@
54
55 GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall
56
57 ifeq ($(PKG_PLATFORM),linux)
58 PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS)
59 DEPENDFLAGS = -D__linux__
60 endif
61 ifeq ($(PKG_PLATFORM),darwin)
62 PCFLAGS = -traditional-cpp $(GCCFLAGS)
63 DEPENDFLAGS = -D__APPLE__
64 endif
65 ifeq ($(PKG_PLATFORM),irix)
66 PCFLAGS = -nostdinc -I$(ROOT)/usr/include -I$(TOPDIR)/../irix/include
67 DEPENDFLAGS = -D__sgi__
68 endif
69 ifeq ($(PKG_PLATFORM),freebsd)
70 DEPENDFLAGS = -D__FreeBSD__
71 endif
72
73 GCFLAGS = $(OPTIMIZER) $(DEBUG) \
74         -I$(TOPDIR)/include -DVERSION=\"$(PKG_VERSION)\"
75
76 # Global, Platform, Local CFLAGS
77 CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
78
79 include $(TOPDIR)/include/buildmacros
80
81 endif
82
83 #
84 # For targets that should always be rebuilt,
85 # define a target that is never up-to-date.
86 # Targets needing this should depend on $(_FORCE)
87 _FORCE = __force_build