+#turn on tons of warnings if clang is present
+ifeq ($(CC), clang)
+ CFLAGS += \
+ -Weverything \
+ -Wno-missing-prototypes \
+ -Wno-unused-parameter \
+ -Wno-sign-compare \
+ -Wno-implicit-fallthrough \
+ -Wno-sign-conversion \
+ -Wno-conversion \
+ -Wno-disabled-macro-expansion \
+ -Wno-padded \
+ -Wno-format-nonliteral
+
+endif
+OBJ = lex.o \
+ error.o \
+ parse.o \
+ typedef.o \
+ util.o \
+ code.o \
+ asm.o \
+ ast.o \
+ ir.o
+OBJ_A = test/ast-test.o
+OBJ_I = test/ir-test.o
+OBJ_C = main.o
+OBJ_X = exec.o util.o
+
+#default is compiler only
+default: gmqcc