mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-22 09:29:31 +00:00
Fixed SPEC so that it would run correctly with the new autoconf-style object
directory. Cleaned up the Makefile so that it uses VPATH to find source files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8477 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
27bb35e613
commit
0043e4698c
@ -85,23 +85,14 @@ clean::
|
|||||||
$(RM) -rf Output/
|
$(RM) -rf Output/
|
||||||
|
|
||||||
# Compile from X.c to Output/X.ll
|
# Compile from X.c to Output/X.ll
|
||||||
Output/%.ll: $(SourceDir)/%.c $(LCC1) Output/.dir $(INCLUDES)
|
|
||||||
$(LCC) $(CPPFLAGS) $(LCCFLAGS) -S $< -o $@
|
|
||||||
|
|
||||||
Output/%.ll: %.c $(LCC1) Output/.dir $(INCLUDES)
|
Output/%.ll: %.c $(LCC1) Output/.dir $(INCLUDES)
|
||||||
$(LCC) $(CPPFLAGS) $(LCCFLAGS) -S $< -o $@
|
$(LCC) $(CPPFLAGS) $(LCCFLAGS) -S $< -o $@
|
||||||
|
|
||||||
# Compile from X.cpp to Output/X.ll
|
# Compile from X.cpp to Output/X.ll
|
||||||
Output/%.ll: $(SourceDir)/%.cpp $(LCC1XX) Output/.dir $(INCLUDES)
|
|
||||||
$(LCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@
|
|
||||||
|
|
||||||
Output/%.ll: %.cpp $(LCC1XX) Output/.dir $(INCLUDES)
|
Output/%.ll: %.cpp $(LCC1XX) Output/.dir $(INCLUDES)
|
||||||
$(LCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@
|
$(LCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@
|
||||||
|
|
||||||
# Compile from X.cc to Output/X.ll
|
# Compile from X.cc to Output/X.ll
|
||||||
Output/%.ll: $(SourceDir)/%.cc $(LCC1XX) Output/.dir $(INCLUDES)
|
|
||||||
$(LCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@
|
|
||||||
|
|
||||||
Output/%.ll: %.cc $(LCC1XX) Output/.dir $(INCLUDES)
|
Output/%.ll: %.cc $(LCC1XX) Output/.dir $(INCLUDES)
|
||||||
$(LCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@
|
$(LCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@
|
||||||
|
|
||||||
@ -114,27 +105,17 @@ Output/%.bc: Output/%.ll $(LGCCAS)
|
|||||||
# LLVM Assemble from X.ll to Output/X.bc. Because we are coming directly from
|
# LLVM Assemble from X.ll to Output/X.bc. Because we are coming directly from
|
||||||
# LLVM source, use the non-transforming assembler.
|
# LLVM source, use the non-transforming assembler.
|
||||||
#
|
#
|
||||||
Output/%.bc: $(SourceDir)/%.ll $(LAS) Output/.dir
|
Output/%.bc: %.ll $(LAS) Output/.dir
|
||||||
$(LAS) -f $< -o $@
|
$(LAS) -f $< -o $@
|
||||||
|
|
||||||
#
|
#
|
||||||
# Testing versions of provided utilities...
|
# Testing versions of provided utilities...
|
||||||
#
|
#
|
||||||
Output/%.tll: $(SourceDir)/%.c $(LCC1) Output/.dir $(INCLUDES)
|
|
||||||
@echo "======== Compiling $<"
|
|
||||||
$(LCC) $(CPPFLAGS) $(LCCFLAGS) -S $< -o $@ || \
|
|
||||||
( rm -f $@; $(FAILURE) $@ )
|
|
||||||
|
|
||||||
Output/%.tll: %.c $(LCC1) Output/.dir $(INCLUDES)
|
Output/%.tll: %.c $(LCC1) Output/.dir $(INCLUDES)
|
||||||
@echo "======== Compiling $<"
|
@echo "======== Compiling $<"
|
||||||
$(LCC) $(CPPFLAGS) $(LCCFLAGS) -S $< -o $@ || \
|
$(LCC) $(CPPFLAGS) $(LCCFLAGS) -S $< -o $@ || \
|
||||||
( rm -f $@; $(FAILURE) $@ )
|
( rm -f $@; $(FAILURE) $@ )
|
||||||
|
|
||||||
Output/%.tll: $(SourceDir)/%.cpp $(LCC1XX) Output/.dir $(INCLUDES)
|
|
||||||
@echo "======== Compiling $<"
|
|
||||||
$(LCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@ || \
|
|
||||||
( rm -f $@; $(FAILURE) $@ )
|
|
||||||
|
|
||||||
Output/%.tll: %.cpp $(LCC1XX) Output/.dir $(INCLUDES)
|
Output/%.tll: %.cpp $(LCC1XX) Output/.dir $(INCLUDES)
|
||||||
@echo "======== Compiling $<"
|
@echo "======== Compiling $<"
|
||||||
$(LCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@ || \
|
$(LCXX) $(CPPFLAGS) $(LCXXFLAGS) -S $< -o $@ || \
|
||||||
|
Loading…
Reference in New Issue
Block a user