Mercurial > mplayer.hg
annotate Makefile @ 440:d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
author | gabucino |
---|---|
date | Sun, 15 Apr 2001 18:35:17 +0000 |
parents | eb04cde16bde |
children | 31c91562953e |
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 | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
422
diff
changeset
|
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 |
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
422
diff
changeset
|
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 | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
422
diff
changeset
|
35 all: $(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 |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
422
diff
changeset
|
68 @for a in mp3lib libac3 libmpeg2 opendivx encore libvo loader loader/DirectShow drivers drivers/syncfb ; do $(MAKE) -C $$a; done |
257 | 69 $(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 | 70 |
422 | 71 $(PRG_HQ): .depend mplayerHQ.o $(OBJS) loader/libloader.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a |
118 | 72 $(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 |
73 | |
422 | 74 $(PRG_AVIP): .depend aviparse.o $(OBJS) loader/libloader.a $(COMMONLIBS) |
1 | 75 $(CC) $(CFLAGS) -o $(PRG_AVIP) aviparse.o $(OBJS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -ldl $(VO_LIBS) -lpthread |
76 | |
422 | 77 $(PRG_TV): .depend tvision.o $(OBJS) $(COMMONLIBS) |
1 | 78 $(CC) $(CFLAGS) -o $(PRG_TV) tvision.o $(OBJS) -lm $(TERMCAP_LIB) $(VO_LIBS) |
79 | |
440
d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
gabucino
parents:
422
diff
changeset
|
80 $(PRG_CFG): codec-cfg.c codec-cfg.h |
303 | 81 $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DTESTING |
297 | 82 |
1 | 83 install: $(PRG) |
78 | 84 install -g $(GROUP) -o $(OWNER) -m $(PERM) -s $(PRG) $(BINDIR) |
22 | 85 install -D -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1 |
1 | 86 |
87 clean: | |
88 rm -f *.o *~ $(OBJS) | |
89 | |
90 distclean: | |
257 | 91 @for a in mp3lib libac3 libmpeg2 opendivx encore libvo loader loader/DirectShow drivers drivers/syncfb ; do $(MAKE) -C $$a distclean ; done |
118 | 92 rm -f *~ $(PRG) $(PRG_HQ) $(PRG_AVIP) $(PRG_TV) $(OBJS) *.o *.a .depend |
1 | 93 |
94 dep: depend | |
95 | |
28 | 96 depend: .depend |
257 | 97 @for a in mp3lib libac3 libmpeg2 libvo opendivx encore loader/DirectShow ; do $(MAKE) -C $$a dep ; done |
1 | 98 |
28 | 99 .depend: Makefile config.mak config.h |
118 | 100 makedepend -f- -- $(CFLAGS) -- mplayer.c mplayerHQ.c aviparse.c tvision.c $(SRCS) 1>.depend 2>/dev/null |
22 | 101 |
28 | 102 # |
103 # include dependency files if they exist | |
104 # | |
105 ifneq ($(wildcard .depend),) | |
106 include .depend | |
107 endif |