Mercurial > mplayer.hg
diff Makefile @ 8467:3ca9cc46df5c
Fallback to builtin (generated from etc/codecs.conf at compile time)
codecs.conf if no ext configfile found.
Based on patch by Sidik Isani <lksi@cfht.hawaii.edu>
author | arpi |
---|---|
date | Sun, 15 Dec 2002 23:45:19 +0000 |
parents | 6dd42a044681 |
children | 9d143176d95f |
line wrap: on
line diff
--- a/Makefile Sun Dec 15 21:59:05 2002 +0000 +++ b/Makefile Sun Dec 15 23:45:19 2002 +0000 @@ -223,6 +223,11 @@ $(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) libmpcodecs/libmpencoders.a $(COMMON_LIBS) $(EXTRA_LIB) $(ENCORE_LIB) $(MLIB_LIB) $(LIRC_LIB) $(ARCH_LIB) -lm endif +codecs.conf.h: $(PRG_CFG) + ./$(PRG_CFG) ./etc/codecs.conf > $@ + +codec-cfg.o: codecs.conf.h + # Every mplayer dependency depends on version.h, to force building version.h # first (in serial mode) before any other of the dependencies for a parallel make # run. This is necessary, because the make rule for version.h removes objects @@ -293,11 +298,11 @@ @echo "Uninstall completed" clean: - -rm -f *.o *~ $(OBJS) + -rm -f *.o *~ $(OBJS) codecs.conf.h distclean: -rm -f *~ $(PRG) $(PRG_FIBMAP) $(PRG_MENCODER) $(OBJS) - -rm -f *.o *.a .depend configure.log + -rm -f *.o *.a .depend configure.log codecs.conf.h @for a in $(PARTS); do $(MAKE) -C $$a distclean; done strip: @@ -307,7 +312,7 @@ depend: ./version.sh `$(CC) -dumpversion` - $(CC) -MM $(CFLAGS) mplayer.c mencoder.c $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend + $(CC) -MM $(CFLAGS) -DCODECS2HTML mplayer.c mencoder.c $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend @for a in $(PARTS); do $(MAKE) -C $$a dep; done # ./configure must be run if it changed in CVS