]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - Makefile
Replaced it all...
[xonotic/gmqcc.git] / Makefile
index a51aed38ac21cc404c5abba7965af8e8b25cf7ac..2a9c17f588e2eb87a8a97b0b8c3b72fea6aee679 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,5 @@
 CC     ?= clang
-CFLAGS += -Wall -I. -pedantic-errors
-
+CFLAGS += -Wall -I. -fomit-frame-pointer -fno-stack-protector -fno-common
 #turn on tons of warnings if clang is present
 ifeq ($(CC), clang)
        CFLAGS +=                  \
@@ -25,11 +24,11 @@ OBJ     = \
           code.o      \
           ast.o       \
           ir.o        \
-          error.o
+          con.o
 OBJ_A = test/ast-test.o
 OBJ_I = test/ir-test.o
 OBJ_C = main.o lexer.o parser.o
-OBJ_X = exec-standalone.o util.o
+OBJ_X = exec-standalone.o util.o con.o
 
 #default is compiler only
 default: gmqcc
@@ -46,13 +45,11 @@ test_ir:  $(OBJ_I) $(OBJ)
        $(CC) -o $@ $^ $(CFLAGS)
 qcvm:     $(OBJ_X)
        $(CC) -o $@ $^ $(CFLAGS) -lm
-exec.o: execloop.h
-exec-standalone.o: execloop.h
 test: test_ast test_ir
 
 # compiler target
 gmqcc: $(OBJ_C) $(OBJ)
-       $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
+       $(CC) -o $@ $^ $(CFLAGS)
 
 #all target is test and all
 all: test gmqcc