# Makefile for ISO MPEG-1 Encoder.   Say "make pc" for IBM PC (MS-DOS)
# version using the GNU gcc djgpp compiler.

OBJ= encoder.o motion.o initial.o convert.o readpict.o decision.o perfidct.o \
perfdct.o dct.o transfer.o procpict.o stats.o reconstr.o \
ratectrl.o genbits.o writebit.o acvlc.o quantize.o writepic.o procseq.o

CFLAGS = -O2 -Wall

CC = gcc

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

pc: encode.exe

encode.exe: encode
	coff2exe encode

# dependencies

dct.o: consts.h
motion.o: consts.h mpeg1.h encoder.pro
initial.o: consts.h mpeg1.h encoder.h encoder.pro
perfdct.o: consts.h mpeg1.h encoder.pro
perfidct.o: consts.h mpeg1.h encoder.pro
ratectrl.o: consts.h mpeg1.h flc.h encoder.pro
readpict.o: consts.h mpeg1.h encoder.pro
decision.o: consts.h mpeg1.h encoder.pro
quantize.o: consts.h mpeg1.h encoder.pro
stats.o: consts.h mpeg1.h encoder.pro
transfer.o: consts.h mpeg1.h encoder.pro
writebit.o: consts.h mpeg1.h encoder.pro
writepic.o: consts.h mpeg1.h encoder.pro
reconstr.o: consts.h mpeg1.h encoder.pro
procpict.o: consts.h mpeg1.h flc.h encoder.pro
encoder.o: consts.h mpeg1.h flc.h encoder.pro
convert.o: consts.h mpeg1.h encoder.pro
acvlc.o: consts.h mpeg1.h bitcount.h encoder.pro
procseq.o: consts.h mpeg1.h flc.h encoder.pro
genbits.o: consts.h mpeg1.h flc.h bitcount.h global.h encoder.pro

