comparison 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
comparison
equal deleted inserted replaced
8466:ab7c1be4ba74 8467:3ca9cc46df5c
220 ifeq ($(MENCODER),yes) 220 ifeq ($(MENCODER),yes)
221 $(PRG_MENCODER): $(MENCODER_DEP) 221 $(PRG_MENCODER): $(MENCODER_DEP)
222 ./darwinfixlib.sh $(MENCODER_DEP) libmpcodecs/libmpencoders.a 222 ./darwinfixlib.sh $(MENCODER_DEP) libmpcodecs/libmpencoders.a
223 $(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) libmpcodecs/libmpencoders.a $(COMMON_LIBS) $(EXTRA_LIB) $(ENCORE_LIB) $(MLIB_LIB) $(LIRC_LIB) $(ARCH_LIB) -lm 223 $(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) libmpcodecs/libmpencoders.a $(COMMON_LIBS) $(EXTRA_LIB) $(ENCORE_LIB) $(MLIB_LIB) $(LIRC_LIB) $(ARCH_LIB) -lm
224 endif 224 endif
225
226 codecs.conf.h: $(PRG_CFG)
227 ./$(PRG_CFG) ./etc/codecs.conf > $@
228
229 codec-cfg.o: codecs.conf.h
225 230
226 # Every mplayer dependency depends on version.h, to force building version.h 231 # Every mplayer dependency depends on version.h, to force building version.h
227 # first (in serial mode) before any other of the dependencies for a parallel make 232 # first (in serial mode) before any other of the dependencies for a parallel make
228 # run. This is necessary, because the make rule for version.h removes objects 233 # run. This is necessary, because the make rule for version.h removes objects
229 # in a recursive "make distclean" and we must wait for this "make distclean" to 234 # in a recursive "make distclean" and we must wait for this "make distclean" to
291 -rm -f $(BINDIR)/$(PRG_FIBMAP) 296 -rm -f $(BINDIR)/$(PRG_FIBMAP)
292 -rm -f $(BINDIR)/$(PRG_MENCODER) $(MANDIR)/man1/mencoder.1 297 -rm -f $(BINDIR)/$(PRG_MENCODER) $(MANDIR)/man1/mencoder.1
293 @echo "Uninstall completed" 298 @echo "Uninstall completed"
294 299
295 clean: 300 clean:
296 -rm -f *.o *~ $(OBJS) 301 -rm -f *.o *~ $(OBJS) codecs.conf.h
297 302
298 distclean: 303 distclean:
299 -rm -f *~ $(PRG) $(PRG_FIBMAP) $(PRG_MENCODER) $(OBJS) 304 -rm -f *~ $(PRG) $(PRG_FIBMAP) $(PRG_MENCODER) $(OBJS)
300 -rm -f *.o *.a .depend configure.log 305 -rm -f *.o *.a .depend configure.log codecs.conf.h
301 @for a in $(PARTS); do $(MAKE) -C $$a distclean; done 306 @for a in $(PARTS); do $(MAKE) -C $$a distclean; done
302 307
303 strip: 308 strip:
304 strip -s $(ALL_PRG) 309 strip -s $(ALL_PRG)
305 310
306 dep: depend 311 dep: depend
307 312
308 depend: 313 depend:
309 ./version.sh `$(CC) -dumpversion` 314 ./version.sh `$(CC) -dumpversion`
310 $(CC) -MM $(CFLAGS) mplayer.c mencoder.c $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend 315 $(CC) -MM $(CFLAGS) -DCODECS2HTML mplayer.c mencoder.c $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend
311 @for a in $(PARTS); do $(MAKE) -C $$a dep; done 316 @for a in $(PARTS); do $(MAKE) -C $$a dep; done
312 317
313 # ./configure must be run if it changed in CVS 318 # ./configure must be run if it changed in CVS
314 config.h: configure 319 config.h: configure
315 @echo "############################################################" 320 @echo "############################################################"