]> gitweb.factorcode.org Git - factor.git/blobdiff - GNUmakefile
Support Link Time Optimization (off by default)
[factor.git] / GNUmakefile
index 36d83ef5d10678fbb63409bbb6a3ac3e67e7417f..577a38b2a9a325660c32ddfc2770da55462ab603 100644 (file)
@@ -45,6 +45,7 @@ ifdef CONFIG
                CFLAGS += -g -DFACTOR_DEBUG
        else
                CFLAGS += -O3
+               CFLAGS += $(CC_OPT)
        endif
 
        ifneq ($(REPRODUCIBLE), 0)
@@ -185,6 +186,7 @@ help:
        @echo "DEBUG=1  compile VM with debugging information"
        @echo "REPRODUCIBLE=1  compile VM without timestamp"
        @echo "SITE_CFLAGS=...  additional optimization flags"
+       @echo "LTO=1  compile VM with Link Time Optimization"
        @echo "X11=1  force link with X11 libraries instead of Cocoa (only on Mac OS X)"
 
 ALL = factor factor-ffi-test factor-lib
@@ -284,6 +286,7 @@ endif
 clean:
        rm -f vm/*.gch
        rm -f vm/*.o
+       rm -f factor
        rm -f factor.dll
        rm -f factor.lib
        rm -f factor.dll.lib