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_ATTR_LIST = @have_attr_list@
55 ifeq ($(PKG_PLATFORM),linux)
56 PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
58 ifeq ($(PKG_PLATFORM),darwin)
59 PCFLAGS = -traditional-cpp
61 ifeq ($(PKG_PLATFORM),irix)
62 PCFLAGS = -nostdinc -I$(ROOT)/usr/include
65 GCFLAGS = $(OPTIMIZER) $(DEBUG) -funsigned-char -fno-strict-aliasing -Wall \
66 -I$(TOPDIR)/include -DVERSION=\"$(PKG_VERSION)\"
68 # Global, Platform, Local CFLAGS
69 CFLAGS += $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
71 include $(TOPDIR)/include/buildmacros
76 # For targets that should always be rebuilt,
77 # define a target that is never up-to-date.
78 # Targets needing this should depend on $(_FORCE)
79 _FORCE = __force_build