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