###################################################################################
##
## Intel icc Makefile.in for the Atari++ emulator
##
## $Id: makefile.icc.in,v 1.6 2015/05/21 18:52:40 thor Exp $
##
##
###################################################################################

CXX		= icc
CC		= icc
MAKEFILE	= makefile.icc
CFLAGS		= -x c++ -Xa -align -Zp16 -w1 -c -D__null=0 -fno-rtti -Wall -wd193,444,810
OPTIMIZER	= -O3 -mp1 -rcd -tpp6 -axM -ip -DDEBUG_LEVEL=0 -DCHECK_LEVEL=0
DEBUGGER	= -g -DDEBUG_LEVEL=2 -DCHECK_LEVEL=3
PROFILER	= -pg -ip_no_inlining
LDPROF		= -pg
TOASM		= -S
DBLIBS          =
LD		= icc
LDFLAGS		= @X_LIBS@
LDLIBS		= @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@ @LIBS@
ECHO		= echo
PREFIX		= /usr/local
BIN_PATH	= ${PREFIX}/bin
LIB_PATH	= ${PREFIX}/lib
MAN_PATH	= ${PREFIX}/man

###################################################################################

include Makefile.atari

profgen:	$(SOURCES)
		icc $(OPTIMIZER) -wp_ipo -unroll -prof_gen $(SOURCES) -o atari++ $(LDFLAGS) $(LDLIBS)

profuse:	$(SOURCES)
		icc $(OPTIMIZER) -ipo -unroll -prof_use $(SOURCES) -o atari++ $(LDFLAGS) $(LDLIBS) -opt_report -opt_report_level max -opt_report_routine all


