LocalTargets := all-local clean-local clean-all-local check-local \
install-local printvars uninstall-local \
install-bytecode-local
-TopLevelTargets := check dist dist-check dist-clean tags dist-gzip dist-bzip2 \
+TopLevelTargets := check dist dist-check dist-clean dist-gzip dist-bzip2 \
dist-zip
UserTargets := $(RecursiveTargets) $(LocalTargets) $(TopLevelTargets)
InternalTargets := preconditions distdir dist-hook
VPATH=$(PROJ_SRC_DIR)
#--------------------------------------------------------------------
-# Reset the list of suffixes we know how to build
+# Reset the list of suffixes we know how to build.
#--------------------------------------------------------------------
.SUFFIXES:
.SUFFIXES: .c .cpp .cc .h .hpp .y .l .lo .o .a .bc .td .ps .dot .ll
# Variables derived from configuration we are building
#--------------------------------------------------------------------
+CPP.Defines :=
# OPTIMIZE_OPTION - The optimization level option we want to build LLVM with
# this can be overridden on the make command line.
ifneq ($(OS),MingW)
CXX.Flags := $(OPTIMIZE_OPTION) -pg -g
C.Flags := $(OPTIMIZE_OPTION) -pg -g
LD.Flags := $(OPTIMIZE_OPTION) -pg -g
+ KEEP_SYMBOLS := 1
else
ifeq ($(ENABLE_OPTIMIZED),1)
BuildMode := Release
# then disable assertions by defining the appropriate preprocessor symbols.
ifdef DISABLE_ASSERTIONS
BuildMode := $(BuildMode)-Asserts
- CXX.Flags += -DNDEBUG
- C.Flags += -DNDEBUG
+ CPP.Defines += -DNDEBUG
else
- CXX.Flags += -D_DEBUG
- C.Flags += -D_DEBUG
+ CPP.Defines += -D_DEBUG
endif
# If ENABLE_EXPENSIVE_CHECKS=1 is specified (make command line or
# appropriate preprocessor symbols.
ifdef ENABLE_EXPENSIVE_CHECKS
BuildMode := $(BuildMode)+Checks
- CXX.Flags += -D_GLIBCXX_DEBUG
+ CPP.Defines += -D_GLIBCXX_DEBUG
endif
ifeq ($(ENABLE_PIC),1)
clean-all-local::
-$(Verb) $(RM) -rf Debug Release Profile
-# Build tags database for Emacs/Xemacs:
-tags:: TAGS CTAGS
-
-TAGS:
- find $(PROJ_SRC_ROOT)/include $(PROJ_SRC_ROOT)/lib \
- $(PROJ_SRC_ROOT)/tools $(PROJ_SRC_ROOT)/examples \
- $(PROJ_OBJ_ROOT)/include $(PROJ_OBJ_ROOT)/lib \
- $(PROJ_OBJ_ROOT)/tools $(PROJ_OBJ_ROOT)/examples \
- -name '*.cpp' -o -name '*.h' | \
- $(ETAGS) $(ETAGSFLAGS) -
-
-CTAGS:
- find $(PROJ_SRC_ROOT)/include $(PROJ_SRC_ROOT)/lib \
- $(PROJ_SRC_ROOT)/tools $(PROJ_SRC_ROOT)/examples \
- $(PROJ_OBJ_ROOT)/include $(PROJ_OBJ_ROOT)/lib \
- $(PROJ_OBJ_ROOT)/tools $(PROJ_OBJ_ROOT)/examples \
- \( -name '*.cpp' -o -name '*.h' \) -print | \
- ctags -ImtT -o $(PROJ_OBJ_ROOT)/CTAGS -L -
-
###############################################################################
# DEPENDENCIES: Include the dependency files if we should
DependFiles := $(basename $(filter %.cpp %.c %.cc, $(Sources)))
DependFiles := $(DependFiles:%=$(PROJ_OBJ_DIR)/$(BuildMode)/%.d)
--include /dev/null $(DependFiles)
+-include $(DependFiles) ""
endif