# Makefile for Animation
# @author  Prashanth Gujjeti (prashanth.gujjeti@sun.com)
# @ 07/25/2000

#
# Include path
#
INCLUDE_PATH=-I. -I./../Include  -I./../Core -I./../Player3d -I./../Decoder -I./../Craig-IPMP/Include -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris -I./../script/JSWrap -I./../script/JSWrap/SunOS5.9 
CC = CC 
DEBUG_FLAG = -g

# The Source files
#

Animation = Anim.cpp AnimationQuantizer.cpp ArithModel.cpp MNodeFld.cpp AnimStreamDec.cpp \
ArithDec.cpp MMediaObj.cpp MQuantize.cpp

#
# The Source files
#
SOURCES =  $(Animation) 


# The header files
#
HEADERS=$(SOURCES:%.cpp=%.h)
OBJS= $(SOURCES:%.cpp=%.o)

#OBJect files


all: ${OBJS} 

%.o:%.cpp
	$(CC) $(INCLUDE_PATH) $(DEBUG_FLAG) -KPIC -DPLAYER3D -DADV_AUDIO \
-DMPGJ -D__UNIX -c  $?

# The portion corresponding to BIFSENC
BIFS_INCLUDE_PATH=-I. -I./../Include   -I./../Core -I./../Predictive/Encoder -I./../BifsEnc -I./../Player3d 
BIFS_CC = CC 
BIFS_DEBUG_FLAG = -g
#Sources
BIFS_ANIMSRC = MEncQuant.cpp ArithModel.cpp

BIFS_ANIMOBJ=${BIFS_ANIMSRC:%.cpp=%.p}

.SUFFIXES : .p
bifs:${BIFS_ANIMOBJ}

%.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
