summaryrefslogtreecommitdiff
path: root/Make.defaults
diff options
context:
space:
mode:
Diffstat (limited to 'Make.defaults')
-rw-r--r--Make.defaults9
1 files changed, 9 insertions, 0 deletions
diff --git a/Make.defaults b/Make.defaults
index 5f30e292..7f1b8015 100644
--- a/Make.defaults
+++ b/Make.defaults
@@ -28,6 +28,15 @@ DASHJ ?= -j$(shell echo $$(($$(grep -c "^model name" /proc/cpuinfo) + 1)))
ARCH ?= $(shell $(CC) -dumpmachine | cut -f1 -d- | sed s,i[3456789]86,ia32,)
OBJCOPY_GTE224 = $(shell expr `$(OBJCOPY) --version |grep ^"GNU objcopy" | sed 's/^.*\((.*)\|version\) //g' | cut -f1-2 -d.` \>= 2.24)
OPTIMIZATIONS ?= -Os
+FA_OPTIMIZATIONS ?= -O2
+ifneq ($(FANALYZER),)
+override OPTIMIZATIONS := $(FA_OPTIMIZATIONS)
+override CCACHE_DISABLE := true
+endif
+export OPTIMIZATIONS
+ifneq ($(CCACHE_DISABLE),)
+export CCACHE_DISABLE
+endif
SUBDIRS = $(TOPDIR)/Cryptlib $(TOPDIR)/lib