a98efdf20588b69c28daac8ba9868a16618f7e02
[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 ifeq ($(PKG_PLATFORM),linux)
56 PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
57 endif
58 ifeq ($(PKG_PLATFORM),darwin)
59 PCFLAGS = -traditional-cpp
60 endif
61 ifeq ($(PKG_PLATFORM),irix)
62 PCFLAGS = -nostdinc -I$(ROOT)/usr/include
63 endif
64
65 GCFLAGS = $(OPTIMIZER) $(DEBUG) -funsigned-char -fno-strict-aliasing -Wall \
66         -I$(TOPDIR)/include -DVERSION=\"$(PKG_VERSION)\"
67
68 # Global, Platform, Local CFLAGS
69 CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
70
71 include $(TOPDIR)/include/buildmacros
72
73 endif
74
75 #
76 # For targets that should always be rebuilt,
77 # define a target that is never up-to-date.
78 # Targets needing this should depend on $(_FORCE)
79 _FORCE = __force_build