X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=Makefile;h=d9626a009eb9b3d51f3813c0fe5bf8125ca9f78e;hb=6145ecf7e0bd93d654bbe582a7a3cb4416612998;hp=da9d0e65b669b0aaa8fc1bfb0ed3456db0acab1b;hpb=639fc8a32b35174fc4c2347fd38f76147093d6f4;p=xonotic%2Fgmqcc.git diff --git a/Makefile b/Makefile index da9d0e6..d9626a0 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,15 @@ -CC = gcc -CFLAGS = -O3 -Wall -OBJ = main.o \ - lex.o \ - error.o \ - parse.o \ - typedef.o \ - util.o +CC ?= clang +CFLAGS += -Wall -pedantic-errors -std=c99 +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)