2 # Copyright (c) 2003 Silicon Graphics, Inc. All Rights Reserved.
7 ifndef _BUILDDEFS_INCLUDED_
8 _BUILDDEFS_INCLUDED_ = 1
11 OPTIMIZER = @opt_build@
12 MALLOCLIB = @malloc_lib@
13 LOADERFLAGS = @LDFLAGS@
17 HAVE_LIBXFS = @have_libxfs@
18 HAVE_XLOG_ASSIGN_LSN = @have_xlog_assign_lsn@
26 LIBTEST = $(TOPDIR)/lib/libtest.la
30 PKG_GROUP = @pkg_group@
31 PKG_RELEASE = @pkg_release@
32 PKG_VERSION = @pkg_version@
33 PKG_PLATFORM = @pkg_platform@
34 PKG_DISTRIBUTION= @pkg_distribution@
35 PKG_SBIN_DIR = @sbindir@
36 # A bit of a hack; by rights only state should probably go here
38 PKG_LIB_DIR = /var/lib/@pkg_name@
51 MAKEDEPEND = @makedepend@
58 RPM_VERSION = @rpm_version@
60 ENABLE_SHARED = @enable_shared@
63 HAVE_FALLOCATE = @have_fallocate@
64 HAVE_DMAPI = @have_dmapi@
65 HAVE_ATTR_LIST = @have_attr_list@
66 HAVE_FIEMAP = @have_fiemap@
67 HAVE_FALLOCATE = @have_fallocate@
69 GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall
71 ifeq ($(PKG_PLATFORM),linux)
72 PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS)
74 ifeq ($(PKG_PLATFORM),darwin)
75 PCFLAGS = -traditional-cpp $(GCCFLAGS)
77 ifeq ($(PKG_PLATFORM),irix)
78 PCFLAGS = -nostdinc -I$(ROOT)/usr/include -I$(TOPDIR)/../irix/include
80 ifeq ($(PKG_PLATFORM),freebsd)
83 GCFLAGS = $(OPTIMIZER) $(DEBUG) $(CPPFLAGS) \
84 -I$(TOPDIR)/include -DVERSION=\"$(PKG_VERSION)\"
86 # Global, Platform, Local CFLAGS
87 CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
89 include $(TOPDIR)/include/buildmacros
94 # For targets that should always be rebuilt,
95 # define a target that is never up-to-date.
96 # Targets needing this should depend on $(_FORCE)
97 _FORCE = __force_build