comparison Makefile @ 26855:a8a0d256c7fc

cosmetics: Move some rules to better places.
author diego
date Tue, 27 May 2008 11:19:35 +0000
parents eb5b4fe783a0
children 05d19389ba59
comparison
equal deleted inserted replaced
26854:eb5b4fe783a0 26855:a8a0d256c7fc
734 $(HOST_CC) -O -I. -DCODECS2HTML $< -o $@ 734 $(HOST_CC) -O -I. -DCODECS2HTML $< -o $@
735 735
736 codecs.conf.h: codec-cfg$(EXESUF) etc/codecs.conf 736 codecs.conf.h: codec-cfg$(EXESUF) etc/codecs.conf
737 ./codec-cfg$(EXESUF) ./etc/codecs.conf > $@ 737 ./codec-cfg$(EXESUF) ./etc/codecs.conf > $@
738 738
739 codecs2html$(EXESUF): mp_msg-mencoder.o
740 $(CC) -I. -DCODECS2HTML codec-cfg.c $^ -o $@
741
742 osdep/mplayer-rc.o: osdep/mplayer.rc version.h
743 $(WINDRES) -I. -o $@ $<
744
745 # ./configure must be rerun if it changed 739 # ./configure must be rerun if it changed
746 config.mak: configure 740 config.mak: configure
747 @echo "############################################################" 741 @echo "############################################################"
748 @echo "####### Please run ./configure again - it's changed! #######" 742 @echo "####### Please run ./configure again - it's changed! #######"
749 @echo "############################################################" 743 @echo "############################################################"
750
751 # rebuild version.h each time the working copy is updated
752 ifeq ($(wildcard .svn/entries),.svn/entries)
753 version.h: .svn/entries
754 endif
755 version.h:
756 ./version.sh `$(CC) -dumpversion`
757 744
758 help_mp.h: help/help_mp-en.h $(HELP_FILE) 745 help_mp.h: help/help_mp-en.h $(HELP_FILE)
759 @echo '// WARNING! This is a generated file. Do NOT edit.' > $@ 746 @echo '// WARNING! This is a generated file. Do NOT edit.' > $@
760 @echo '// See the help/ subdir for the editable files.' >> $@ 747 @echo '// See the help/ subdir for the editable files.' >> $@
761 @echo '#ifndef MPLAYER_HELP_MP_H' >> $@ 748 @echo '#ifndef MPLAYER_HELP_MP_H' >> $@
766 @echo '#endif /* MPLAYER_HELP_MP_H */' >> $@ 753 @echo '#endif /* MPLAYER_HELP_MP_H */' >> $@
767 ifneq ($(CHARSET),UTF-8) 754 ifneq ($(CHARSET),UTF-8)
768 iconv -f UTF-8 -t $(CHARSET) $@ > $@.tmp; mv $@.tmp $@ 755 iconv -f UTF-8 -t $(CHARSET) $@ > $@.tmp; mv $@.tmp $@
769 endif 756 endif
770 757
758 # rebuild version.h each time the working copy is updated
759 ifeq ($(wildcard .svn/entries),.svn/entries)
760 version.h: .svn/entries
761 endif
762 version.h:
763 ./version.sh `$(CC) -dumpversion`
764
765 osdep/mplayer-rc.o: osdep/mplayer.rc version.h
766 $(WINDRES) -I. -o $@ $<
767
771 768
772 769
773 ###### dependency declarations / specific CFLAGS ###### 770 ###### dependency declarations / specific CFLAGS ######
774 771
775 codec-cfg.d: codecs.conf.h 772 codec-cfg.d: codecs.conf.h
875 872
876 873
877 ###### tests / tools ####### 874 ###### tests / tools #######
878 875
879 TEST_OBJS = mp_msg-mencoder.o mp_fifo.o osdep/$(GETCH) osdep/$(TIMER) -ltermcap -lm 876 TEST_OBJS = mp_msg-mencoder.o mp_fifo.o osdep/$(GETCH) osdep/$(TIMER) -ltermcap -lm
877
878 codecs2html$(EXESUF): mp_msg-mencoder.o
879 $(CC) -I. -DCODECS2HTML codec-cfg.c $^ -o $@
880 880
881 codec-cfg-test$(EXESUF): codec-cfg.c codecs.conf.h codec-cfg.h $(TEST_OBJS) 881 codec-cfg-test$(EXESUF): codec-cfg.c codecs.conf.h codec-cfg.h $(TEST_OBJS)
882 $(CC) -I. -DTESTING -o $@ $< $(TEST_OBJS) 882 $(CC) -I. -DTESTING -o $@ $< $(TEST_OBJS)
883 883
884 liba52/test$(EXESUF): liba52/test.c cpudetect.o $(filter liba52/%,$(SRCS_COMMON:.c=.o)) 884 liba52/test$(EXESUF): liba52/test.c cpudetect.o $(filter liba52/%,$(SRCS_COMMON:.c=.o))