diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-10-22 21:02:08 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-10-22 21:02:08 +0000 |
commit | 8c2c3152d64aafe24b5b67cd7d670658eb65df18 (patch) | |
tree | dc32473730cf8b02d1e11eabbfe86a4b963823e3 /runtime/GCCLibraries | |
parent | 4d71b6611e9281c999f34712bfd014cc3c95ef3f (diff) |
Adjust to changes in Makefile.rules
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17167 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/GCCLibraries')
-rw-r--r-- | runtime/GCCLibraries/crtend/Makefile | 33 | ||||
-rw-r--r-- | runtime/GCCLibraries/libc/Makefile | 1 |
2 files changed, 16 insertions, 18 deletions
diff --git a/runtime/GCCLibraries/crtend/Makefile b/runtime/GCCLibraries/crtend/Makefile index 829563b58d..a3b9a711bd 100644 --- a/runtime/GCCLibraries/crtend/Makefile +++ b/runtime/GCCLibraries/crtend/Makefile @@ -21,18 +21,17 @@ DONT_BUILD_RELINKED=1 MainSrc := crtend.c listend.ll GenericEHSrc := Exception.cpp SJLJEHSrc := SJLJ-Exception.cpp -CXXEHSrc := C++-Exception.cpp Source := $(MainSrc) $(GenericEHSrc) $(SJLJEHSrc) $(CXXEHSrc) include $(LEVEL)/Makefile.common # CRTEND_A - The result of making 'all' - the final archive file. -CRTEND_A = $(DESTLIBBYTECODE)/libcrtend.a +CRTEND_A = $(LIBDIR)/libcrtend.a all:: $(CRTEND_A) # Installation simply requires copying the archive to it's new home. -$(DESTDIR)$(bytecode_libdir)/libcrtend.a: $(CRTEND_A) $(DESTDIR)$(bytecode_libdir) - cp $< $@ +$(DESTDIR)$(bytecode_libdir)/libcrtend.a: $(CRTEND_A) + $(INSTALL) $(CRTEND_A) $(DESTDIR)$(bytecode_libdir) install:: $(DESTDIR)$(bytecode_libdir)/libcrtend.a install-bytecode:: $(DESTDIR)$(bytecode_libdir)/libcrtend.a @@ -40,33 +39,31 @@ install-bytecode:: $(DESTDIR)$(bytecode_libdir)/libcrtend.a # The four components described in the README Components := main genericeh sjljeh -ComponentLibs := $(Components:%=$(BUILD_OBJ_DIR)/BytecodeObj/comp_%.bc) +ComponentLibs := $(Components:%=$(OBJDIR)/comp_%.bc) # We build libcrtend.a from the four components described in the README. -$(CRTEND_A) : $(ComponentLibs) $(DESTLIBBYTECODE)/.dir +$(CRTEND_A) : $(ComponentLibs) $(LIBDIR)/.dir @echo Building final libcrtend.a file from components - $(VERB) $(AR) $@ $(ComponentLibs) + $(VERB) $(Archive) $@ $(ComponentLibs) -MainObj := $(BUILD_OBJ_DIR)/BytecodeObj/crtend.bc \ - $(BUILD_OBJ_DIR)/BytecodeObj/listend.bc -GenericEHObj := $(BUILD_OBJ_DIR)/BytecodeObj/Exception.bc -SJLJEHObj := $(BUILD_OBJ_DIR)/BytecodeObj/SJLJ-Exception.bc -CXXEHObj := $(BUILD_OBJ_DIR)/BytecodeObj/C++-Exception.bc +MainObj := $(OBJDIR)/crtend.bc $(OBJDIR)/listend.bc +GenericEHObj := $(OBJDIR)/Exception.bc +SJLJEHObj := $(OBJDIR)/SJLJ-Exception.bc # __main and ctor/dtor support component -$(BUILD_OBJ_DIR)/BytecodeObj/comp_main.bc: $(MainObj) +$(OBJDIR)/comp_main.bc: $(MainObj) @echo Linking $(notdir $@) component... - $(VERB) $(LGCCLDPROG) -link-as-library -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_main.lst $(MainObj) -o $@ + $(VERB) $(GCCLD) -link-as-library -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_main.lst $(MainObj) -o $@ # Generic exception handling support runtime. -$(BUILD_OBJ_DIR)/BytecodeObj/comp_genericeh.bc: $(GenericEHObj) +$(OBJDIR)/comp_genericeh.bc: $(GenericEHObj) @echo Linking $(notdir $@) component... - $(VERB) $(LGCCLDPROG) -link-as-library -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_genericeh.lst $(GenericEHObj) -o $@ + $(VERB) $(GCCLD) -link-as-library -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_genericeh.lst $(GenericEHObj) -o $@ # setjmp/longjmp exception handling support runtime. -$(BUILD_OBJ_DIR)/BytecodeObj/comp_sjljeh.bc: $(SJLJEHObj) +$(OBJDIR)/comp_sjljeh.bc: $(SJLJEHObj) @echo Linking $(notdir $@) component... - $(VERB) $(LGCCLDPROG) -link-as-library -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_sjljeh.lst $(SJLJEHObj) -o $@ + $(VERB) $(GCCLD) -link-as-library -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_sjljeh.lst $(SJLJEHObj) -o $@ diff --git a/runtime/GCCLibraries/libc/Makefile b/runtime/GCCLibraries/libc/Makefile index 9e6874bf9c..297d420908 100644 --- a/runtime/GCCLibraries/libc/Makefile +++ b/runtime/GCCLibraries/libc/Makefile @@ -6,6 +6,7 @@ # the University of Illinois Open Source License. See LICENSE.TXT for details. # ##===----------------------------------------------------------------------===## + LEVEL = ../../.. BYTECODE_LIBRARY=1 DONT_BUILD_RELINKED=1 |