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