X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=blobdiff_plain;f=Makefile.target;h=0254b241da50ce97430976c312cac5833737ebb5;hp=19c773cd5bf7c9cbae04efb7d8c5bd0f7356b293;hb=refs%2Fheads%2Fmaster;hpb=05e20d9243e84acc8ef926b02a059ddacd3599e9 diff --git a/Makefile.target b/Makefile.target index 19c773c..0254b24 100644 --- a/Makefile.target +++ b/Makefile.target @@ -11,12 +11,14 @@ DEFS := $(EXTRADEFS) ifeq ($(ARCH),x86) CROSS := i686-polintos- DEFS += -DBITFIELD_LE -D__LITTLE_ENDIAN +TFLAGS += -m32 VALIDARCH := yes endif ifeq ($(ARCH),x64) CROSS := x86_64-polintos- DEFS += -DBITFIELD_LE -D__LITTLE_ENDIAN +TFLAGS += -m64 VALIDARCH := yes endif @@ -32,6 +34,12 @@ ifdef NOSMP DEFS += -D_LL_NOSMP endif +ifdef USEVALGRIND +VALGRIND ?= valgrind -q +else +VALGRIND := +endif + # C++ prohibits defeferencing a NULL non-POD pointer (and thus # prohibits using offsetof on non-POD types, even though there's no # good reason to disallow it). Some headers use offsetof on non-POD @@ -91,7 +99,7 @@ RM := rm -f RMDIR := rm -rf LN := ln -s IDLC_target := $(BASEBUILDDIR)/build/idlcomp/idlc -IDLC := valgrind -q $(BASEBUILDDIR)/build/idlcomp/idlc +IDLC := $(VALGRIND) $(BASEBUILDDIR)/build/idlcomp/idlc TOUCH := touch BISON := bison FLEX := flex