Mercurial > mplayer.hg
comparison Makefile @ 2601:81c0f3e487eb
added support for mencoder (compile with 'make mencoder')
author | alex |
---|---|
date | Wed, 31 Oct 2001 23:30:26 +0000 |
parents | 96803377ad53 |
children | a3e8de1b9c7d |
comparison
equal
deleted
inserted
replaced
2600:51a88ac2a602 | 2601:81c0f3e487eb |
---|---|
10 PRG_HQ = mplayerHQ | 10 PRG_HQ = mplayerHQ |
11 PRG_AVIP = aviparse | 11 PRG_AVIP = aviparse |
12 PRG_FIBMAP = fibmap_mplayer | 12 PRG_FIBMAP = fibmap_mplayer |
13 PRG_TV = tvision | 13 PRG_TV = tvision |
14 PRG_CFG = codec-cfg | 14 PRG_CFG = codec-cfg |
15 PRG_MENCODER = mencoder | |
15 | 16 |
16 #prefix = /usr/local | 17 #prefix = /usr/local |
17 BINDIR = ${prefix}/bin | 18 BINDIR = ${prefix}/bin |
18 # BINDIR = /usr/local/bin | 19 # BINDIR = /usr/local/bin |
19 | 20 |
20 # a BSD compatible 'install' program | 21 # a BSD compatible 'install' program |
21 INSTALL = install | 22 INSTALL = install |
22 | 23 |
23 SRCS = ima4.c xacodec.c cpudetect.c mp_msg.c ac3-iec958.c find_sub.c dec_audio.c dec_video.c codec-cfg.c subreader.c lirc_mp.c cfgparser.c mixer.c spudec.c | 24 SRCS_MENCODER = libvo/aclib.c libvo/img_format.c ima4.c xacodec.c cpudetect.c mp_msg.c ac3-iec958.c dec_audio.c dec_video.c codec-cfg.c lirc_mp.c cfgparser.c mixer.c spudec.c |
24 OBJS = $(SRCS:.c=.o) | 25 OBJS_MENCODER = $(SRCS_MENCODER:.c=.o) |
26 | |
27 SRCS_MPLAYER = ima4.c xacodec.c cpudetect.c mp_msg.c ac3-iec958.c find_sub.c dec_audio.c dec_video.c codec-cfg.c subreader.c lirc_mp.c cfgparser.c mixer.c spudec.c | |
28 OBJS_MPLAYER = $(SRCS_MPLAYER:.c=.o) | |
25 CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader -Ilibvo $(EXTRA_INC) $(MADLIB_INC) # -Wall | 29 CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader -Ilibvo $(EXTRA_INC) $(MADLIB_INC) # -Wall |
26 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 $(ALSA_LIB) $(ESD_LIB) $(MADLIB_LIB) $(SGI_AUDIO_LIB) | 30 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 $(ALSA_LIB) $(ESD_LIB) $(MADLIB_LIB) $(SGI_AUDIO_LIB) |
27 VO_LIBS = -Llibvo -lvo $(MLIB_LIB) $(X_LIBS) | 31 VO_LIBS = -Llibvo -lvo $(MLIB_LIB) $(X_LIBS) |
28 OSDEP_LIBS = -Llinux -losdep | 32 OSDEP_LIBS = -Llinux -losdep |
29 PP_LIBS = -Lpostproc -lpostproc | 33 PP_LIBS = -Lpostproc -lpostproc |
30 XA_LIBS = -Lxa -lxa | 34 XA_LIBS = -Lxa -lxa |
31 | 35 |
36 SRCS = $(SRCS_MENCODER) $(SRCS_MPLAYER) | |
37 OBJS = $(OBJS_MENCODER) $(OBJS_MPLAYER) | |
38 | |
32 PARTS = libmpdemux mp3lib libac3 libmpeg2 opendivx libavcodec libvo libao2 drivers drivers/syncfb linux postproc xa | 39 PARTS = libmpdemux mp3lib libac3 libmpeg2 opendivx libavcodec libvo libao2 drivers drivers/syncfb linux postproc xa |
33 | 40 |
34 ifeq ($(GUI),yes) | 41 ifeq ($(GUI),yes) |
35 PARTS += Gui | 42 PARTS += Gui |
36 endif | 43 endif |
37 | 44 |
38 ifneq ($(W32_LIB),) | 45 ifneq ($(W32_LIB),) |
39 PARTS += loader loader/DirectShow | 46 PARTS += loader loader/DirectShow |
47 SRCS_MPLAYER += dll_init.c | |
48 SRCS_MENCODER += dll_init.c | |
40 SRCS += dll_init.c | 49 SRCS += dll_init.c |
41 endif | 50 endif |
42 LOADER_DEP = $(W32_DEP) $(DS_DEP) | 51 LOADER_DEP = $(W32_DEP) $(DS_DEP) |
43 LIB_LOADER = $(W32_LIB) $(DS_LIB) | 52 LIB_LOADER = $(W32_LIB) $(DS_LIB) |
44 | 53 |
103 $(MAKE) -C postproc | 112 $(MAKE) -C postproc |
104 | 113 |
105 xa/libxa.a: | 114 xa/libxa.a: |
106 $(MAKE) -C xa | 115 $(MAKE) -C xa |
107 | 116 |
108 MPLAYER_DEP = mplayer.o $(OBJS) $(LOADER_DEP) $(AV_DEP) $(COMMONLIBS) | 117 MPLAYER_DEP = mplayer.o $(OBJS_MPLAYER) $(LOADER_DEP) $(AV_DEP) $(COMMONLIBS) |
109 ifeq ($(GUI),yes) | 118 ifeq ($(GUI),yes) |
110 MPLAYER_DEP += Gui/libgui.a | 119 MPLAYER_DEP += Gui/libgui.a |
111 endif | 120 endif |
121 | |
122 MENCODER_DEP = mencoder.o $(OBJS_MENCODER) $(LOADER_DEP) $(AV_DEP) $(COMMONLIBS) | |
123 ifeq ($(GUI),yes) | |
124 MENCODER_DEP += Gui/libgui.a | |
125 endif | |
126 | |
112 mplayerwithoutlink: $(MPLAYER_DEP) | 127 mplayerwithoutlink: $(MPLAYER_DEP) |
113 @for a in $(PARTS); do $(MAKE) -C $$a all ; done | 128 @for a in $(PARTS); do $(MAKE) -C $$a all ; done |
114 | 129 |
115 $(PRG): $(MPLAYER_DEP) | 130 $(PRG): $(MPLAYER_DEP) |
116 $(CC) -rdynamic $(CFLAGS) -o $(PRG) mplayer.o -Llibmpdemux -lmpdemux $(OBJS) $(XMM_LIBS) $(LIRC_LIBS) $(LIB_LOADER) $(AV_LIB) -Llibmpeg2 -lmpeg2 -Llibao2 -lao2 $(A_LIBS) $(VO_LIBS) $(CSS_LIB) $(GUI_LIBS) $(ARCH_LIBS) $(OSDEP_LIBS) $(PP_LIBS) $(XA_LIBS) $(DECORE_LIBS) $(TERMCAP_LIB) -lm | 131 $(CC) -rdynamic $(CFLAGS) -o $(PRG) mplayer.o -Llibmpdemux -lmpdemux $(OBJS_MPLAYER) $(XMM_LIBS) $(LIRC_LIBS) $(LIB_LOADER) $(AV_LIB) -Llibmpeg2 -lmpeg2 -Llibao2 -lao2 $(A_LIBS) $(VO_LIBS) $(CSS_LIB) $(GUI_LIBS) $(ARCH_LIBS) $(OSDEP_LIBS) $(PP_LIBS) $(XA_LIBS) $(DECORE_LIBS) $(TERMCAP_LIB) -lm -ldivxencore |
117 | 132 |
118 $(PRG_FIBMAP): fibmap_mplayer.o | 133 $(PRG_FIBMAP): fibmap_mplayer.o |
119 $(CC) -o $(PRG_FIBMAP) fibmap_mplayer.o | 134 $(CC) -o $(PRG_FIBMAP) fibmap_mplayer.o |
120 | 135 |
136 $(PRG_MENCODER): $(MENCODER_DEP) | |
137 $(CC) -rdynamic $(CFLAGS) -o $(PRG_MENCODER) mencoder.o -Llibmpdemux -lmpdemux $(OBJS_MENCODER) $(X_LIBS) $(XMM_LIBS) $(LIRC_LIBS) $(LIB_LOADER) $(AV_LIB) -ldivxencore -Llibmpeg2 -lmpeg2 -Llibao2 -lao2 $(A_LIBS) $(CSS_LIB) $(GUI_LIBS) $(ARCH_LIBS) $(OSDEP_LIBS) $(PP_LIBS) $(XA_LIBS) $(DECORE_LIBS) $(TERMCAP_LIB) -lm | |
138 | |
121 # $(PRG_HQ): depfile mplayerHQ.o $(OBJS) loader/libloader.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a | 139 # $(PRG_HQ): depfile mplayerHQ.o $(OBJS) loader/libloader.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a |
122 # $(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 | 140 # $(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 |
123 | 141 |
124 # $(PRG_AVIP): depfile aviparse.o $(OBJS) loader/libloader.a $(COMMONLIBS) | 142 # $(PRG_AVIP): depfile aviparse.o $(OBJS) loader/libloader.a $(COMMONLIBS) |
125 # $(CC) $(CFLAGS) -o $(PRG_AVIP) aviparse.o $(OBJS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -ldl $(VO_LIBS) -lpthread | 143 # $(CC) $(CFLAGS) -o $(PRG_AVIP) aviparse.o $(OBJS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -ldl $(VO_LIBS) -lpthread |
126 | 144 |
127 # $(PRG_TV): depfile tvision.o $(OBJS) $(COMMONLIBS) | 145 #$(PRG_TV): depfile tvision.o $(OBJS) $(COMMONLIBS) |
128 # $(CC) $(CFLAGS) -o $(PRG_TV) tvision.o $(OBJS) -lm $(TERMCAP_LIB) $(VO_LIBS) | 146 # $(CC) $(CFLAGS) -o $(PRG_TV) tvision.o $(OBJS) -lm $(TERMCAP_LIB) $(VO_LIBS) |
129 | 147 |
130 # Every mplayer dependancy depends on version.h, to force building version.h | 148 # Every mplayer dependancy depends on version.h, to force building version.h |
131 # first (in serial mode) before any other of the dependancies for a parallel make | 149 # first (in serial mode) before any other of the dependancies for a parallel make |
132 # run. This is necessary, because the make rule for version.h removes objects | 150 # run. This is necessary, because the make rule for version.h removes objects |
133 # in a recursive "make distclean" and we must wait for this "make distclean" to | 151 # in a recursive "make distclean" and we must wait for this "make distclean" to |
162 | 180 |
163 clean: | 181 clean: |
164 rm -f *.o *~ $(OBJS) | 182 rm -f *.o *~ $(OBJS) |
165 | 183 |
166 distclean: | 184 distclean: |
167 rm -f *~ $(PRG) $(PRG_FIBMAP) $(PRG_HQ) $(PRG_AVIP) $(PRG_TV) $(OBJS) *.o *.a .depend | 185 rm -f *~ $(PRG) $(PRG_FIBMAP) $(PRG_HQ) $(PRG_AVIP) $(PRG_TV) $(OBJS) $(PRG_MENCODER) *.o *.a .depend |
168 @for a in $(PARTS); do $(MAKE) -C $$a distclean; done | 186 @for a in $(PARTS); do $(MAKE) -C $$a distclean; done |
169 | 187 |
170 dep: depend | 188 dep: depend |
171 | 189 |
172 depend: | 190 depend: |
173 ./version.sh | 191 ./version.sh |
174 $(CC) -MM $(CFLAGS) mplayer.c $(SRCS) 1>.depend | 192 $(CC) -MM $(CFLAGS) mplayer.c $(SRCS_MPLAYER) 1>.depend |
193 $(CC) -MM $(CFLAGS) mencoder.c $(SRCS_MENCODER) 1>.depend | |
175 @for a in $(PARTS); do $(MAKE) -C $$a dep; done | 194 @for a in $(PARTS); do $(MAKE) -C $$a dep; done |
176 | 195 |
177 # ./configure must be run if it changed in CVS | 196 # ./configure must be run if it changed in CVS |
178 config.h: configure | 197 config.h: configure |
179 @echo "############################################################" | 198 @echo "############################################################" |