#########################################################################
#               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 filtering sample code 

# Path to source files
SOURCES = Filtering.c filter.c 

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

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

# Use release library after application debugging has been completed 
IPPDSPLIB = ippSP_XSC41LNX_r.a

OBJ = $(SOURCES:.c=.o)
CC = /opt/hardhat/devkit/arm/xscale_le/bin/xscale_le-gcc
CC_SWITCHES = -I $(IPPINCPATH)  -O3 -Wall -mcpu=xscale -mtune=xscale 
PGM = $(OUTPATH)/$(APPNAME)

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

$(PGM):	$(OBJ) Makefile_mvlpe
	$(CC) -o $(PGM) $(OBJ) $(IPPLIBPATH)/$(IPPDSPLIB)
clean:
	-rm $(OBJ)














