comparison Makefile @ 492:888a85621f50

preliminary DVD support using libcss
author lgb
date Tue, 17 Apr 2001 22:04:44 +0000
parents 7632ddc3f2b4
children 28ae99036574
comparison
equal deleted inserted replaced
491:2313c6ea006f 492:888a85621f50
1 # DirectShow support (test code)
2 # make -f makefile.DS
3
4 # LINUX Makefile made by A'rpi / Astral 1 # LINUX Makefile made by A'rpi / Astral
5 # Some cleanup by LGB: * 'make -C dir' instead of 'cd dir;make;cd..' 2 # Some cleanup by LGB: * 'make -C dir' instead of 'cd dir;make;cd..'
6 # * for loops instead of linear sequence of make directories 3 # * for loops instead of linear sequence of make directories
7 # * some minor problems with make clean and distclean were corrected 4 # * some minor problems with make clean and distclean were corrected
5 # * DVD support
8 6
9 include config.mak 7 include config.mak
10 8
11 #install... 9 #install...
12 OWNER = root 10 OWNER = root
20 PRG_CFG = codec-cfg 18 PRG_CFG = codec-cfg
21 19
22 prefix = /usr/local 20 prefix = /usr/local
23 BINDIR = ${prefix}/bin 21 BINDIR = ${prefix}/bin
24 # BINDIR = /usr/local/bin 22 # BINDIR = /usr/local/bin
25 SRCS = codec-cfg.c subreader.c linux/getch2.c linux/timer-lx.c linux/shmem.c xa/xa_gsm.c lirc_mp.c cfgparser.c mixer.c 23 SRCS = codec-cfg.c subreader.c linux/getch2.c linux/timer-lx.c linux/shmem.c xa/xa_gsm.c lirc_mp.c cfgparser.c mixer.c dvdauth.c
26 OBJS = codec-cfg.o subreader.o linux/getch2.o linux/timer-lx.o linux/shmem.o xa/xa_gsm.o lirc_mp.o cfgparser.o mixer.o 24 OBJS = codec-cfg.o subreader.o linux/getch2.o linux/timer-lx.o linux/shmem.o xa/xa_gsm.o lirc_mp.o cfgparser.o mixer.o dvdauth.o
27 CFLAGS = $(OPTFLAGS) -Iloader -Ilibvo # -Wall 25 CFLAGS = $(OPTFLAGS) $(CSS_INC) -Iloader -Ilibvo # -Wall
28 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 26 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3
29 VO_LIBS = -Llibvo -lvo $(X_LIBS) 27 VO_LIBS = -Llibvo -lvo $(X_LIBS)
30 28
31 .SUFFIXES: .c .o 29 .SUFFIXES: .c .o
32 30
63 61
64 encore/libencore.a: 62 encore/libencore.a:
65 $(MAKE) -C encore 63 $(MAKE) -C encore
66 64
67 $(PRG): .depend mplayer.o $(OBJS) loader/libloader.a loader/DirectShow/libDS_Filter.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a 65 $(PRG): .depend mplayer.o $(OBJS) loader/libloader.a loader/DirectShow/libDS_Filter.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a
68 $(CC) $(CFLAGS) -o $(PRG) mplayer.o $(OBJS) $(XMM_LIBS) $(LIRC_LIBS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -Lloader/DirectShow -lDS_Filter -ldl -Llibmpeg2 -lmpeg2 -Lopendivx -ldecore $(VO_LIBS) -Lencore -lencore -lpthread -lstdc++ 66 $(CC) $(CFLAGS) -o $(PRG) mplayer.o $(OBJS) $(XMM_LIBS) $(LIRC_LIBS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -Lloader/DirectShow -lDS_Filter -ldl -Llibmpeg2 -lmpeg2 -Lopendivx -ldecore $(VO_LIBS) $(CSS_LIB) -Lencore -lencore -lpthread -lstdc++
69 67
70 $(PRG_HQ): .depend mplayerHQ.o $(OBJS) loader/libloader.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a 68 $(PRG_HQ): .depend mplayerHQ.o $(OBJS) loader/libloader.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a
71 $(CC) $(CFLAGS) -o $(PRG_HQ) mplayerHQ.o $(OBJS) $(XMM_LIBS) $(LIRC_LIBS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -ldl -Llibmpeg2 -lmpeg2 -Lopendivx -ldecore $(VO_LIBS) -Lencore -lencore -lpthread 69 $(CC) $(CFLAGS) -o $(PRG_HQ) mplayerHQ.o $(OBJS) $(XMM_LIBS) $(LIRC_LIBS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -ldl -Llibmpeg2 -lmpeg2 -Lopendivx -ldecore $(VO_LIBS) -Lencore -lencore -lpthread
72 70
73 $(PRG_AVIP): .depend aviparse.o $(OBJS) loader/libloader.a $(COMMONLIBS) 71 $(PRG_AVIP): .depend aviparse.o $(OBJS) loader/libloader.a $(COMMONLIBS)