Internalize variable names to prevent recursive assignment. Cleanup docs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17359 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-10-30 09:19:36 +00:00
parent f1bd4b4215
commit cc2d1e25f3
9 changed files with 555 additions and 474 deletions

View File

@ -20,10 +20,10 @@ EXTRA_DIST := test llvm.spec include
include $(LEVEL)/Makefile.common
dist-hook::
@$(ECHO) Eliminating CVS directories from distribution
$(VERB) rm -rf `find $(TopDistDir) -type d -name CVS -print`
@$(ECHO) Eliminating files constructed by configure
$(VERB) rm -f \
$(Echo) Eliminating CVS directories from distribution
$(Verb) $(RM) -rf `find $(TopDistDir) -type d -name CVS -print`
$(Echo) Eliminating files constructed by configure
$(Verb) $(RM) -f \
$(TopDistDir)/include/llvm/ADT/hash_map \
$(TopDistDir)/include/llvm/ADT/hash_set \
$(TopDistDir)/include/llvm/ADT/iterator \
@ -31,7 +31,7 @@ dist-hook::
$(TopDistDir)/include/llvm/Support/DataTypes.h \
$(TopDistDir)/include/llvm/Support/ThreadSupport.h
test :: all
check ::
cd test; $(MAKE)
tools-only: all

View File

@ -54,7 +54,7 @@ ETAGSFLAGS = @ETAGSFLAGS@
RPWD = pwd
SED = sed
RM = rm
ECHO = echo "llvm["$(MAKELEVEL)"]:"
ECHO = echo
MKDIR = @abs_top_srcdir@/autoconf/mkinstalldirs
INSTALL_SH = $(BUILD_SRC_ROOT)/autoconf/install-sh
DATE = date

File diff suppressed because it is too large Load Diff

View File

