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

# The portion corresponding to BIFSENC
BIFS_INCLUDE_PATH=-I. -I./../../Include   -I./../../Core -I./../../Predictive/Encoder -I./../../Predictive/Decoder -I./../../BifsEnc -I./../../Player3d -I./../../Craig-IPMP/Include 
BIFS_CC = CC 
BIFS_DEBUG_FLAG = -g
#Sources
BIFS_ENCSRC = ODPAFX.cpp AFXEncDec.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

# The portion corresponding to MUX
MUX_INCLUDE_PATH=-I. -I./../../Include   -I./../../Core -I./../../BifsEnc -I./../../Player3d -I./../../script/encoder \
-I./../../Craig-IPMP/Include 
MUX_CC = CC 
MUX_DEBUG_FLAG = -g
#Sources
MUX_AFXSRC = ODPAFX.cpp AFXEncDec.cpp

MUX_AFXOBJ=${MUX_AFXSRC:%.cpp=%.m}

.SUFFIXES : .m
mux:${MUX_AFXOBJ}

%.m:%.cpp
#.cpp.p:
	$(MUX_CC)  -DMUX -D__UNIX $(MUX_INCLUDE_PATH) $(MUX_DEBUG_FLAG) -c -KPIC $<
	cp $*.o $@

# End of MUX

clean :
	rm -rf *.o
