# HG changeset patch # User Kaito Tokumori # Date 1424787357 -32400 # Node ID 34365a1eb6a34273f1d85acf46a23634ac16c6f6 # Parent 37a10fd62ea9bcba0fa4d0c61573477dd10e0b9d output assembly file at making. diff -r 37a10fd62ea9 -r 34365a1eb6a3 Makefile --- a/Makefile Sat Feb 21 21:19:46 2015 +0900 +++ b/Makefile Tue Feb 24 23:15:57 2015 +0900 @@ -1,15 +1,19 @@ CC=/Users/e105711/prog/seminar/CbC/llvmInst/Debug+Asserts/bin/clang TARGET=bug conv fact-a loto6 normal normal2 test01 test02 test04 test05 test_array test_call test_cs test_para test_para2 test_para4 test_return test_struct test_tailcall1 test_tree tmp1 tmp2 tmp4 test_csp1 test_func2code tmpa too-long-argument test1 stack1 test2 arg test_para3 -CFLAGS= -D"CLANG" - -.SUFFIXES: .c .o -.c.o: - $(CC) $(CFLAGS) -o $< +CFLAGS= -D"CLANG" +.SUFFIXES: .c .s +.PHONY: all all: $(TARGET) +.c.s: + $(CC) $(CFLAGS) -S $< + +$(TARGET): $(TARGET:%=%.s) + $(CC) -o $@ $(@:%=%.s) + +.PHONY: clean clean: rm -f $(TARGET) - rm -f *.o - rm -f a.out + rm -f *.o *.s