changeset 14:7d168c1829c9

modify makefile
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Fri, 17 Apr 2015 16:09:28 +0900
parents f442aa72b246
children f889a158ce07
files conv1/Makefile
diffstat 1 files changed, 19 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/conv1/Makefile	Fri Apr 17 15:09:42 2015 +0900
+++ b/conv1/Makefile	Fri Apr 17 16:09:28 2015 +0900
@@ -1,6 +1,22 @@
-#CbCC = ../../../build_cbc44/INSTALL_DIR/libexec/gcc/i686-pc-linux-gnu/4.4.1/cc1
-CbCC = /Users/e105711/prog/seminar/CbC/cell/gccInst/bin/gcc
-CbClang = /Users/e105711/prog/seminar/CbC/llvmInst/Debug+Asserts/bin/clang
+CC=/Users/e105711/prog/seminar/CbC/llvmInst/Debug+Asserts/bin/clang
+TARGET=conv1
+
+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 *.s
 
 time:
 	for exe in *; do \