[llvm-commits] [poolalloc] r47095 - /poolalloc/trunk/Makefile.common.in

John Criswell criswell at uiuc.edu
Wed Feb 13 14:25:18 PST 2008


Author: criswell
Date: Wed Feb 13 16:25:17 2008
New Revision: 47095

URL: http://llvm.org/viewvc/llvm-project?rev=47095&view=rev
Log:
Enhanced Makefiles so that building with SAFECode works.

Modified:
    poolalloc/trunk/Makefile.common.in

Modified: poolalloc/trunk/Makefile.common.in
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/Makefile.common.in?rev=47095&r1=47094&r2=47095&view=diff

==============================================================================
--- poolalloc/trunk/Makefile.common.in (original)
+++ poolalloc/trunk/Makefile.common.in Wed Feb 13 16:25:17 2008
@@ -19,6 +19,16 @@
 # Set the root directory of this project's install prefix
 PROJ_INSTALL_ROOT := @prefix@
 
+# Location of SAFECode source tree
+SAFECODE_SRC_ROOT := @SAFECODESRC@
+SAFECODE_OBJ_ROOT := @SAFECODEOBJ@
+
+# All of the code should additionally look inside the pool allocation source
+# code for include files
+CFLAGS   += -I$(SAFECODE_SRC_ROOT)/include -I$(SAFECODE_OBJ_ROOT)/include
+CXXFLAGS += -I$(SAFECODE_SRC_ROOT)/include -I$(SAFECODE_OBJ_ROOT)/include
+CPPFLAGS += -I$(SAFECODE_SRC_ROOT)/include -I$(SAFECODE_OBJ_ROOT)/include
+
 # Include LLVM's Master Makefile.
 include $(LLVM_SRC_ROOT)/Makefile.common
 





More information about the llvm-commits mailing list