X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2Fllvmc%2FMakefile;h=7c03e2a74f7c6b2f97161a0cf1e1103c5ac79899;hb=a75ce9f5d2236d93c117e861e60e6f3f748c9555;hp=d4b6275ce82f6c3491e970652906090133b91e10;hpb=cc97cfc43eb481ef61763feecb16aa3658016284;p=oota-llvm.git diff --git a/tools/llvmc/Makefile b/tools/llvmc/Makefile index d4b6275ce82..7c03e2a74f7 100644 --- a/tools/llvmc/Makefile +++ b/tools/llvmc/Makefile @@ -1,35 +1,18 @@ ##===- tools/llvmc/Makefile --------------------------------*- Makefile -*-===## -# +# # The LLVM Compiler Infrastructure # -# This file was developed by the LLVM research group and is distributed under -# the University of Illinois Open Source License. See LICENSE.TXT for details. -# +# This file is distributed under the University of Illinois Open +# Source License. See LICENSE.TXT for details. +# ##===----------------------------------------------------------------------===## + LEVEL = ../.. -TOOLNAME = llvmc -USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a -CONFIG_FILES = c cpp ll -EXTRA_DIST = c cpp ll -# The CompilerDriver needs to know the locations of several configured -# directories and paths. We define these as preprocessor symbols so they can -# be hard coded into the process based on the configuration. Only those -# configuration values not available in llvm/include/Config/config.h need to be -# specified here. These values are used as the replacements for the -# configuration file substitution variables such as %llvmgccdir% -CPPFLAGS = -DLLVMGCCDIR="\"$(LLVMGCCDIR)\"" \ - -DLLVMGCCARCH="\"$(LLVMGCCARCH)\"" \ - -DLLVMGCC="\"$(LLVMGCC)\"" \ - -DLLVMGXX="\"$(LLVMGXX)\"" \ - -DLLVMCC1="\"$(LLVMCC1)\"" \ - -DLLVMCC1PLUS="$(LLVMCC1PLUS)" +DIRS = src -include $(LEVEL)/Makefile.common +ifeq ($(BUILD_EXAMPLES),1) + OPTIONAL_DIRS += examples +endif -install:: - $(Echo) Installing additional C++ configuration clones - $(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/cc - $(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/c++ - $(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/cxx - $(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/C +include $(LEVEL)/Makefile.common