mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
Correct macro names per naming standard in Makefile.rules
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17360 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cc2d1e25f3
commit
3abd4974ba
@ -36,32 +36,32 @@ STKRC_EXEC = $(BUILD_OBJ_ROOT)/tools/$(CONFIGURATION)/stkrc
|
|||||||
all :: test_each
|
all :: test_each
|
||||||
|
|
||||||
test_each: $(TESTS)
|
test_each: $(TESTS)
|
||||||
@$(ECHO) "Running Tests..."
|
$(Echo) "Running Tests..."
|
||||||
$(VERB) LD_LIBRARY_PATH=$(BUILD_OBJ_ROOT)/lib/$(CONFIGURATION) $(BUILD_SRC_DIR)/runtests $(BUILD_OBJ_DIR) $(TESTS)
|
$(Verb) LD_LIBRARY_PATH=$(BUILD_OBJ_ROOT)/lib/$(CONFIGURATION) $(BUILD_SRC_DIR)/runtests $(BUILD_OBJ_DIR) $(TESTS)
|
||||||
|
|
||||||
%.bc : %.st Makefile
|
%.bc : %.st Makefile
|
||||||
@$(ECHO) "Compiling And Optimizing $< to $*.bc"
|
$(Echo) "Compiling And Optimizing $< to $*.bc"
|
||||||
$(VERB)$(STKRC_EXEC) -f -O4 -s 2048 -o $*.bc $(BUILD_SRC_DIR)/$*.st
|
$(Verb)$(STKRC_EXEC) -f -O4 -s 2048 -o $*.bc $(BUILD_SRC_DIR)/$*.st
|
||||||
|
|
||||||
%.s : %.bc testing.bc
|
%.s : %.bc testing.bc
|
||||||
@$(ECHO) "Assembling $< to $*.s"
|
$(Echo) "Assembling $< to $*.s"
|
||||||
$(VERB)$(LLINK) $*.bc testing.bc -o $*.bcl
|
$(Verb)$(LLINK) $*.bc testing.bc -o $*.bcl
|
||||||
$(VERB)$(LLC) -f -o $*.s $*.bcl
|
$(Verb)$(LLC) -f -o $*.s $*.bcl
|
||||||
|
|
||||||
% : %.s
|
% : %.s
|
||||||
@$(ECHO) "Linking $*"
|
$(Echo) "Linking $*"
|
||||||
$(VERB)$(CC) -ggdb -L$(BUILD_OBJ_ROOT)/lib/$(CONFIGURATION) -lstkr_runtime -o $* $*.s
|
$(Verb)$(CC) -ggdb -L$(BUILD_OBJ_ROOT)/lib/$(CONFIGURATION) -lstkr_runtime -o $* $*.s
|
||||||
|
|
||||||
%.ll : %.bc
|
%.ll : %.bc
|
||||||
@$(ECHO) "Disassembling $< to $*.ll"
|
$(Echo) "Disassembling $< to $*.ll"
|
||||||
$(VERB)$(LDIS) -dis -o $*.ll $<
|
$(Verb)$(LDIS) -dis -o $*.ll $<
|
||||||
|
|
||||||
TESTS_LL = $(TESTS:%=%.ll)
|
TESTS_LL = $(TESTS:%=%.ll)
|
||||||
TESTS_BC = $(TESTS:%=%.bc)
|
TESTS_BC = $(TESTS:%=%.bc)
|
||||||
TESTS_S = $(TESTS:%=%.s)
|
TESTS_S = $(TESTS:%=%.s)
|
||||||
|
|
||||||
clean ::
|
clean ::
|
||||||
$(VERB)rm -f gmon.out $(TESTS_LL) $(TESTS_BC) $(TESTS_S) $(TESTS) testing.bc testing.s testing.ll
|
$(Verb)rm -f gmon.out $(TESTS_LL) $(TESTS_BC) $(TESTS_S) $(TESTS) testing.bc testing.s testing.ll
|
||||||
|
|
||||||
.SUFFIXES: .st .s .ll .bc
|
.SUFFIXES: .st .s .ll .bc
|
||||||
.PRECIOUS: %.s %.ll %.bc %.st
|
.PRECIOUS: %.s %.ll %.bc %.st
|
||||||
|
Loading…
Reference in New Issue
Block a user