1 # Makefile for tmndec
2
3 # This is free software. See the file COPYING for copying conditions.
4
5 # uncomment the following two lines if you want to include X11 support
6 USE_DISP = -DDISPLAY
7 LIBS = -lX11
8
9 # uncomment the following two lines if you want to use shared memory
10 # (faster display if server and client run on the same machine)
11 USE_SHMEM = -DSH_MEM
12 LIBS = -lXext -lX11
13
14 # uncomment the following line to activate calculation of decoding speed
15 # (frames per second) and frame rate control (-fn option)
16 USE_TIME = -DUSE_TIME
17
18 # if your X11 include files / libraries are in a non standard location:
19 # set INCLUDEDIR to -I followed by the appropriate include file path and
20 # set LIBRARYDIR to -L followed by the appropriate library path and
21
22 # Necessary for OpenWindows
23 INCLUDEDIR = -I/usr/openwin/include
24 LIBRARYDIR = -L/usr/openwin/lib -Wl,-R,/usr/openwin/lib
25
26 # Necessary on some Linux configs
27 #LIBRARYDIR=-L/usr/X11R6/lib
28
29
30
31 #
32 # GNU gcc
33 #
34
35 CC = gcc
36 #
37 # This will generate optimized machine code
38 #
39 CFLAGS = -O3 $(DEFS) $(USE_DISP) $(USE_SHMEM) $(USE_TIME) $(INCLUDEDIR)
40 #
41 # For debugging and profiling
42 #CFLAGS = -g -pg -Wall $(DEFS) $(USE_DISP) $(USE_SHMEM) $(USE_TIME) $(INCLUDEDIR)
43
44
45 OBJS = tmndec.o getpic.o getvlc.o gethdr.o getblk.o getbits.o store.o recon.o idct.o idctref.o display.o sac.o dither.o yuv2rgb.o yuvrgb24.o win.o
46 SRCS = $(subst .o,.c,$(OBJS))
47
48
49 tmndec: $(OBJS)
50 $(CC) $(CFLAGS) $(LIBRARYDIR) -o tmndec $(OBJS) -lm $(LIBS)
51
52 lib:
53 make -f Makefile.lib
54
55 clean:
56 rm -f *.o *% core *~ TAGS
57
58 realclean: clean
59 rm -f tmndec libh263.a
60
61
62 depend dep:
63 gccmakedep -- $(CFLAGS) -- $(SRCS)
64
65 tar:
66 tar cvf tmndec.tar *.c *.h *.mak Makefile README COPYING CHANGES TODO
67 gzip tmndec.tar
68 mv -f tmndec.tar.gz tmndec.tgz
69
70 # DO NOT DELETE
71 display.o : display.c config.h global.h tmndec.h
72 getbits.o : getbits.c config.h global.h tmndec.h
73 getblk.o : getblk.c config.h global.h tmndec.h getvlc.h
74 gethdr.o : gethdr.c config.h global.h tmndec.h
75 getpic.o : getpic.c config.h global.h tmndec.h getvlc.h indices.h sactbls.h
76 getvlc.o : getvlc.c config.h global.h tmndec.h getvlc.h
77 idct.o : idct.c config.h
78 idctref.o : idctref.c config.h
79 tmndec.o : tmndec.c config.h global.h tmndec.h
80 recon.o : recon.c config.h global.h tmndec.h
81 store.o : store.c config.h global.h tmndec.h
82 sac.o : sac.c tmndec.h config.h global.h
83 dither.o: dither.c config.h global.h
84 yuv2rgb.o: yuv2rgb.c config.h global.h
85 yuvrgb24.o: yuvrgb24.c config.h global.h
86 win.o: win.c win.h config.h tmndec.h global.h
87
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.