comparison Makefile @ 4089:e1c6178de089

Configurable VIDIX usage
author nick
date Fri, 11 Jan 2002 17:20:43 +0000
parents 4435dc3b8bef
children 22fadd4022b5
comparison
equal deleted inserted replaced
4088:4435dc3b8bef 4089:e1c6178de089
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 PRG_MENCODER = mencoder
16 # these subdirectories required installation due binaries within them 16 # these subdirectories required installation due binaries within them
17 SUBDIRS = libdha vidix 17 ifeq ($(VIDIX),yes)
18 SUBDIRS += libdha vidix
18 DO_MAKE = @ for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done 19 DO_MAKE = @ for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
20 endif
19 21
20 #prefix = /usr/local 22 #prefix = /usr/local
21 BINDIR = ${prefix}/bin 23 BINDIR = ${prefix}/bin
22 # BINDIR = /usr/local/bin 24 # BINDIR = /usr/local/bin
23 MANDIR = ${prefix}/man 25 MANDIR = ${prefix}/man
43 45
44 AO_LIBS = -Llibao2 -lao2 46 AO_LIBS = -Llibao2 -lao2
45 A_LIBS = $(ALSA_LIB) $(NAS_LIB) $(MAD_LIB) $(VORBIS_LIB) $(SGIAUDIO_LIB) 47 A_LIBS = $(ALSA_LIB) $(NAS_LIB) $(MAD_LIB) $(VORBIS_LIB) $(SGIAUDIO_LIB)
46 48
47 CODEC_LIBS = -Lg72x -lg72x -Lmp3lib -lMP3 -Llibac3 -lac3 -Lliba52 -la52 -Lxa -lxa -Llibmpeg2 -lmpeg2 $(AV_LIB) 49 CODEC_LIBS = -Lg72x -lg72x -Lmp3lib -lMP3 -Llibac3 -lac3 -Lliba52 -la52 -Lxa -lxa -Llibmpeg2 -lmpeg2 $(AV_LIB)
48 COMMON_LIBS = -Llinux -losdep -Lpostproc -lpostproc -Lvidix -lvidix 50 COMMON_LIBS = -Llinux -losdep -Lpostproc -lpostproc
49 MISC_LIBS = -Llibdha -ldha 51 ifeq ($(VIDIX),yes)
50 52 MISC_LIBS += -Llibdha -ldha -Lvidix -lvidix
53 endif
51 CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader $(VO_INC) $(EXTRA_INC) # -Wall 54 CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader $(VO_INC) $(EXTRA_INC) # -Wall
52 55
53 PARTS = g72x libmpdemux mp3lib libac3 liba52 libmp1e libmpeg2 opendivx libavcodec libao2 drivers drivers/syncfb linux postproc xa libdha vidix 56 PARTS = g72x libmpdemux mp3lib libac3 liba52 libmp1e libmpeg2 opendivx libavcodec libao2 drivers drivers/syncfb linux postproc xa
57 ifeq ($(VIDIX),yes)
58 PARTS += libdha vidix
59 endif
54 ifeq ($(VO2),yes) 60 ifeq ($(VO2),yes)
55 PARTS += libvo2 61 PARTS += libvo2
56 else 62 else
57 PARTS += libvo 63 PARTS += libvo
58 endif 64 endif
87 # $(PRG_AVIP) 93 # $(PRG_AVIP)
88 94
89 .c.o: 95 .c.o:
90 $(CC) -c $(CFLAGS) -o $@ $< 96 $(CC) -c $(CFLAGS) -o $@ $<
91 97
92 COMMON_DEPS = g72x/libg72x.a libmpdemux/libmpdemux.a libao2/libao2.a libac3/libac3.a liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a opendivx/libdecore.a linux/libosdep.a postproc/libpostproc.a libdha/libdha.so vidix/libvidix.a xa/libxa.a 98 COMMON_DEPS = g72x/libg72x.a libmpdemux/libmpdemux.a libao2/libao2.a libac3/libac3.a liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a opendivx/libdecore.a linux/libosdep.a postproc/libpostproc.a xa/libxa.a
93 99
100 ifeq ($(VIDIX),yes)
101 COMMON_DEPS += libdha/libdha.so vidix/libvidix.a
102 endif
94 ifeq ($(VO2),yes) 103 ifeq ($(VO2),yes)
95 COMMON_DEPS += libvo2/libvo2.a 104 COMMON_DEPS += libvo2/libvo2.a
96 else 105 else
97 COMMON_DEPS += libvo/libvo.a 106 COMMON_DEPS += libvo/libvo.a
98 endif 107 endif
170 MPLAYER_DEP += Gui/libgui.a 179 MPLAYER_DEP += Gui/libgui.a
171 MENCODER_DEP += Gui/libgui.a 180 MENCODER_DEP += Gui/libgui.a
172 GUI_LIBS = -LGui -lgui 181 GUI_LIBS = -LGui -lgui
173 endif 182 endif
174 183
175 VIDIX_LIBS = -Lvidix -lvidix 184 VIDIX_LIBS =
185 ifeq ($(VIDIX),yes)
186 VIDIX_LIBS += -Lvidix -lvidix
187 endif
176 188
177 $(PRG): $(MPLAYER_DEP) 189 $(PRG): $(MPLAYER_DEP)
178 $(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) $(CODEC_LIBS) -Llibmpdemux -lmpdemux $(VO_LIBS) $(AO_LIBS) $(LIB_LOADER) $(GUI_LIBS) $(COMMON_LIBS) $(EXTRA_LIB) $(A_LIBS) $(V_LIBS) $(LIRC_LIB) $(CSS_LIB) $(ARCH_LIB) $(DECORE_LIB) $(TERMCAP_LIB) $(STATIC_LIB) $(GTK_LIBS) $(PNG_LIB) $(Z_LIB) $(STREAMING_LIB) $(VIDIX_LIBS) -lm 190 $(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) $(CODEC_LIBS) -Llibmpdemux -lmpdemux $(VO_LIBS) $(AO_LIBS) $(LIB_LOADER) $(GUI_LIBS) $(COMMON_LIBS) $(EXTRA_LIB) $(A_LIBS) $(V_LIBS) $(LIRC_LIB) $(CSS_LIB) $(ARCH_LIB) $(DECORE_LIB) $(TERMCAP_LIB) $(STATIC_LIB) $(GTK_LIBS) $(PNG_LIB) $(Z_LIB) $(STREAMING_LIB) $(VIDIX_LIBS) -lm
179 191
180 $(PRG_FIBMAP): fibmap_mplayer.o 192 $(PRG_FIBMAP): fibmap_mplayer.o
195 207
196 $(PRG_CFG): version.h codec-cfg.c codec-cfg.h 208 $(PRG_CFG): version.h codec-cfg.c codec-cfg.h
197 $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML 209 $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML
198 210
199 install: $(ALL_PRG) 211 install: $(ALL_PRG)
212 ifeq ($(VIDIX),yes)
200 $(DO_MAKE) 213 $(DO_MAKE)
214 endif
201 if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi 215 if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi
202 $(INSTALL) -m 755 -s $(PRG) $(BINDIR)/$(PRG) 216 $(INSTALL) -m 755 -s $(PRG) $(BINDIR)/$(PRG)
203 ifeq ($(GUI),yes) 217 ifeq ($(GUI),yes)
204 -ln -sf $(BINDIR)/$(PRG) $(BINDIR)/gmplayer 218 -ln -sf $(BINDIR)/$(PRG) $(BINDIR)/gmplayer
205 endif 219 endif