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

#
# Include path
#
INCLUDE_PATH= -I./../JSWrap -I. -I./../../Include -I./../../Player3d -I./../../Core -I./../../BifsEnc -I./../JSWrap/SunOS5.9 
CC = CC 
DEBUG_FLAG = -g

# The Source files
#

SOURCES = StrBuffer.cpp 


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


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./../../Predictive/Decoder -I./../../BifsEnc -I./../../Player3d 
BIFS_CC = CC 
BIFS_DEBUG_FLAG = -g
#Sources
BIFS_ENCSRC = Buffer.cpp CParser.cpp CToken.cpp Expr.cpp ScriptImp.cpp StrBuffer.cpp \
VSEvents.cpp VSNodeField.cpp

BIFS_ENCOBJ=${BIFS_ENCSRC:%.cpp=%.p}

.SUFFIXES : .p
bifs:${BIFS_ENCOBJ}

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