Mercurial > hg > CbC > old > examples
changeset 7:db61a5375f9b draft
fix Makefile for cbclang
author | one |
---|---|
date | Wed, 07 Jun 2017 14:50:11 +0900 |
parents | 477c1dec2a2b |
children | ae12f717a62e |
files | Makefile |
diffstat | 1 files changed, 3 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Wed Jun 07 14:43:34 2017 +0900 +++ b/Makefile Wed Jun 07 14:50:11 2017 +0900 @@ -1,20 +1,9 @@ -CC=gcc -#MCC=./mcc -#MCC=mc-mips -MCC=mc-ia32 +CC=${CBC_COMPILER} + TARGET=first hello_mod separate dumparg arg arg-c dumparg-struct struct struct2 deep-nested-struct code-ptr-array func-ptr-array struct-ptr-arg for struct-align struct-array struct-array2 struct-mips struct-interface symbol symbol-c symbol-gcc symbol-mcc -MCCFLAGS=-s CFLAGS=-g -Wall -#%.o: %.c -#.SUFFIXES: .c .o .s #.d -.SUFFIXES: .c .o - -.c.o: - $(MCC) -s $< - $(CC) $(CFLAGS) -o $@ -c $(<:.c=.s) - all: $(TARGET) dbg.o:dbg.c @@ -106,8 +95,7 @@ $(CC) -o $@ $^ symbol-mcc.o:symbol-c.c - $(MCC) -s $< - $(CC) $(CFLAGS) -c -o $@ $(<:.c=.s) + $(CC) $(CFLAGS) -c -o $@ $< symbol-mcc:symbol-mcc.o $(CC) -o $@ $^