Remove remnants of llvm configure/make build system.
This commit is contained in:
parent
547d42919d
commit
7e9a74f3e4
101
Makefile
101
Makefile
@ -1,101 +0,0 @@
|
||||
##===- Makefile --------------------------------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
# If CLING_LEVEL is not set, then we are the top-level Makefile. Otherwise, we
|
||||
# are being included from a subdirectory makefile.
|
||||
|
||||
ifndef CLING_LEVEL
|
||||
|
||||
IS_TOP_LEVEL := 1
|
||||
CLING_LEVEL := .
|
||||
DIRS := include lib tools docs
|
||||
|
||||
PARALLEL_DIRS :=
|
||||
|
||||
ifeq ($(BUILD_EXAMPLES),1)
|
||||
PARALLEL_DIRS += examples
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(MAKECMDGOALS),libs-only)
|
||||
DIRS := $(filter-out tools docs, $(DIRS))
|
||||
OPTIONAL_DIRS :=
|
||||
endif
|
||||
|
||||
###
|
||||
# Common Makefile code, shared by all Cling Makefiles.
|
||||
|
||||
# Set LLVM source root level.
|
||||
LEVEL := $(CLING_LEVEL)/../..
|
||||
|
||||
# Include LLVM common makefile.
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
ifneq ($(ENABLE_DOCS),1)
|
||||
DIRS := $(filter-out docs, $(DIRS))
|
||||
endif
|
||||
|
||||
# Set common Cling build flags.
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/$(CLING_LEVEL)/include -I$(PROJ_OBJ_DIR)/$(CLING_LEVEL)/include
|
||||
ifdef CLING_VENDOR
|
||||
CPP.Flags += -DCLING_VENDOR='"$(CLING_VENDOR) "'
|
||||
endif
|
||||
|
||||
# Disable -fstrict-aliasing. Darwin disables it by default (and LLVM doesn't
|
||||
# work with it enabled with GCC), Cling/llvm-gc don't support it yet, and newer
|
||||
# GCC's have false positive warnings with it on Linux (which prove a pain to
|
||||
# fix). For example:
|
||||
# http://gcc.gnu.org/PR41874
|
||||
# http://gcc.gnu.org/PR41838
|
||||
#
|
||||
# We can revisit this when LLVM/Cling support it.
|
||||
CXX.Flags += -fno-strict-aliasing
|
||||
|
||||
# Determine cling's version:
|
||||
CLING_VERSION=$(shell cat $(PROJ_SRC_DIR)/$(CLING_LEVEL)/VERSION)
|
||||
CPP.Flags += -DCLING_VERSION='$(CLING_VERSION)'
|
||||
|
||||
###
|
||||
# Cling Top Level specific stuff.
|
||||
|
||||
ifeq ($(IS_TOP_LEVEL),1)
|
||||
|
||||
ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
|
||||
$(RecursiveTargets)::
|
||||
$(Verb) if [ ! -f test/Makefile ]; then \
|
||||
$(MKDIR) test; \
|
||||
$(CP) $(PROJ_SRC_DIR)/test/Makefile test/Makefile; \
|
||||
fi
|
||||
endif
|
||||
|
||||
test::
|
||||
@ $(MAKE) -C test
|
||||
|
||||
report::
|
||||
@ $(MAKE) -C test report
|
||||
|
||||
clean::
|
||||
@ $(MAKE) -C test clean
|
||||
|
||||
libs-only: all
|
||||
|
||||
tags::
|
||||
$(Verb) etags `find . -type f -name '*.h' -or -name '*.cpp' | \
|
||||
grep -v /lib/Headers | grep -v /test/`
|
||||
|
||||
cscope.files:
|
||||
find tools lib include -name '*.cpp' \
|
||||
-or -name '*.def' \
|
||||
-or -name '*.td' \
|
||||
-or -name '*.h' > cscope.files
|
||||
|
||||
.PHONY: test report clean cscope.files
|
||||
|
||||
endif
|
106
docs/Makefile
106
docs/Makefile
@ -1,106 +0,0 @@
|
||||
##===- docs/Makefile ---------------------------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
CLING_LEVEL := ..
|
||||
PROJ_OBJ_DIR = .
|
||||
DIRS := tools
|
||||
|
||||
include $(CLING_LEVEL)/Makefile
|
||||
|
||||
DOXYGEN = doxygen
|
||||
|
||||
PROJ_docsdir := $(PROJ_docsdir)/cling
|
||||
|
||||
HTML := $(wildcard $(PROJ_SRC_DIR)/doxygen/html/*.html) \
|
||||
$(wildcard $(PROJ_SRC_DIR)/*.css)
|
||||
#IMAGES := $(wildcard $(PROJ_SRC_DIR)/img/*.*)
|
||||
DOXYFILES := doxygen.cfg.in doxygen.css doxygen.footer doxygen.header \
|
||||
doxygen.intro
|
||||
EXTRA_DIST := $(HTML) $(DOXYFILES) llvm.css CommandGuide img
|
||||
|
||||
.PHONY: install-html install-doxygen doxygen generated
|
||||
|
||||
install_targets :=
|
||||
ifndef ONLY_MAN_DOCS
|
||||
install_targets += install-html
|
||||
endif
|
||||
ifeq ($(ENABLE_DOXYGEN),1)
|
||||
install_targets += install-doxygen
|
||||
endif
|
||||
install-local:: $(install_targets)
|
||||
|
||||
# Live documentation is generated for the web site using this target:
|
||||
# 'make generated BUILD_FOR_WEBSITE=1'
|
||||
generated:: doxygen
|
||||
|
||||
install-html: $(PROJ_OBJ_DIR)/html.tar.gz
|
||||
$(Verb) if test -d $(PROJ_OBJ_DIR)/doxygen ; then \
|
||||
echo Installing HTML documentation ;\
|
||||
$(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html; \
|
||||
$(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html/img; \
|
||||
$(DataInstall) $(HTML) $(DESTDIR)$(PROJ_docsdir)/html; \
|
||||
$(DataInstall) $(PROJ_OBJ_DIR)/html.tar.gz $(DESTDIR)$(PROJ_docsdir); \
|
||||
fi
|
||||
|
||||
$(PROJ_OBJ_DIR)/html.tar.gz: $(HTML)
|
||||
$(Verb) if test -d $(PROJ_OBJ_DIR)/doxygen ; then \
|
||||
echo Packaging HTML documentation; \
|
||||
$(RM) -rf $@ $(PROJ_OBJ_DIR)/html.tar; \
|
||||
cd $(PROJ_OBJ_DIR) && \
|
||||
$(TAR) cf html.tar doxygen/html/; \
|
||||
$(GZIPBIN) $(PROJ_OBJ_DIR)/html.tar; \
|
||||
fi
|
||||
|
||||
install-doxygen: doxygen
|
||||
$(Echo) Installing doxygen documentation
|
||||
$(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html/doxygen
|
||||
$(Verb) $(DataInstall) $(PROJ_OBJ_DIR)/doxygen.tar.gz $(DESTDIR)$(PROJ_docsdir)
|
||||
$(Verb) cd $(PROJ_OBJ_DIR)/doxygen && \
|
||||
$(FIND) . -type f -exec \
|
||||
$(DataInstall) {} $(DESTDIR)$(PROJ_docsdir)/html/doxygen \;
|
||||
|
||||
doxygen: regendoc $(PROJ_OBJ_DIR)/doxygen.tar.gz
|
||||
|
||||
regendoc: gen-doxygen-cfg
|
||||
$(Echo) Building doxygen documentation
|
||||
$(Verb) if test -e $(PROJ_OBJ_DIR)/doxygen ; then \
|
||||
$(RM) -rf $(PROJ_OBJ_DIR)/doxygen ; \
|
||||
fi
|
||||
$(Verb) $(DOXYGEN) $(PROJ_OBJ_DIR)/doxygen.cfg
|
||||
$(Verb) sed -i "s/[$$]LatestRev[$$]/`git show -s --pretty=format:%h $(PROJ_SRC_DIR)`/g" \
|
||||
$(PROJ_OBJ_DIR)/doxygen/html/*.html
|
||||
|
||||
$(PROJ_OBJ_DIR)/doxygen.tar.gz: $(DOXYFILES) $(PROJ_OBJ_DIR)/doxygen.cfg
|
||||
$(Echo) Packaging doxygen documentation
|
||||
$(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/doxygen.tar
|
||||
$(Verb) $(TAR) cf $(PROJ_OBJ_DIR)/doxygen.tar doxygen
|
||||
$(Verb) $(GZIPBIN) $(PROJ_OBJ_DIR)/doxygen.tar
|
||||
$(Verb) $(CP) $(PROJ_OBJ_DIR)/doxygen.tar.gz $(PROJ_OBJ_DIR)/doxygen/html/
|
||||
|
||||
gen-doxygen-cfg:
|
||||
$(Echo) Generating doxygen configuration file
|
||||
$(Echo) $(PROJ_OBJ_DIR)/doxygen.cfg
|
||||
cat $(PROJ_SRC_DIR)/doxygen.cfg.in | sed \
|
||||
-e 's,@docs_srcdir@,'$(PROJ_SRC_DIR)",g" \
|
||||
-e 's,@cling_srcdir@,'$(call realpath, $(PROJ_SRC_DIR)/$(CLING_LEVEL))",g" \
|
||||
-e 's/@DOT@/dot/g' \
|
||||
-e 's/@PACKAGE_VERSION@/mainline/' \
|
||||
-e 's/@docs_builddir@/./g' > $(PROJ_OBJ_DIR)/doxygen.cfg
|
||||
|
||||
userloc: $(LLVM_SRC_ROOT)/docs/userloc.html
|
||||
|
||||
$(LLVM_SRC_ROOT)/docs/userloc.html:
|
||||
$(Echo) Making User LOC Table
|
||||
$(Verb) cd $(LLVM_SRC_ROOT) ; ./utils/userloc.pl -details -recurse \
|
||||
-html lib include tools runtime utils examples autoconf test > docs/userloc.html
|
||||
|
||||
uninstall-local::
|
||||
$(Echo) Uninstalling Documentation
|
||||
$(Verb) $(RM) -rf $(DESTDIR)$(PROJ_docsdir)
|
@ -1,120 +0,0 @@
|
||||
##===- docs/tools/Makefile ---------------------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
ifdef BUILD_FOR_WEBSITE
|
||||
|
||||
# FIXME: This was copied from the CommandGuide makefile. Figure out
|
||||
# how to get this stuff on the website.
|
||||
|
||||
# This special case is for keeping the CommandGuide on the LLVM web site
|
||||
# up to date automatically as the documents are checked in. It must build
|
||||
# the POD files to HTML only and keep them in the src directories. It must also
|
||||
# build in an unconfigured tree, hence the ifdef. To use this, run
|
||||
# make -s BUILD_FOR_WEBSITE=1 inside the cvs commit script.
|
||||
SRC_DOC_DIR=
|
||||
DST_HTML_DIR=html/
|
||||
DST_MAN_DIR=man/man1/
|
||||
DST_PS_DIR=ps/
|
||||
CLING_VERSION := trunk
|
||||
|
||||
# If we are in BUILD_FOR_WEBSITE mode, default to the all target.
|
||||
all:: html man ps
|
||||
|
||||
clean:
|
||||
rm -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)
|
||||
|
||||
# To create other directories, as needed, and timestamp their creation
|
||||
%/.dir:
|
||||
-mkdir $* > /dev/null
|
||||
date > $@
|
||||
|
||||
else
|
||||
|
||||
# Otherwise, if not in BUILD_FOR_WEBSITE mode, use the project info.
|
||||
CLING_LEVEL := ../..
|
||||
include $(CLING_LEVEL)/Makefile
|
||||
|
||||
CLING_VERSION=$(shell cat $(PROJ_SRC_DIR)/$(CLING_LEVEL)/VERSION)
|
||||
|
||||
SRC_DOC_DIR=$(PROJ_SRC_DIR)/
|
||||
DST_HTML_DIR=$(PROJ_OBJ_DIR)/
|
||||
DST_MAN_DIR=$(PROJ_OBJ_DIR)/
|
||||
DST_PS_DIR=$(PROJ_OBJ_DIR)/
|
||||
|
||||
endif
|
||||
|
||||
|
||||
POD := $(wildcard $(SRC_DOC_DIR)*.pod)
|
||||
HTML := $(patsubst $(SRC_DOC_DIR)%.pod, $(DST_HTML_DIR)%.html, $(POD))
|
||||
MAN := $(patsubst $(SRC_DOC_DIR)%.pod, $(DST_MAN_DIR)%.1, $(POD))
|
||||
PS := $(patsubst $(SRC_DOC_DIR)%.pod, $(DST_PS_DIR)%.ps, $(POD))
|
||||
|
||||
ifdef ONLY_MAN_DOCS
|
||||
INSTALL_TARGETS := install-man
|
||||
else
|
||||
INSTALL_TARGETS := install-html install-man install-ps
|
||||
endif
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .html .pod .1 .ps
|
||||
|
||||
$(DST_HTML_DIR)%.html: %.pod $(DST_HTML_DIR)/.dir
|
||||
pod2html --css=manpage.css --htmlroot=. \
|
||||
--podpath=. --infile=$< --outfile=$@ --title=$*
|
||||
|
||||
$(DST_MAN_DIR)%.1: %.pod $(DST_MAN_DIR)/.dir
|
||||
pod2man --release "cling $(CLING_VERSION)" --center="Cling Tools Documentation (Unstable)" $< $@
|
||||
|
||||
$(DST_PS_DIR)%.ps: $(DST_MAN_DIR)%.1 $(DST_PS_DIR)/.dir
|
||||
groff -Tps -man $< > $@
|
||||
|
||||
|
||||
html: $(HTML)
|
||||
man: $(MAN)
|
||||
ps: $(PS)
|
||||
|
||||
podgen:
|
||||
@$(PYTHON) $(SRC_DOC_DIR)/in2pod.py $(PROJ_OBJ_ROOT)/Release+Asserts/bin/cling
|
||||
|
||||
EXTRA_DIST := $(POD)
|
||||
|
||||
clean-local::
|
||||
$(Verb) $(RM) -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)
|
||||
|
||||
HTML_DIR := $(DESTDIR)$(PROJ_docsdir)/html/cling
|
||||
MAN_DIR := $(DESTDIR)$(PROJ_mandir)/man1
|
||||
PS_DIR := $(DESTDIR)$(PROJ_docsdir)/ps
|
||||
|
||||
install-html:: $(HTML)
|
||||
$(Echo) Installing HTML Cling Tools Documentation
|
||||
$(Verb) $(MKDIR) $(HTML_DIR)
|
||||
$(Verb) $(DataInstall) $(HTML) $(HTML_DIR)
|
||||
$(Verb) $(DataInstall) $(PROJ_SRC_DIR)/manpage.css $(HTML_DIR)
|
||||
|
||||
install-man:: $(MAN)
|
||||
$(Echo) Installing MAN Cling Tools Documentation
|
||||
$(Verb) $(MKDIR) $(MAN_DIR)
|
||||
$(Verb) $(DataInstall) $(MAN) $(MAN_DIR)
|
||||
|
||||
install-ps:: $(PS)
|
||||
$(Echo) Installing PS Cling Tools Documentation
|
||||
$(Verb) $(MKDIR) $(PS_DIR)
|
||||
$(Verb) $(DataInstall) $(PS) $(PS_DIR)
|
||||
|
||||
install-local:: podgen
|
||||
$(MAKE) $(INSTALL_TARGETS)
|
||||
|
||||
uninstall-local::
|
||||
$(Echo) Uninstalling Cling Tools Documentation
|
||||
$(Verb) $(RM) -rf $(HTML_DIR) $(MAN_DIR) $(PS_DIR)
|
||||
|
||||
printvars::
|
||||
$(Echo) "POD : " '$(POD)'
|
||||
$(Echo) "HTML : " '$(HTML)'
|
@ -1,14 +0,0 @@
|
||||
##===- cling/include/Makefile ------------------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
CLING_LEVEL := ..
|
||||
DIRS := cling
|
||||
|
||||
include $(CLING_LEVEL)/Makefile
|
@ -1,40 +0,0 @@
|
||||
##===- cling/include/cling/Makefile ------------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
CLING_LEVEL := ../..
|
||||
|
||||
include $(CLING_LEVEL)/Makefile
|
||||
|
||||
install-local::
|
||||
$(Echo) Installing Cling include files
|
||||
$(Verb) $(MKDIR) $(DESTDIR)$(PROJ_includedir)
|
||||
$(Verb) if test -d "$(PROJ_SRC_ROOT)/tools/cling/include/cling" ; then \
|
||||
cd $(PROJ_SRC_ROOT)/tools/cling/include && \
|
||||
for hdr in `find cling -type f '!' '(' -name '*~' \
|
||||
-o -name '.#*' -o -name '*.in' -o -name '*.txt' \
|
||||
-o -name 'Makefile' -o -name '*.td' -o -name '*.orig' ')' -print \
|
||||
| grep -v CVS | grep -v .svn | grep -v .dir` ; do \
|
||||
instdir=$(DESTDIR)`dirname "$(PROJ_includedir)/$$hdr"` ; \
|
||||
if test \! -d "$$instdir" ; then \
|
||||
$(EchoCmd) Making install directory $$instdir ; \
|
||||
$(MKDIR) $$instdir ;\
|
||||
fi ; \
|
||||
$(DataInstall) $$hdr $(DESTDIR)$(PROJ_includedir)/$$hdr ; \
|
||||
done ; \
|
||||
fi
|
||||
ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
|
||||
$(Verb) if test -d "$(PROJ_OBJ_ROOT)/tools/cling/include/cling" ; then \
|
||||
cd $(PROJ_OBJ_ROOT)/tools/cling/include && \
|
||||
for hdr in `find cling -type f '!' '(' -name 'Makefile' ')' -print \
|
||||
| grep -v CVS | grep -v .tmp | grep -v .dir` ; do \
|
||||
$(DataInstall) $$hdr $(DESTDIR)$(PROJ_includedir)/$$hdr ; \
|
||||
done ; \
|
||||
fi
|
||||
endif
|
@ -1,42 +0,0 @@
|
||||
##===- cling/lib/Interpreter/Makefile-----------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
#
|
||||
# This implements the a C++ interpreter backend.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
CLING_LEVEL = ../..
|
||||
LIBRARYNAME := clingInterpreter
|
||||
BUILD_ARCHIVE = 1
|
||||
CXXFLAGS = -fno-rtti
|
||||
|
||||
# Inform the sources about their install location
|
||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_SRC_DIR)/../../../clang/include \
|
||||
-I$(PROJ_SRC_DIR)/../../../clang/lib -I$(PROJ_OBJ_DIR)/../../include \
|
||||
-I$(PROJ_OBJ_DIR)/../../../clang/include \
|
||||
-I$(DESTDIR)$(PROJ_includedir) \
|
||||
'-DCLING_INCLUDE_PATHS="$(DESTDIR)$(PROJ_includedir):$(LLVM_SRC_ROOT)/tools/cling/include:$(LLVM_SRC_ROOT)/tools/clang/include:$(LLVM_SRC_ROOT)/include"'
|
||||
|
||||
include $(CLING_LEVEL)/Makefile
|
||||
|
||||
.PHONY: FORCE
|
||||
|
||||
$(ObjRootDir)/cling-compiledata.h: FORCE
|
||||
@mkdir -p $(dir $@)
|
||||
@echo '#define LLVM_CXX "$(CXX) $(CPP.BaseFlags) $(CXX.Flags)"' > $@_tmp
|
||||
@diff -q $@_tmp $@ > /dev/null 2>&1 || mv $@_tmp $@
|
||||
@rm -f $@_tmp
|
||||
|
||||
$(ObjRootDir)/ExceptionRTTI.o: CXX.Flags := $(subst -fno-rtti,,$(subst -fno-exceptions,,$(CXX.Flags)))
|
||||
$(ObjRootDir)/CIFactory.o: $(ObjRootDir)/cling-compiledata.h
|
||||
$(ObjRootDir)/CIFactory.o: CXX.Flags += -I$(ObjRootDir) -pthread
|
||||
$(ObjRootDir)/Interpreter.o: $(ObjRootDir)/cling-compiledata.h
|
||||
$(ObjRootDir)/Interpreter.o: CXX.Flags += -I$(ObjRootDir)
|
||||
|
15
lib/Makefile
15
lib/Makefile
@ -1,15 +0,0 @@
|
||||
##===- lib/Makefile ----------------------------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
LEVEL = ../../..
|
||||
|
||||
PARALLEL_DIRS = Interpreter MetaProcessor UserInterface Utils
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
@ -1,23 +0,0 @@
|
||||
##===- cling/lib/MetaProcessor/Makefile---------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
#
|
||||
# This implements the a C++ interpreter user frontend.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
CLING_LEVEL = ../..
|
||||
LIBRARYNAME := clingMetaProcessor
|
||||
BUILD_ARCHIVE = 1
|
||||
CXXFLAGS = -fno-rtti
|
||||
|
||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_SRC_DIR)/../../../clang/include \
|
||||
-I$(PROJ_SRC_DIR)/../../../clang/lib -I$(PROJ_OBJ_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../../clang/include
|
||||
|
||||
include $(CLING_LEVEL)/Makefile
|
@ -1,30 +0,0 @@
|
||||
##===- cling/lib/UserInterface/Makefile---------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
#
|
||||
# This implements the a C++ interpreter user frontend.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
CLING_LEVEL = ../..
|
||||
DIRS = textinput
|
||||
|
||||
LIBRARYNAME := clingUserInterface
|
||||
BUILD_ARCHIVE = 1
|
||||
CXXFLAGS = -fno-rtti
|
||||
|
||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_SRC_DIR)/../../../clang/include \
|
||||
-I$(PROJ_SRC_DIR)/../../../clang/lib \
|
||||
-I$(PROJ_OBJ_DIR)/../../include \
|
||||
-I$(PROJ_OBJ_DIR)/../../../clang/include \
|
||||
-I$(DESTDIR)$(PROJ_includedir)
|
||||
|
||||
include $(CLING_LEVEL)/Makefile
|
||||
|
||||
CXX.Flags := $(subst -fno-exceptions,,$(CXX.Flags))
|
@ -1,26 +0,0 @@
|
||||
##===- cling/lib/MetaProcessor/Makefile---------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
#
|
||||
# This implements the a C++ interpreter user frontend.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
CLING_LEVEL = ../..
|
||||
LIBRARYNAME := clingUtils
|
||||
BUILD_ARCHIVE = 1
|
||||
CXXFLAGS = -fno-rtti
|
||||
|
||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_SRC_DIR)/../../../clang/include \
|
||||
-I$(PROJ_SRC_DIR)/../../../clang/lib \
|
||||
-I$(PROJ_OBJ_DIR)/../../include \
|
||||
-I$(PROJ_OBJ_DIR)/../../../clang/include \
|
||||
-I$(DESTDIR)$(PROJ_includedir)
|
||||
|
||||
include $(CLING_LEVEL)/Makefile
|
@ -1,64 +0,0 @@
|
||||
##===- cling/test/Makefile ---------------------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = ../../..
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
# Test in all immediate subdirectories if unset.
|
||||
ifdef TESTSUITE
|
||||
TESTDIRS := $(TESTSUITE:%=$(PROJ_SRC_DIR)/%)
|
||||
else
|
||||
TESTDIRS ?= $(PROJ_SRC_DIR)
|
||||
endif
|
||||
|
||||
# 'lit' wants objdir paths, so it will pick up the lit.site.cfg.
|
||||
TESTDIRS := $(TESTDIRS:$(PROJ_SRC_DIR)%=$(PROJ_OBJ_DIR)%)
|
||||
|
||||
# Allow EXTRA_TESTDIRS to provide additional test directories.
|
||||
TESTDIRS += $(EXTRA_TESTDIRS)
|
||||
|
||||
ifndef TESTARGS
|
||||
ifdef VERBOSE
|
||||
TESTARGS = -v
|
||||
else
|
||||
TESTARGS = -s -v
|
||||
endif
|
||||
endif
|
||||
|
||||
# Make sure any extra test suites can find the main site config.
|
||||
LIT_ARGS := --param cling_site_config=$(PROJ_OBJ_DIR)/lit.site.cfg
|
||||
|
||||
ifdef VG
|
||||
LIT_ARGS += "--vg"
|
||||
endif
|
||||
|
||||
all:: lit.site.cfg
|
||||
@ echo '--- Running cling tests for $(TARGET_TRIPLE) ---'
|
||||
@ $(PYTHON) $(LLVM_SRC_ROOT)/utils/lit/lit.py \
|
||||
$(LIT_ARGS) $(TESTARGS) $(TESTDIRS)
|
||||
|
||||
FORCE:
|
||||
|
||||
lit.site.cfg: FORCE
|
||||
@echo "Making Cling 'lit.site.cfg' file..."
|
||||
@sed -e "s#@LLVM_SOURCE_DIR@#$(LLVM_SRC_ROOT)#g" \
|
||||
-e "s#@LLVM_BINARY_DIR@#$(LLVM_OBJ_ROOT)#g" \
|
||||
-e "s#@LLVM_TOOLS_DIR@#$(ToolDir)#g" \
|
||||
-e "s#@LLVM_LIBS_DIR@#$(LibDir)#g" \
|
||||
-e "s#@CLING_SOURCE_DIR@#$(PROJ_SRC_DIR)/..#g" \
|
||||
-e "s#@CLING_BINARY_DIR@#$(PROJ_OBJ_DIR)/..#g" \
|
||||
-e "s#@TARGET_TRIPLE@#$(TARGET_TRIPLE)#g" \
|
||||
-e "s#@TARGET_SHLIBEXT@#$(SHLIBEXT)#g" \
|
||||
$(PROJ_SRC_DIR)/lit.site.cfg.in > $@
|
||||
|
||||
clean::
|
||||
@ find . -name Output | xargs rm -fr
|
||||
|
||||
.PHONY: all report clean
|
@ -1,14 +0,0 @@
|
||||
##===- tools/Makefile --------------------------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL := ../../..
|
||||
DIRS := driver
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
@ -1,32 +0,0 @@
|
||||
##===- tools/driver/Makefile -------------------------------*- Makefile -*-===##
|
||||
#
|
||||
# The Cling Interpreter
|
||||
#
|
||||
# This file is dual-licensed: you can choose to license it under the University
|
||||
# of Illinois Open Source License or the GNU Lesser General Public License. See
|
||||
# LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
LEVEL = ../../../..
|
||||
CLING_LEVEL := ../..
|
||||
|
||||
TOOLNAME = cling
|
||||
|
||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
|
||||
-I$(PROJ_SRC_DIR)/../../../clang/include -I$(PROJ_SRC_DIR)/../../../clang/lib \
|
||||
-I$(PROJ_OBJ_DIR)/../../../clang/include
|
||||
CXXFLAGS = -fno-rtti
|
||||
|
||||
# Keep symbols for JIT resolution
|
||||
NO_DEAD_STRIP := 1
|
||||
KEEP_SYMBOLS := 1
|
||||
|
||||
LINK_COMPONENTS := bitwriter mcjit orcjit native option ipo profiledata instrumentation objcarcopts
|
||||
USEDLIBS = clingUserInterface.a clingMetaProcessor.a clingInterpreter.a clingUITextInput.a clingUtils.a clangFrontend.a clangSerialization.a clangDriver.a clangCodeGen.a clangParse.a clangSema.a clangEdit.a clangAnalysis.a clangAST.a clangLex.a clangBasic.a
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
ifeq ($(TARGET_OS),Cygwin)
|
||||
# cygwin, export all symbols
|
||||
LDFLAGS += -Wl,--export-all-symbols
|
||||
endif
|
Loading…
x
Reference in New Issue
Block a user