# Makefile for tmndecode # uncomment the following two lines if you want to include X11 support #USE_DISP = -DDISPLAY #LIBS = -lsocket -lX11 # uncomment the following two lines if you want to use shared memory # (faster display if server and client run on the same machine) #USE_SHMEM = -DSH_MEM #LIBS = -lsocket -lXext -lX11 # uncomment the following line to activate calculation of decoding speed # (frames per second) and frame rate control (-fn option) #USE_TIME = -DUSE_TIME # This decoder handles the following resolutions # SQCIF (128 x 96), QCIF (176 x 144), CIF (352 x 288), 4CIF (704x576) # and 16CIF (1408x1152). To change the coding format change USE_FMT to # one of the following -DSQCIF, -DQCIF, -DCIF, -DCIF4 or -DCIF16 and # do a "make clean" before "make". USE_FMT = -DQCIF # if your X11 include files / libraries are in a non standard location: # set INCLUDEDIR to -I followed by the appropriate include file path and # set LIBRARYDIR to -L followed by the appropriate library path and # Necessary for OpenWindows #INCLUDEDIR = -I/usr/openwin/include #LIBRARYDIR = -L/usr/openwin/lib # Necessary on my Linux box #LIBRARYDIR=-L/usr/X11R6/lib # # GNU gcc # CC = gcc CFLAGS = -g -O $(DEFS) $(USE_DISP) $(USE_SHMEM) $(USE_TIME) $(USE_FMT) $(INCLUDEDIR) # if you compile this with another compiler than gcc, please # mail me the necessary changes OBJ = getpic.o getvlc.o gethdr.o getblk.o getbits.o store.o recon.o idct.o idctref.o display.o sac.o all: libtmndecode.a tmndecode clean: rm -f *.o *% core tmndecode tmndecode: $(OBJ) tmndec.o $(CC) $(CFLAGS) $(LIBRARYDIR) -o tmndecode-mod $(OBJ) tmndec.o -lm $(LIBS) libtmndecode.a: $(OBJ) $(RM) *.a $(AR) r $@ $(OBJ) tar: tar cvf tmndec.tar *.c *.h Makefile README COPYRIGHT CHANGES TODO gzip tmndec.tar mv -f tmndec.tar.gz tmndec.tgz display.o : display.c config.h global.h tmndec.h getbits.o : getbits.c config.h global.h tmndec.h getblk.o : getblk.c config.h global.h tmndec.h getvlc.h gethdr.o : gethdr.c config.h global.h tmndec.h getpic.o : getpic.c config.h global.h tmndec.h getvlc.h indices.h sactbls.h getvlc.o : getvlc.c config.h global.h tmndec.h getvlc.h idct.o : idct.c config.h idctref.o : idctref.c config.h recon.o : recon.c config.h global.h tmndec.h store.o : store.c config.h global.h tmndec.h sac.o : sac.c tmndec.h config.h global.h tmndec.o : tmndec.c config.h global.h tmndec.h