Mercurial > mplayer.hg
comparison Makefile @ 27161:b4094f8dccf0
Simplify tool generation rules with a pattern rule.
author | diego |
---|---|
date | Fri, 04 Jul 2008 14:35:44 +0000 |
parents | 0fdfa72628a1 |
children | d9b61fc3c5b7 |
comparison
equal
deleted
inserted
replaced
27160:0fdfa72628a1 | 27161:b4094f8dccf0 |
---|---|
768 ./version.sh `$(CC) -dumpversion` | 768 ./version.sh `$(CC) -dumpversion` |
769 | 769 |
770 osdep/mplayer-rc.o: osdep/mplayer.rc version.h | 770 osdep/mplayer-rc.o: osdep/mplayer.rc version.h |
771 $(WINDRES) -I. $< $@ | 771 $(WINDRES) -I. $< $@ |
772 | 772 |
773 %(EXESUF): %.c | |
774 | |
773 | 775 |
774 | 776 |
775 ###### dependency declarations / specific CFLAGS ###### | 777 ###### dependency declarations / specific CFLAGS ###### |
776 | 778 |
777 codec-cfg.d: codecs.conf.h | 779 codec-cfg.d: codecs.conf.h |
883 $(CC) -I. -DCODECS2HTML -o $@ $^ | 885 $(CC) -I. -DCODECS2HTML -o $@ $^ |
884 | 886 |
885 codec-cfg-test$(EXESUF): codec-cfg.c codecs.conf.h codec-cfg.h $(TEST_OBJS) | 887 codec-cfg-test$(EXESUF): codec-cfg.c codecs.conf.h codec-cfg.h $(TEST_OBJS) |
886 $(CC) -I. -DTESTING -o $@ $^ | 888 $(CC) -I. -DTESTING -o $@ $^ |
887 | 889 |
888 liba52/test$(EXESUF): liba52/test.c cpudetect.o $(filter liba52/%,$(SRCS_COMMON:.c=.o)) -lm | 890 liba52/test$(EXESUF): cpudetect.o $(filter liba52/%,$(SRCS_COMMON:.c=.o)) -lm |
889 | 891 |
890 libvo/aspecttest$(EXESUF): libvo/aspecttest.c libvo/aspect.o libvo/geometry.o $(TEST_OBJS) | 892 libvo/aspecttest$(EXESUF): libvo/aspect.o libvo/geometry.o $(TEST_OBJS) |
891 | 893 |
892 LOADER_TEST_OBJS = $(filter loader/%,$(SRCS_COMMON:.c=.o)) libmpdemux/aviprint.o osdep/mmap_anon.o cpudetect.o $(TEST_OBJS) | 894 LOADER_TEST_OBJS = $(filter loader/%,$(SRCS_COMMON:.c=.o)) libmpdemux/aviprint.o osdep/mmap_anon.o cpudetect.o $(TEST_OBJS) |
893 | 895 |
894 loader/qtx/list$(EXESUF) loader/qtx/qtxload$(EXESUF): CFLAGS += -g | 896 loader/qtx/list$(EXESUF) loader/qtx/qtxload$(EXESUF): CFLAGS += -g |
895 loader/qtx/list$(EXESUF): loader/qtx/list.c $(LOADER_TEST_OBJS) | 897 loader/qtx/list$(EXESUF) loader/qtx/qtxload$(EXESUF): $(LOADER_TEST_OBJS) |
896 loader/qtx/qtxload$(EXESUF): loader/qtx/qtxload.c $(LOADER_TEST_OBJS) | 898 |
897 | |
898 mp3lib/test$(EXESUF): mp3lib/test.c | |
899 mp3lib/test2$(EXESUF): mp3lib/test2.c | |
900 mp3lib/test$(EXESUF) mp3lib/test2$(EXESUF): $(filter mp3lib/%,$(SRCS_COMMON:.c=.o)) libvo/aclib.o cpudetect.o $(TEST_OBJS) | 899 mp3lib/test$(EXESUF) mp3lib/test2$(EXESUF): $(filter mp3lib/%,$(SRCS_COMMON:.c=.o)) libvo/aclib.o cpudetect.o $(TEST_OBJS) |
901 | 900 |
902 TESTS = codecs2html$(EXESUF) codec-cfg-test$(EXESUF) \ | 901 TESTS = codecs2html$(EXESUF) codec-cfg-test$(EXESUF) \ |
903 liba52/test$(EXESUF) libvo/aspecttest$(EXESUF) \ | 902 liba52/test$(EXESUF) libvo/aspecttest$(EXESUF) \ |
904 mp3lib/test$(EXESUF) mp3lib/test2$(EXESUF) | 903 mp3lib/test$(EXESUF) mp3lib/test2$(EXESUF) |
935 alltools: $(ALLTOOLS) | 934 alltools: $(ALLTOOLS) |
936 | 935 |
937 toolsclean: | 936 toolsclean: |
938 rm -f $(ALLTOOLS) TOOLS/fastmem*-* TOOLS/realcodecs/*.so.6.0 | 937 rm -f $(ALLTOOLS) TOOLS/fastmem*-* TOOLS/realcodecs/*.so.6.0 |
939 | 938 |
940 TOOLS/bmovl-test$(EXESUF): TOOLS/bmovl-test.c -lSDL_image | 939 TOOLS/bmovl-test$(EXESUF): -lSDL_image |
941 | 940 |
942 TOOLS/subrip$(EXESUF): TOOLS/subrip.c vobsub.o spudec.o unrar_exec.o \ | 941 TOOLS/subrip$(EXESUF): vobsub.o spudec.o unrar_exec.o \ |
943 libvo/aclib.o libswscale/libswscale.a libavutil/libavutil.a \ | 942 libvo/aclib.o libswscale/libswscale.a libavutil/libavutil.a \ |
944 $(TEST_OBJS) | 943 $(TEST_OBJS) |
945 | 944 |
946 TOOLS/vfw2menc$(EXESUF): TOOLS/vfw2menc.c -lwinmm -lole32 | 945 TOOLS/vfw2menc$(EXESUF): -lwinmm -lole32 |
947 | 946 |
948 mplayer-nomain.o: mplayer.c | 947 mplayer-nomain.o: mplayer.c |
949 $(CC) $(CFLAGS) -DDISABLE_MAIN -c -o $@ $< | 948 $(CC) $(CFLAGS) -DDISABLE_MAIN -c -o $@ $< |
950 | 949 |
951 TOOLS/netstream$(EXESUF): TOOLS/netstream.c | 950 TOOLS/netstream$(EXESUF): TOOLS/netstream.c |