]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - Makefile
Remove Makefile_win (useless)
[xonotic/gmqcc.git] / Makefile
index 7690c66aa399738c3c834196a12a7417101d67c5..d73c641766c326728e79e8993a26b57c425b70d2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,18 @@
-CC     = gcc
-CFLAGS = -O3 -Wall
-OBJ    = main.o lex.o error.o parse.o cpp.o typedef.o
+CC     ?= clang
+CFLAGS += -Wall -pedantic-errors -std=c90
+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)
+       $(CC) -c $< -o $@ $(CFLAGS)
 
 gmqcc: $(OBJ)
        $(CC) -o $@ $^ $(CFLAGS)