@ -17,23 +17,21 @@ BUILT_SOURCES = \
include $(LEVEL)/Makefile.common
SparcV9.burg.in1 : $(BUILD_SRC_DIR)/SparcV9.burg.in
@$(ECHO) Pre-processing SparcV9.burg.in
$(VERB) $(CXX) -E $(CPPFLAGS) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/Ydefine/#define/' > $@
$(Echo) Pre-processing SparcV9.burg.in
$(Verb) $(CXX) -E $(CPP.Flags) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/Ydefine/#define/' > $@
SparcV9.burm : SparcV9.burg.in1
@$(ECHO) Pre-processing SparcV9.burg.in
$(VERB) $(CXX) -E $(CPPFLAGS) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/^Xinclude/#include/' | $(SED) 's/^Xdefine/#define/' > $@
$(Echo) Pre-processing SparcV9.burg.in
$(Verb) $(CXX) -E $(CPP.Flags) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/^Xinclude/#include/' | $(SED) 's/^Xdefine/#define/' > $@
SparcV9.burm.cpp: SparcV9.burm
@$(ECHO) "Burging `basename $<`"
$(VERB) $(BURG) -I $< -o $@
$(Echo) "Burging `basename $<`"
$(Verb) $(BURG) -I $< -o $@
TABLEGEN_FILES := $(notdir $(wildcard $(BUILD_SRC_DIR)/*.td))
SparcV9CodeEmitter.inc: $(BUILD_SRC_DIR)/SparcV9.td $(TABLEGEN_FILES) $(TBLGEN)
@$(ECHO) "Running tblgen on SparcV9.td"
$(VERB) $(TableGen) -gen-emitter -o $@ $<
SparcV9CodeEmitter.inc: $(BUILD_SRC_DIR)/SparcV9.td $(TDFiles) $(TBLGEN)
$(Echo) "Running tblgen on SparcV9.td"
$(Verb) $(TableGen) -gen-emitter -o $@ $<
clean::
$(VERB) $(RM) -f SparcV9CodeEmitter.inc SparcV9.burg.in1 SparcV9.burm SparcV9.burm.cpp
$(Verb) $(RM) -f SparcV9CodeEmitter.inc SparcV9.burg.in1 SparcV9.burm SparcV9.burm.cpp

View File

@ -28,43 +28,43 @@ Source := $(MainSrc) $(GenericEHSrc) $(SJLJEHSrc) $(CXXEHSrc)
include $(LEVEL)/Makefile.common
# CRTEND_A - The result of making 'all' - the final archive file.
CRTEND_A = $(LIBDIR)/libcrtend.a
CRTEND_A = $(LibDir)/libcrtend.a
all:: $(CRTEND_A)
# Installation simply requires copying the archive to it's new home.
$(bytecode_libdir)/libcrtend.a: $(CRTEND_A) $(bytecode_libdir)
@$(ECHO) Installing $(CRTEND_A)
$(VERB) $(INSTALL) $(CRTEND_A) $(bytecode_libdir)
$(Echo) Installing $(CRTEND_A)
$(Verb) $(INSTALL) $(CRTEND_A) $(bytecode_libdir)
install:: $(DESTDIR)$(bytecode_libdir)/libcrtend.a
install-bytecode:: $(DESTDIR)$(bytecode_libdir)/libcrtend.a
# The four components described in the README
# The three components described in the README
Components := main genericeh sjljeh
ComponentLibs := $(Components:%=$(OBJDIR)/comp_%.bc)
ComponentLibs := $(Components:%=$(ObjDir)/comp_%.bc)
# We build libcrtend.a from the four components described in the README.
$(CRTEND_A) : $(ComponentLibs) $(LIBDIR)/.dir
@$(ECHO) Building final libcrtend.a file from components
$(VERB) $(Archive) $@ $(ComponentLibs)
$(CRTEND_A) : $(ComponentLibs) $(LibDir)/.dir
$(Echo) Building final libcrtend.a file from components
$(Verb) $(Archive) $@ $(ComponentLibs)
MainObj := $(OBJDIR)/crtend.bc $(OBJDIR)/listend.bc
GenericEHObj := $(OBJDIR)/Exception.bc
SJLJEHObj := $(OBJDIR)/SJLJ-Exception.bc
MainObj := $(ObjDir)/crtend.bc $(ObjDir)/listend.bc
GenericEHObj := $(ObjDir)/Exception.bc
SJLJEHObj := $(ObjDir)/SJLJ-Exception.bc
# __main and ctor/dtor support component
$(OBJDIR)/comp_main.bc: $(MainObj)
@$(ECHO) Linking $(notdir $@) component...
$(VERB) $(GCCLD) -link-as-library -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_main.lst $(MainObj) -o $@
$(ObjDir)/comp_main.bc: $(MainObj)
$(Echo) Linking $(notdir $@) component...
$(Verb) $(GCCLD) -link-as-library -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_main.lst $(MainObj) -o $@
# Generic exception handling support runtime.
$(OBJDIR)/comp_genericeh.bc: $(GenericEHObj)
@$(ECHO) Linking $(notdir $@) component...
$(VERB) $(GCCLD) -link-as-library -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_genericeh.lst $(GenericEHObj) -o $@
$(ObjDir)/comp_genericeh.bc: $(GenericEHObj)
$(Echo) Linking $(notdir $@) component...
$(Verb) $(GCCLD) -link-as-library -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_genericeh.lst $(GenericEHObj) -o $@
# setjmp/longjmp exception handling support runtime.
$(OBJDIR)/comp_sjljeh.bc: $(SJLJEHObj)
@$(ECHO) Linking $(notdir $@) component...
$(VERB) $(GCCLD) -link-as-library -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_sjljeh.lst $(SJLJEHObj) -o $@
$(ObjDir)/comp_sjljeh.bc: $(SJLJEHObj)
$(Echo) Linking $(notdir $@) component...
$(Verb) $(GCCLD) -link-as-library -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_sjljeh.lst $(SJLJEHObj) -o $@

View File

@ -44,7 +44,7 @@ endif
#
CONTEXT= -c "srcroot=$(LLVM_SRC_ROOT)" \
-c "buildroot=$(LLVM_OBJ_ROOT)" \
-c "buildtype=$(CONFIGURATION)" \
-c "buildtype=$(Configuration)" \
-c "tmpdir=$(LLVM_OBJ_ROOT)/test/tmp" \
-c "coresize=0" \
-c "cc=$(CC)" \

View File

@ -9,16 +9,17 @@
LEVEL = ../..
LIBRARYNAME = LLVMexecve
SHARED_LIBRARY = 1
DONT_BUILD_RELINKED = 1
include $(LEVEL)/Makefile.common
all:: llee
llee: $(TOOLDIR)/llee
llee: $(ToolDir)/llee
$(TOOLDIR)/llee: Makefile
@$(ECHO) Constructing llee shell script
$(VERB) echo exec env LD_PRELOAD=$(LIBDIR)/libLLVMexecve$(SHLIBEXT) $$\* > $@
$(VERB) chmod u+x $@
$(ToolDir)/llee: Makefile
$(Echo) Constructing llee shell script
$(Verb) echo exec env LD_PRELOAD=$(LibDir)/libexecve$(SHLIBEXT) $$\* > $@
$(Verb) chmod u+x $@
clean::
$(VERB) rm -f $(TOOLDIR)/llee
$(Verb) rm -f $(ToolDir)/llee

View File

@ -8,31 +8,34 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = burg
BUILT_SOURCES = gram.tab.c
BUILT_SOURCES = gram.tab.c gram.tab.h
EXTRA_DIST = gram.yc gram.tab.c gram.tab.h sample.gr
include $(LEVEL)/Makefile.common
gram.tab.c gram.tab.h: gram.yc
$(VERB) $(BISON) -o gram.tab.c -d $<
$(Verb) $(BISON) -o gram.tab.c -d $<
$(OBJDIR)/lex.o : gram.tab.h
$(ObjDir)/lex.o : gram.tab.h
clean::
$(VERB) $(RM) -rf gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
#$(BUILD_OBJ_DIR)/Release/lex.o $(BUILD_OBJ_DIR)/Profile/lex.o $(BUILD_OBJ_DIR)/Debug/lex.o: gram.tab.h
$(Verb) $(RM) -rf gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
doc.dvi: doc.tex
$(VERB) latex doc; latex doc
$(Verb) latex doc; latex doc
test:: $(TOOLEXENAME_G) sample.gr
$(TOOLEXENAME_G) -I <sample.gr >sample.c && $(CC) $(CFLAGS) -o sample sample.c && ./sample
$(TOOLEXENAME_G) -I sample.gr >tmp && cmp tmp sample.c
$(TOOLEXENAME_G) -I <sample.gr -o tmp && cmp tmp sample.c
$(TOOLEXENAME_G) -I sample.gr -o tmp && cmp tmp sample.c
$(TOOLEXENAME_G) -I -O0 <sample.gr >tmp && cmp tmp sample.c
$(TOOLEXENAME_G) -I -= <sample.gr >tmp && cmp tmp sample.c
check:: $(ToolBuildPath) $(BUILD_SRC_DIR)/sample.gr
$(ToolBuildPath) -I <$(BUILD_SRC_DIR)/sample.gr >sample.c \
&& $(CC) $(CFLAGS) -o sample sample.c && ./sample
$(ToolBuildPath) -I $(BUILD_SRC_DIR)/sample.gr >tmp \
&& cmp tmp sample.c
$(ToolBuildPath) -I <$(BUILD_SRC_DIR)/sample.gr -o tmp \
&& cmp tmp sample.c
$(ToolBuildPath) -I $(BUILD_SRC_DIR)/sample.gr -o tmp \
&& cmp tmp sample.c
$(ToolBuildPath) -I -O0 <$(BUILD_SRC_DIR)/sample.gr >tmp \
&& cmp tmp sample.c
$(ToolBuildPath) -I -= <$(BUILD_SRC_DIR)/sample.gr >tmp \
&& cmp tmp sample.c
$(RM) -f tmp sample.c

View File

@ -20,5 +20,5 @@ include $(LEVEL)/Makefile.common
FileLexer.cpp: FileParser.h
clean::
$(VERB) $(RM) -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
$(VERB) $(RM) -f FileParser.output
$(Verb) $(RM) -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
$(Verb) $(RM) -f FileParser.output