# Makefile for mpeg2decode

# Copyright (C) 1994, MPEG Software Simulation Group. All Rights Reserved.

#
# Disclaimer of Warranty
#
# These software programs are available to the user without any license fee or
# royalty on an "as is" basis.  The MPEG Software Simulation Group disclaims
# any and all warranties, whether express, implied, or statuary, including any
# implied warranties or merchantability or of fitness for a particular
# purpose.  In no event shall the copyright-holder be liable for any
# incidental, punitive, or consequential damages of any kind whatsoever
# arising from the use of these programs.
#
# This disclaimer of warranty extends to the user of these programs and user's
# customers, employees, agents, transferees, successors, and assigns.
#
# The MPEG Software Simulation Group does not represent or warrant that the
# programs furnished hereunder are free of infringement of any third-party
# patents.
#
# Commercial implementations of MPEG-1 and MPEG-2 video, including shareware,
# are subject to royalty fees to patent holders.  Many of these patents are
# general enough such that they are unavoidable regardless of implementation
# design.
#
#

#
# GNU gcc
#
CC = gcc
CFLAGS = -O2

#
# SPARCworks acc
#
#CC = acc
#CFLAGS = -fast

#
# SUN cc
#
#CC = cc
#CFLAGS = -O3 -DNON_ANSI_COMPILER

OBJ = mpeg2dec.o getpic.o motion.o getvlc.o gethdr.o getblk.o getbits.o store.o recon.o spatscal.o idct.o idctref.o

all: mpeg2decode

pc: mpeg2dec.exe

clean:
	rm -f *.o *% core mpeg2decode

mpeg2dec.exe: mpeg2decode
	coff2exe mpeg2dec

mpeg2decode: $(OBJ)
	$(CC) $(CFLAGS) -o mpeg2decode $(OBJ) -lm

getbits.o: config.h global.h mpeg2dec.h
getblk.o: config.h global.h mpeg2dec.h
gethdr.o: config.h global.h mpeg2dec.h
getpic.o: config.h global.h mpeg2dec.h
getvlc.o: config.h global.h mpeg2dec.h getvlc.h
idct.o: config.h
idctref.o: config.h
motion.o: config.h global.h mpeg2dec.h
mpeg2dec.o: config.h global.h mpeg2dec.h
recon.o: config.h global.h mpeg2dec.h
spatscal.o: config.h global.h mpeg2dec.h
store.o: config.h global.h mpeg2dec.h
