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@
21 LIBTEST = $(TOPDIR)/lib/libtest.la
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@
41 MAKEDEPEND = @makedepend@
48 RPM_VERSION = @rpm_version@
50 ENABLE_SHARED = @enable_shared@
53 HAVE_DMAPI = @have_dmapi@
54 HAVE_ATTR_LIST = @have_attr_list@
56 GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall
58 ifeq ($(PKG_PLATFORM),linux)
59 PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS)
60 DEPENDFLAGS = -D__linux__
62 ifeq ($(PKG_PLATFORM),darwin)
63 PCFLAGS = -traditional-cpp $(GCCFLAGS)
64 DEPENDFLAGS = -D__APPLE__
66 ifeq ($(PKG_PLATFORM),irix)
67 PCFLAGS = -nostdinc -I$(ROOT)/usr/include -I$(TOPDIR)/../irix/include
68 DEPENDFLAGS = -D__sgi__
70 ifeq ($(PKG_PLATFORM),freebsd)
71 DEPENDFLAGS = -D__FreeBSD__
74 GCFLAGS = $(OPTIMIZER) $(DEBUG) \
75 -I$(TOPDIR)/include -DVERSION=\"$(PKG_VERSION)\"
77 # Global, Platform, Local CFLAGS
78 CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
80 include $(TOPDIR)/include/buildmacros
85 # For targets that should always be rebuilt,
86 # define a target that is never up-to-date.
87 # Targets needing this should depend on $(_FORCE)
88 _FORCE = __force_build