comparison Makefile @ 2466:451426046a14

CSS_INC include flags are now needed in libmpdemux, to compile dvdauth.c
author jkeil
date Thu, 25 Oct 2001 13:19:18 +0000
parents 23de840b63f2
children 422db818ae31
comparison
equal deleted inserted replaced
2465:a78e782fa9eb 2466:451426046a14
14 PRG_CFG = codec-cfg 14 PRG_CFG = codec-cfg
15 15
16 #prefix = /usr/local 16 #prefix = /usr/local
17 BINDIR = ${prefix}/bin 17 BINDIR = ${prefix}/bin
18 # BINDIR = /usr/local/bin 18 # BINDIR = /usr/local/bin
19
20 # a BSD compatible 'install' program
21 INSTALL = install
22
19 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 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
20 OBJS = $(SRCS:.c=.o) 24 OBJS = $(SRCS:.c=.o)
21 CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader -Ilibvo $(CSS_INC) $(EXTRA_INC) $(MADLIB_INC) # -Wall 25 CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader -Ilibvo $(EXTRA_INC) $(MADLIB_INC) # -Wall
22 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 $(ALSA_LIB) $(ESD_LIB) $(MADLIB_LIB) $(SGI_AUDIO_LIB) 26 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 $(ALSA_LIB) $(ESD_LIB) $(MADLIB_LIB) $(SGI_AUDIO_LIB)
23 VO_LIBS = -Llibvo -lvo $(MLIB_LIB) $(X_LIBS) 27 VO_LIBS = -Llibvo -lvo $(MLIB_LIB) $(X_LIBS)
24 OSDEP_LIBS = -Llinux -losdep 28 OSDEP_LIBS = -Llinux -losdep
25 PP_LIBS = -Lpostproc -lpostproc 29 PP_LIBS = -Lpostproc -lpostproc
26 XA_LIBS = -Lxa -lxa 30 XA_LIBS = -Lxa -lxa
133 $(PRG_CFG): version.h codec-cfg.c codec-cfg.h 137 $(PRG_CFG): version.h codec-cfg.c codec-cfg.h
134 $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML 138 $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML
135 139
136 install: $(ALL_PRG) 140 install: $(ALL_PRG)
137 if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi 141 if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi
138 install -m 755 -s $(PRG) $(BINDIR)/$(PRG) 142 $(INSTALL) -m 755 -s $(PRG) $(BINDIR)/$(PRG)
139 ifeq ($(GUI),yes) 143 ifeq ($(GUI),yes)
140 -ln -sf $(BINDIR)/$(PRG) $(BINDIR)/gmplayer 144 -ln -sf $(BINDIR)/$(PRG) $(BINDIR)/gmplayer
141 endif 145 endif
142 if test ! -d $(prefix)/man/man1 ; then mkdir -p $(prefix)/man/man1; fi 146 if test ! -d $(prefix)/man/man1 ; then mkdir -p $(prefix)/man/man1; fi
143 install -c -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1 147 $(INSTALL) -c -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
144 ifeq ($(CSS_USE),yes) 148 ifeq ($(CSS_USE),yes)
145 @echo "Following task requires root privs. If it fails don't panic" 149 @echo "Following task requires root privs. If it fails don't panic"
146 @echo "however it means you can't use fibmap_mplayer." 150 @echo "however it means you can't use fibmap_mplayer."
147 @echo "Without this (or without running mplayer as root) you won't be" 151 @echo "Without this (or without running mplayer as root) you won't be"
148 @echo "able to play encrypted DVDs." 152 @echo "able to play encrypted DVDs."
149 -install -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP) 153 -$(INSTALL) -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
150 endif 154 endif
151 155
152 uninstall: 156 uninstall:
153 rm -f $(BINDIR)/$(PRG) 157 rm -f $(BINDIR)/$(PRG)
154 rm -f $(BINDIR)/gmplayer 158 rm -f $(BINDIR)/gmplayer