-CC = gcc
-CFLAGS = -O3 -Wall
-OBJ = main.o \
- lex.o \
- error.o \
- parse.o \
- typedef.o \
- util.o \
- code.o
+CC ?= clang
+CFLAGS += -Wall
+OBJ = main.o \
+ lex.o \
+ error.o \
+ parse.o \
+ typedef.o \
+ util.o \
+ code.o \
+ asm.o \
+ ast.o \
+ ir.o
%.o: %.c
$(CC) -c $< -o $@ $(CFLAGS)