]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - Makefile
Do not force -[aci] parameters' arguments to be in the same argv; (Allow 'gmqcc ...
[xonotic/gmqcc.git] / Makefile
index 051ea18d088784fdf3a506082e36d3ed1a1e49de..d9626a009eb9b3d51f3813c0fe5bf8125ca9f78e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,15 @@
-CC     = gcc
-CFLAGS = -O3 -Wall
-OBJ    = main.o    \
-         lex.o     \
-         error.o   \
-         parse.o   \
-         typedef.o \
-         util.o    \
-         code.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)