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