Mercurial > mplayer.hg
annotate Makefile @ 465:7632ddc3f2b4
add mixer
author | pontscho |
---|---|
date | Mon, 16 Apr 2001 00:54:34 +0000 |
parents | 198b46b739d8 |
children | 888a85621f50 |
rev | line source |
---|---|
257 | 1 # DirectShow support (test code) |
2 # make -f makefile.DS | |
3 | |
1 | 4 # LINUX Makefile made by A'rpi / Astral |
5 # Some cleanup by LGB: * 'make -C dir' instead of 'cd dir;make;cd..' | |
6 # * for loops instead of linear sequence of make directories | |
7 # * some minor problems with make clean and distclean were corrected | |
8 | |
9 include config.mak | |
10 | |
78 | 11 #install... |
12 OWNER = root | |
13 GROUP = root | |
14 PERM = 755 | |
15 | |
1 | 16 PRG = mplayer |
118 | 17 PRG_HQ = mplayerHQ |
1 | 18 PRG_AVIP = aviparse |
19 PRG_TV = tvision | |
297 | 20 PRG_CFG = codec-cfg |
21 | |
1 | 22 prefix = /usr/local |
23 BINDIR = ${prefix}/bin | |
24 # BINDIR = /usr/local/bin | |
465 | 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 |
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 | |
1 | 27 CFLAGS = $(OPTFLAGS) -Iloader -Ilibvo # -Wall |
28 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 | |
29 VO_LIBS = -Llibvo -lvo $(X_LIBS) | |
30 | |
31 .SUFFIXES: .c .o | |
32 | |
33 # .PHONY: all clean | |
34 | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
35 all: version.h $(PRG) $(PRG_CFG) |
1 | 36 # $(PRG_AVIP) |
37 | |
38 .c.o: | |
257 | 39 $(CC) -c $(CFLAGS) -DUSE_DIRECTSHOW -o $@ $< |
1 | 40 |
41 COMMONLIBS = libvo/libvo.a libac3/libac3.a mp3lib/libMP3.a | |
42 | |
43 loader/libloader.a: | |
44 $(MAKE) -C loader | |
45 | |
257 | 46 loader/DirectShow/libDS_Filter.a: |
47 $(MAKE) -C loader/DirectShow | |
48 | |
1 | 49 libmpeg2/libmpeg2.a: |
50 $(MAKE) -C libmpeg2 | |
51 | |
52 libvo/libvo.a: | |
53 $(MAKE) -C libvo | |
54 | |
55 libac3/libac3.a: | |
56 $(MAKE) -C libac3 | |
57 | |
58 mp3lib/libMP3.a: | |
59 $(MAKE) -C mp3lib | |
60 | |
61 opendivx/libdecore.a: | |
62 $(MAKE) -C opendivx | |
63 | |
64 encore/libencore.a: | |
65 $(MAKE) -C encore | |
66 | |
422 | 67 $(PRG): .depend mplayer.o $(OBJS) loader/libloader.a loader/DirectShow/libDS_Filter.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a |
257 | 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++ |
1 | 69 |
422 | 70 $(PRG_HQ): .depend mplayerHQ.o $(OBJS) loader/libloader.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a |
118 | 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 |
72 | |
422 | 73 $(PRG_AVIP): .depend aviparse.o $(OBJS) loader/libloader.a $(COMMONLIBS) |
1 | 74 $(CC) $(CFLAGS) -o $(PRG_AVIP) aviparse.o $(OBJS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -ldl $(VO_LIBS) -lpthread |
75 | |
422 | 76 $(PRG_TV): .depend tvision.o $(OBJS) $(COMMONLIBS) |
1 | 77 $(CC) $(CFLAGS) -o $(PRG_TV) tvision.o $(OBJS) -lm $(TERMCAP_LIB) $(VO_LIBS) |
78 | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
79 $(PRG_CFG): .depend codec-cfg.c codec-cfg.h |
303 | 80 $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DTESTING |
297 | 81 |
1 | 82 install: $(PRG) |
78 | 83 install -g $(GROUP) -o $(OWNER) -m $(PERM) -s $(PRG) $(BINDIR) |
22 | 84 install -D -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1 |
1 | 85 |
86 clean: | |
87 rm -f *.o *~ $(OBJS) | |
88 | |
89 distclean: | |
257 | 90 @for a in mp3lib libac3 libmpeg2 opendivx encore libvo loader loader/DirectShow drivers drivers/syncfb ; do $(MAKE) -C $$a distclean ; done |
118 | 91 rm -f *~ $(PRG) $(PRG_HQ) $(PRG_AVIP) $(PRG_TV) $(OBJS) *.o *.a .depend |
1 | 92 |
93 dep: depend | |
94 | |
28 | 95 depend: .depend |
257 | 96 @for a in mp3lib libac3 libmpeg2 libvo opendivx encore loader/DirectShow ; do $(MAKE) -C $$a dep ; done |
1 | 97 |
28 | 98 .depend: Makefile config.mak config.h |
118 | 99 makedepend -f- -- $(CFLAGS) -- mplayer.c mplayerHQ.c aviparse.c tvision.c $(SRCS) 1>.depend 2>/dev/null |
22 | 100 |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
101 # rebuild at every config.h/config.mak change: |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
102 version.h: config.h config.mak Makefile |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
103 $(MAKE) distclean |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
104 ./version.sh |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
105 |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
106 # rebuild at every CVS update: |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
107 ifneq ($(wildcard CVS/Entries),) |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
108 version.h: CVS/Entries |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
109 endif |
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
110 |
28 | 111 # |
112 # include dependency files if they exist | |
113 # | |
114 ifneq ($(wildcard .depend),) | |
115 include .depend | |
116 endif | |
448
198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents:
444
diff
changeset
|
117 |