From ab9a6b588590f9b4bade1addf36b2dd3fc59c84e Mon Sep 17 00:00:00 2001 From: diego Date: Thu, 5 Aug 2004 00:11:54 +0000 Subject: [PATCH] Makefile replacement for compile script git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12963 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/Makefile | 26 ++++++++++++++++++++++++++ TOOLS/c | 15 --------------- 2 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 TOOLS/Makefile delete mode 100755 TOOLS/c diff --git a/TOOLS/Makefile b/TOOLS/Makefile new file mode 100644 index 0000000000..68fc356af8 --- /dev/null +++ b/TOOLS/Makefile @@ -0,0 +1,26 @@ +OBJS = asfinfo avi-fix bios2dump cpuinfo dump_mp4 mem2dump movinfo png2raw subrip fastmemcpybench + +all: $(OBJS) + +png2raw: png2raw.c + cc png2raw.c -o png2raw -lpng + +subrip: subrip.c + cc -g -I.. -o subrip subrip.c ../vobsub.o ../spudec.o ../mp_msg.o ../unrarlib.o ../postproc/swscale.o ../postproc/rgb2rgb.o ../postproc/yuv2rgb.o ../libmpcodecs/img_format.o -lm + +vivodump: vivodump.c + cc -I.. -o vivodump vivodump.c ../mp_msg.o ../libmpdemux/libmpdemux.a + +fastmemcpybench: fastmemcpybench.c + cc -g ../libvo/aclib.o -DNAME=\"mmx\" -DHAVE_MMX fastmemcpybench.c -o fastmem-mmx + cc -g ../libvo/aclib.o -DNAME=\"k6\ \" -DHAVE_3DNOW -DHAVE_MMX fastmemcpybench.c -o fastmem-k6 + cc -g ../libvo/aclib.o -DNAME=\"k7\ \" -DHAVE_MMX2 -DHAVE_3DNOW -DHAVE_MMX fastmemcpybench.c -o fastmem-k7 + cc -g ../libvo/aclib.o -DNAME=\"sse\" -DHAVE_MMX2 -DHAVE_SSE -DHAVE_MMX fastmemcpybench.c -o fastmem-sse + cc -g ../libvo/aclib.o -DNAME=\"mga-mmx\" -DHAVE_MGA -DHAVE_MMX fastmemcpybench.c -o fastmem2-mmx + cc -g ../libvo/aclib.o -DNAME=\"mga-k6\ \" -DHAVE_MGA -DHAVE_3DNOW -DHAVE_MMX fastmemcpybench.c -o fastmem2-k6 + cc -g ../libvo/aclib.o -DNAME=\"mga-k7\ \" -DHAVE_MGA -DHAVE_MMX2 -DHAVE_3DNOW -DHAVE_MMX fastmemcpybench.c -o fastmem2-k7 + cc -g ../libvo/aclib.o -DNAME=\"mga-sse\" -DHAVE_MGA -DHAVE_MMX2 -DHAVE_SSE -DHAVE_MMX fastmemcpybench.c -o fastmem2-sse + +clean: + rm -f $(OBJS) + rm -f fastmem-mmx fastmem-k6 fastmem-k7 fastmem-sse fastmem2-mmx fastmem2-k6 fastmem2-k7 fastmem2-sse diff --git a/TOOLS/c b/TOOLS/c deleted file mode 100755 index 67f948142a..0000000000 --- a/TOOLS/c +++ /dev/null @@ -1,15 +0,0 @@ -gcc bios2dump.c -o bios2dump -gcc mem2dump.c -o mem2dump -gcc movinfo.c -o movinfo - -gcc png2raw.c -o png2raw -lpng - -gcc -g -DNAME=\"mmx\" -DHAVE_MMX fastmemcpybench.c -o fastmem-mmx -gcc -g -DNAME=\"k6\ \" -DHAVE_3DNOW -DHAVE_MMX fastmemcpybench.c -o fastmem-k6 -gcc -g -DNAME=\"k7\ \" -DHAVE_MMX2 -DHAVE_3DNOW -DHAVE_MMX fastmemcpybench.c -o fastmem-k7 -gcc -g -DNAME=\"sse\" -DHAVE_MMX2 -DHAVE_SSE -DHAVE_MMX fastmemcpybench.c -o fastmem-sse - -gcc -g -DNAME=\"mga-mmx\" -DHAVE_MGA -DHAVE_MMX fastmemcpybench.c -o fastmem2-mmx -gcc -g -DNAME=\"mga-k6\ \" -DHAVE_MGA -DHAVE_3DNOW -DHAVE_MMX fastmemcpybench.c -o fastmem2-k6 -gcc -g -DNAME=\"mga-k7\ \" -DHAVE_MGA -DHAVE_MMX2 -DHAVE_3DNOW -DHAVE_MMX fastmemcpybench.c -o fastmem2-k7 -gcc -g -DNAME=\"mga-sse\" -DHAVE_MGA -DHAVE_MMX2 -DHAVE_SSE -DHAVE_MMX fastmemcpybench.c -o fastmem2-sse