]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - Makefile
Merge branch 'master' into ast-and-ir
[xonotic/gmqcc.git] / Makefile
index 9d1faf52202a644454afe96c6f297013e7fe60eb..d9626a009eb9b3d51f3813c0fe5bf8125ca9f78e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-CC      = gcc
-CFLAGS += -Wall
+CC     ?= clang
+CFLAGS += -Wall -pedantic-errors -std=c99
 OBJ     = main.o      \
           lex.o       \
           error.o     \
@@ -7,7 +7,9 @@ OBJ     = main.o      \
           typedef.o   \
           util.o      \
           code.o      \
-          assembler.c
+          asm.o       \
+          ast.o       \
+          ir.o
 
 %.o: %.c
        $(CC) -c $< -o $@ $(CFLAGS)