use CC ?= because clang crashes on me

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-04-25 16:20:38 +02:00
parent 522738de48
commit ef024e5b80

View file

@ -1,4 +1,4 @@
CC = clang CC ?= clang
CFLAGS += -Wall CFLAGS += -Wall
OBJ = main.o \ OBJ = main.o \
lex.o \ lex.o \
@ -7,7 +7,9 @@ OBJ = main.o \
typedef.o \ typedef.o \
util.o \ util.o \
code.o \ code.o \
asm.c asm.c \
ast.c \
ir.c
%.o: %.c %.o: %.c
$(CC) -c $< -o $@ $(CFLAGS) $(CC) -c $< -o $@ $(CFLAGS)