Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
439:fc760523e55a | 440:d19a3da6ac13 |
---|---|
20 PRG_CFG = codec-cfg | 20 PRG_CFG = codec-cfg |
21 | 21 |
22 prefix = /usr/local | 22 prefix = /usr/local |
23 BINDIR = ${prefix}/bin | 23 BINDIR = ${prefix}/bin |
24 # BINDIR = /usr/local/bin | 24 # 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 | 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 | 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 |
27 CFLAGS = $(OPTFLAGS) -Iloader -Ilibvo # -Wall | 27 CFLAGS = $(OPTFLAGS) -Iloader -Ilibvo # -Wall |
28 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 | 28 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 |
29 VO_LIBS = -Llibvo -lvo $(X_LIBS) | 29 VO_LIBS = -Llibvo -lvo $(X_LIBS) |
30 | 30 |
31 .SUFFIXES: .c .o | 31 .SUFFIXES: .c .o |
32 | 32 |
33 # .PHONY: all clean | 33 # .PHONY: all clean |
34 | 34 |
35 all: version.h $(PRG) $(PRG_CFG) | 35 all: $(PRG) $(PRG_CFG) |
36 # $(PRG_AVIP) | 36 # $(PRG_AVIP) |
37 | 37 |
38 .c.o: | 38 .c.o: |
39 $(CC) -c $(CFLAGS) -DUSE_DIRECTSHOW -o $@ $< | 39 $(CC) -c $(CFLAGS) -DUSE_DIRECTSHOW -o $@ $< |
40 | 40 |
63 | 63 |
64 encore/libencore.a: | 64 encore/libencore.a: |
65 $(MAKE) -C encore | 65 $(MAKE) -C encore |
66 | 66 |
67 $(PRG): .depend mplayer.o $(OBJS) loader/libloader.a loader/DirectShow/libDS_Filter.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a | 67 $(PRG): .depend mplayer.o $(OBJS) loader/libloader.a loader/DirectShow/libDS_Filter.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a |
68 @for a in mp3lib libac3 libmpeg2 opendivx encore libvo loader loader/DirectShow drivers drivers/syncfb ; do $(MAKE) -C $$a; done | |
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++ | 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++ |
69 | 70 |
70 $(PRG_HQ): .depend mplayerHQ.o $(OBJS) loader/libloader.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a | 71 $(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 | 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 |
72 | 73 |
74 $(CC) $(CFLAGS) -o $(PRG_AVIP) aviparse.o $(OBJS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -ldl $(VO_LIBS) -lpthread | 75 $(CC) $(CFLAGS) -o $(PRG_AVIP) aviparse.o $(OBJS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -ldl $(VO_LIBS) -lpthread |
75 | 76 |
76 $(PRG_TV): .depend tvision.o $(OBJS) $(COMMONLIBS) | 77 $(PRG_TV): .depend tvision.o $(OBJS) $(COMMONLIBS) |
77 $(CC) $(CFLAGS) -o $(PRG_TV) tvision.o $(OBJS) -lm $(TERMCAP_LIB) $(VO_LIBS) | 78 $(CC) $(CFLAGS) -o $(PRG_TV) tvision.o $(OBJS) -lm $(TERMCAP_LIB) $(VO_LIBS) |
78 | 79 |
79 $(PRG_CFG): .depend codec-cfg.c codec-cfg.h | 80 $(PRG_CFG): codec-cfg.c codec-cfg.h |
80 $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DTESTING | 81 $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DTESTING |
81 | 82 |
82 install: $(PRG) | 83 install: $(PRG) |
83 install -g $(GROUP) -o $(OWNER) -m $(PERM) -s $(PRG) $(BINDIR) | 84 install -g $(GROUP) -o $(OWNER) -m $(PERM) -s $(PRG) $(BINDIR) |
84 install -D -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1 | 85 install -D -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1 |
96 @for a in mp3lib libac3 libmpeg2 libvo opendivx encore loader/DirectShow ; do $(MAKE) -C $$a dep ; done | 97 @for a in mp3lib libac3 libmpeg2 libvo opendivx encore loader/DirectShow ; do $(MAKE) -C $$a dep ; done |
97 | 98 |
98 .depend: Makefile config.mak config.h | 99 .depend: Makefile config.mak config.h |
99 makedepend -f- -- $(CFLAGS) -- mplayer.c mplayerHQ.c aviparse.c tvision.c $(SRCS) 1>.depend 2>/dev/null | 100 makedepend -f- -- $(CFLAGS) -- mplayer.c mplayerHQ.c aviparse.c tvision.c $(SRCS) 1>.depend 2>/dev/null |
100 | 101 |
101 # rebuild at every config.h/config.mak change: | |
102 version.h: config.h config.mak Makefile | |
103 $(MAKE) distclean | |
104 ./version.sh | |
105 | |
106 # rebuild at every CVS update: | |
107 ifneq ($(wildcard CVS/Entries),) | |
108 version.h: CVS/Entries | |
109 endif | |
110 | |
111 # | 102 # |
112 # include dependency files if they exist | 103 # include dependency files if they exist |
113 # | 104 # |
114 ifneq ($(wildcard .depend),) | 105 ifneq ($(wildcard .depend),) |
115 include .depend | 106 include .depend |
116 endif | 107 endif |
117 |