#   -*- Makefile -*-
# 
#   [$RCSfile: Makefile,v $ $Revision: 1.1 $]
# 
#	 Copyright Telenor Research and Development
# 
#   Note:
#
#	This makefile requires GNU make

SHELL = /bin/sh

ifndef TOP_DIR
TOP_DIR :=	..
endif

CFLAGS +=	-I../include -D_MBCS -D_WD_MODE_ -D__SIMPLE_PROFILE__ -D_OPTIMIZE_ \
		-D_IM1_CD_DECODER_

ifdef DEBUG
CFLAGS +=	-D__REF_DCT__
else
CFLAGS +=	-D__FAST_DCT__
endif

SOURCES :=	alp_common_cae.c	\
		alp_common_mc.c		\
		alp_common_util.c	\
		alp_dec_cae.c		\
		alp_dec_header.c	\
		alp_dec_mc.c		\
		alp_dec_mom.c		\
		bin_ar_decode.c		\
		chrono.c		\
		combined_decode.c	\
		do_bgc.c		\
		dec_interface.c		\
		idct2.c			\
		io_generic.c		\
		io_raw.c		\
		mom_access.c		\
		mom_bitstream_d.c	\
		mom_bitstream_i.c	\
		mom_image.c		\
		mom_image.c		\
		mom_trace.c		\
		mom_vo.c		\
		mom_vol.c		\
		mom_vop.c		\
		mot_comp.c		\
		mot_comp_image.c	\
		mot_decode.c		\
		mot_padding.c		\
		Mot_util.c		\
		post_filter.c		\
		rc_matrix.c		\
		Ring.c			\
		scal_dec.c		\
		text_decode.c		\
		text_decode_mb.c	\
		text_quant.c		\
		text_util.c		\
		vm_compos.c		\
		vm_dec_main.c		\
		vm_get_blk.c		\
		vm_midproc.c		\
		vm_vlc_dec.c		\
		vm_vop_bound.c

compile: libmpeg4.a

# pull in the standard rules

include $(TOP_DIR)/Makefile.rules

libmpeg4.a: $(OBJ)
	$(AR) -cr $@ $(OBJ)

