From 13fe0618bc14cc3a53c1ec14e175b96923cb054b Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 12 Mar 2012 04:49:16 +0000 Subject: [PATCH] Convenience Makefile variable for building with Clang: make CLANG=1 git-svn-id: https://svn.eduke32.com/eduke32@2459 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/Makefile.common | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index 983c06f6f..f43aa8588 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -45,6 +45,7 @@ endif # EFENCE - 1 = compile with Electric Fence for malloc() debugging # OPTLEVEL - 0..3 = GCC optimization strategy # LTO - 1 = enable link-time optimization, for GCC 4.5 and up +# CLANG - 1 = enable the Clang/LLVM compiler # RELEASE?=1 DEBUGANYWAY?=0 @@ -55,6 +56,7 @@ OPTLEVEL?=2 PROFILER?=0 MUDFLAP?=0 LTO?=0 +CLANG?=0 ifneq (0,$(KRANDDEBUG)) RELEASE=0 @@ -73,6 +75,13 @@ RC=windres RANLIB=ranlib STRIP=strip +ifneq (0,$(CLANG)) + CC=clang + CXX=clang++ + AR=llvm-ar + RANLIB=llvm-ranlib +endif + # compiler flags etc. LIBS=-lm ifneq (0,$(USE_LIBPNG))