# Makefile for Predictive/decoder
# @authors Prashanth Gujjeti (prashanth.gujjeti@sun.com)
# @ 03/27/2003

#
# Include path
#
INCLUDE_PATH=-I. -I./../../Include   -I./../../Core -I./../../Predictive/Encoder -I./../../BifsEnc
CC = CC 
DEBUG_FLAG = -g

# The Source files
#

SOURCES:sh = ls *.cpp 



#OBJect files
OBJS= $(SOURCES:%.cpp=%.o)


all: ${OBJS} 

%.o:%.cpp
	$(CC) $(INCLUDE_PATH) $(DEBUG_FLAG) -KPIC -DBIFSENC -c  $?

# The portion corresponding to BIFSENC
BIFS_INCLUDE_PATH=-I. -I./../../Include   -I./../../Core -I./../../Predictive/Encoder -I./../Decoder -I./../../BifsEnc -I./../../Player3d -I./../../script/encoder
BIFS_CC = CC 
BIFS_DEBUG_FLAG = -g
#Sources
BIFS_PRDENCSRC: sh = ls *.cpp

BIFS_PRDENCOBJ=${BIFS_PRDENCSRC:%.cpp=%.p}

.SUFFIXES : .p
bifs:${BIFS_PRDENCOBJ}

%.p:%.cpp
#.cpp.p:
	$(BIFS_CC)  -DBIFSENC -D__UNIX $(BIFS_INCLUDE_PATH) $(BIFS_DEBUG_FLAG) -c -KPIC $<
	cp $*.o $@

# End of BIFSENC


clean :
	rm -rf *.o
