mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
* Make the libcrtend.a installation depend on the bytecode-libs directory
* Conform output to standard. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17267 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,8 +32,9 @@ CRTEND_A = $(LIBDIR)/libcrtend.a
|
|||||||
all:: $(CRTEND_A)
|
all:: $(CRTEND_A)
|
||||||
|
|
||||||
# Installation simply requires copying the archive to it's new home.
|
# Installation simply requires copying the archive to it's new home.
|
||||||
$(DESTDIR)$(bytecode_libdir)/libcrtend.a: $(CRTEND_A)
|
$(bytecode_libdir)/libcrtend.a: $(CRTEND_A) $(bytecode_libdir)
|
||||||
$(INSTALL) $(CRTEND_A) $(DESTDIR)$(bytecode_libdir)
|
@$(ECHO) Installing $(CRTEND_A)
|
||||||
|
$(VERB) $(INSTALL) $(CRTEND_A) $(bytecode_libdir)
|
||||||
|
|
||||||
install:: $(DESTDIR)$(bytecode_libdir)/libcrtend.a
|
install:: $(DESTDIR)$(bytecode_libdir)/libcrtend.a
|
||||||
install-bytecode:: $(DESTDIR)$(bytecode_libdir)/libcrtend.a
|
install-bytecode:: $(DESTDIR)$(bytecode_libdir)/libcrtend.a
|
||||||
@@ -46,7 +47,7 @@ ComponentLibs := $(Components:%=$(OBJDIR)/comp_%.bc)
|
|||||||
|
|
||||||
# We build libcrtend.a from the four components described in the README.
|
# We build libcrtend.a from the four components described in the README.
|
||||||
$(CRTEND_A) : $(ComponentLibs) $(LIBDIR)/.dir
|
$(CRTEND_A) : $(ComponentLibs) $(LIBDIR)/.dir
|
||||||
@echo Building final libcrtend.a file from components
|
@$(ECHO) Building final libcrtend.a file from components
|
||||||
$(VERB) $(Archive) $@ $(ComponentLibs)
|
$(VERB) $(Archive) $@ $(ComponentLibs)
|
||||||
|
|
||||||
MainObj := $(OBJDIR)/crtend.bc $(OBJDIR)/listend.bc
|
MainObj := $(OBJDIR)/crtend.bc $(OBJDIR)/listend.bc
|
||||||
@@ -55,17 +56,15 @@ SJLJEHObj := $(OBJDIR)/SJLJ-Exception.bc
|
|||||||
|
|
||||||
# __main and ctor/dtor support component
|
# __main and ctor/dtor support component
|
||||||
$(OBJDIR)/comp_main.bc: $(MainObj)
|
$(OBJDIR)/comp_main.bc: $(MainObj)
|
||||||
@echo Linking $(notdir $@) component...
|
@$(ECHO) Linking $(notdir $@) component...
|
||||||
$(VERB) $(GCCLD) -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.
|
# Generic exception handling support runtime.
|
||||||
$(OBJDIR)/comp_genericeh.bc: $(GenericEHObj)
|
$(OBJDIR)/comp_genericeh.bc: $(GenericEHObj)
|
||||||
@echo Linking $(notdir $@) component...
|
@$(ECHO) Linking $(notdir $@) component...
|
||||||
$(VERB) $(GCCLD) -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.
|
# setjmp/longjmp exception handling support runtime.
|
||||||
$(OBJDIR)/comp_sjljeh.bc: $(SJLJEHObj)
|
$(OBJDIR)/comp_sjljeh.bc: $(SJLJEHObj)
|
||||||
@echo Linking $(notdir $@) component...
|
@$(ECHO) Linking $(notdir $@) component...
|
||||||
$(VERB) $(GCCLD) -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 $@
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user