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@
25 LIBTEST = $(TOPDIR)/lib/libtest.la
29 PKG_GROUP = @pkg_group@
30 PKG_RELEASE = @pkg_release@
31 PKG_VERSION = @pkg_version@
32 PKG_PLATFORM = @pkg_platform@
33 PKG_DISTRIBUTION= @pkg_distribution@
34 PKG_SBIN_DIR = @sbindir@
35 # A bit of a hack; by rights only state should probably go here
37 PKG_LIB_DIR = /var/lib/@pkg_name@
49 MAKEDEPEND = @makedepend@
56 RPM_VERSION = @rpm_version@
58 ENABLE_SHARED = @enable_shared@
61 HAVE_DMAPI = @have_dmapi@
62 HAVE_ATTR_LIST = @have_attr_list@
64 GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall
66 ifeq ($(PKG_PLATFORM),linux)
67 PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS)
68 DEPENDFLAGS = -D__linux__
70 ifeq ($(PKG_PLATFORM),darwin)
71 PCFLAGS = -traditional-cpp $(GCCFLAGS)
72 DEPENDFLAGS = -D__APPLE__
74 ifeq ($(PKG_PLATFORM),irix)
75 PCFLAGS = -nostdinc -I$(ROOT)/usr/include -I$(TOPDIR)/../irix/include
76 DEPENDFLAGS = -D__sgi__
78 ifeq ($(PKG_PLATFORM),freebsd)
79 DEPENDFLAGS = -D__FreeBSD__
82 GCFLAGS = $(OPTIMIZER) $(DEBUG) $(CPPFLAGS) \
83 -I$(TOPDIR)/include -DVERSION=\"$(PKG_VERSION)\"
85 # Global, Platform, Local CFLAGS
86 CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
88 include $(TOPDIR)/include/buildmacros
93 # For targets that should always be rebuilt,
94 # define a target that is never up-to-date.
95 # Targets needing this should depend on $(_FORCE)
96 _FORCE = __force_build