Mercurial > hg > CbC > CbC_examples
view conv1/Makefile @ 16:23ad5811c88f
asm longjmp (can return correct address but return value is wrong)
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 24 Jan 2016 06:00:37 +0900 |
parents | 7d168c1829c9 |
children |
line wrap: on
line source
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 \ if [ -x $$exe ]; then \ echo $$exe; \ time ./$$exe; \ fi; \ done