#########################################################################
#               INTEL CORPORATION PROPRIETARY INFORMATION
#  This software is supplied under the terms of a license agreement or
#  nondisclosure agreement with Intel Corporation and may not be copied
#  or disclosed except in accordance with the terms of that agreement.
#        Copyright (c) 2001-2003 Intel Corporation.  All Rights Reserved.
#
# Linux makefile for IPP Modified Shroeder reverberator sample code 

# Path to source files
SOURCES = reverb.c schroeder.c sparseiir.c

# Path to the timer library
TIMERPATH = ../OSCRTimer

# XScale timer library
TIMERLIB = oscr.o

# Paths to IPP libraries and include files 
IPPLIBPATH =  /opt/intel/ipp41/pca_wmmx/lib/pvkit
IPPINCPATH =  /opt/intel/ipp41/pca_wmmx/include

# Path for binary output file
OUTPATH = ./
APPNAME = reverb

# IPP DSP Library 
IPPDSPLIB = ippSP_WMMX41BLNX_r.a

OBJ = $(SOURCES:.c=.o)
CC = /usr/local/arm-linux/bin/arm-linux-gcc

# PERFORMANCE TIMER ENABLED
#CC_SWITCHES = -I $(IPPINCPATH) -O3 -DPERFORMANCE_TIMER -I $(TIMERPATH) -mcpu=xscale  -mtune=xscale  -msoft-float

# PERFORMANCE TIMER DISABLED
CC_SWITCHES = -I $(IPPINCPATH) -O3 -mcpu=xscale  -mtune=xscale  -msoft-float
 
PGM = $(OUTPATH)/$(APPNAME)

%.o: %.c Makefile
	$(CC) $(CC_SWITCHES) -c $< -o $@

$(PGM):	$(OBJ) Makefile
	$(CC) -o $(PGM) $(OBJ) $(IPPLIBPATH)/$(IPPDSPLIB) $(TIMERPATH)/$(TIMERLIB) -lm
clean:
	-rm $(OBJ)














