annotate Makefile.DS @ 174:3b8373ce57ca

Makefile for DirectShow support
author arpi_esp
date Tue, 20 Mar 2001 22:10:48 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
174
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
1 # DirectShow support (test code)
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
2 # make -f makefile.DS
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
3
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
4 # LINUX Makefile made by A'rpi / Astral
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
5 # Some cleanup by LGB: * 'make -C dir' instead of 'cd dir;make;cd..'
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
6 # * for loops instead of linear sequence of make directories
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
7 # * some minor problems with make clean and distclean were corrected
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
8
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
9 include config.mak
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
10
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
11 #install...
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
12 OWNER = root
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
13 GROUP = root
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
14 PERM = 755
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
15
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
16 PRG = mplayer
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
17 PRG_HQ = mplayerHQ
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
18 PRG_AVIP = aviparse
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
19 PRG_TV = tvision
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
20 prefix = /usr/local
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
21 BINDIR = ${prefix}/bin
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
22 # BINDIR = /usr/local/bin
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
23 SRCS = linux/getch2.c linux/timer-lx.c linux/shmem.c xa/xa_gsm.c lirc_mp.c cfgparser.c
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
24 OBJS = linux/getch2.o linux/timer-lx.o linux/shmem.o xa/xa_gsm.o lirc_mp.o cfgparser.o
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
25 CFLAGS = $(OPTFLAGS) -Iloader -Ilibvo # -Wall
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
26 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
27 VO_LIBS = -Llibvo -lvo $(X_LIBS)
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
28
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
29 .SUFFIXES: .c .o
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
30
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
31 # .PHONY: all clean
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
32
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
33 all: $(PRG)
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
34 # $(PRG_AVIP)
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
35
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
36 .c.o:
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
37 $(CC) -c $(CFLAGS) -DUSE_DIRECTSHOW -o $@ $<
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
38
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
39 COMMONLIBS = libvo/libvo.a libac3/libac3.a mp3lib/libMP3.a
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
40
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
41 loader/libloader.a:
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
42 $(MAKE) -C loader
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
43
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
44 loader/DirectShow/libDS_Filter.a:
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
45 $(MAKE) -C loader/DirectShow
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
46
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
47 libmpeg2/libmpeg2.a:
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
48 $(MAKE) -C libmpeg2
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
49
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
50 libvo/libvo.a:
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
51 $(MAKE) -C libvo
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
52
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
53 libac3/libac3.a:
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
54 $(MAKE) -C libac3
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
55
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
56 mp3lib/libMP3.a:
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
57 $(MAKE) -C mp3lib
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
58
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
59 opendivx/libdecore.a:
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
60 $(MAKE) -C opendivx
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
61
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
62 encore/libencore.a:
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
63 $(MAKE) -C encore
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
64
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
65 $(PRG): .depend mplayer.o $(OBJS) loader/libloader.a loader/DirectShow/libDS_Filter.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
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) -Lencore -lencore -lpthread -lstdc++
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
67
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
68 $(PRG_HQ): .depend mplayerHQ.o $(OBJS) loader/libloader.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
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
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
70
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
71 $(PRG_AVIP): .depend aviparse.o $(OBJS) loader/libloader.a $(COMMONLIBS)
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
72 $(CC) $(CFLAGS) -o $(PRG_AVIP) aviparse.o $(OBJS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -ldl $(VO_LIBS) -lpthread
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
73
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
74 $(PRG_TV): .depend tvision.o $(OBJS) $(COMMONLIBS)
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
75 $(CC) $(CFLAGS) -o $(PRG_TV) tvision.o $(OBJS) -lm $(TERMCAP_LIB) $(VO_LIBS)
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
76
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
77 install: $(PRG)
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
78 install -g $(GROUP) -o $(OWNER) -m $(PERM) -s $(PRG) $(BINDIR)
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
79 install -D -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
80
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
81 clean:
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
82 rm -f *.o *~ $(OBJS)
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
83
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
84 distclean:
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
85 @for a in mp3lib libac3 libmpeg2 opendivx encore libvo loader loader/DirectShow drivers drivers/syncfb ; do $(MAKE) -C $$a distclean ; done
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
86 rm -f *~ $(PRG) $(PRG_HQ) $(PRG_AVIP) $(PRG_TV) $(OBJS) *.o *.a .depend
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
87
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
88 dep: depend
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
89
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
90 depend: .depend
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
91 @for a in mp3lib libac3 libmpeg2 libvo opendivx encore loader/DirectShow ; do $(MAKE) -C $$a dep ; done
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
92
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
93 .depend: Makefile config.mak config.h
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
94 makedepend -f- -- $(CFLAGS) -- mplayer.c mplayerHQ.c aviparse.c tvision.c $(SRCS) 1>.depend 2>/dev/null
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
95
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
96 #
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
97 # include dependency files if they exist
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
98 #
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
99 ifneq ($(wildcard .depend),)
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
100 include .depend
3b8373ce57ca Makefile for DirectShow support
arpi_esp
parents:
diff changeset
101 endif