[PATCH] TOOLS: Makefile instead of c (was: Re: [MPlayer-dev-eng] documentation of TOOLS directory)

VMiklos mamajom at axelero.hu
Sat Jul 31 08:26:10 CEST 2004


On Fri, 30 Jul 2004, VMiklos wrote:

> > I guess this would be better handled by a Makefile.  Any volunteers?
> ok, i'll write one

here it is

udv / greetings

-- 
       __________     VMiklos / FrugalWare & EL Team
  ____/__/___|___\__. E-mail: mamajom at axelero dot hu
O__O  _ |   |   _  |  Homepage: http://www.vmiklos.tk
'--`-(_)'---'--(_)-'  gpg --keyserver pgp.mit.edu --recv-keys 03915096

-------------- next part --------------
diff -Naur main.orig/TOOLS/c main/TOOLS/c
--- main.orig/TOOLS/c	2004-07-31 07:48:50.000000000 +0200
+++ main/TOOLS/c	1970-01-01 01:00:00.000000000 +0100
@@ -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
diff -Naur main.orig/TOOLS/Makefile main/TOOLS/Makefile
--- main.orig/TOOLS/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ main/TOOLS/Makefile	2004-07-31 08:23:21.000000000 +0200
@@ -0,0 +1,17 @@
+all:
+	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
+
+clean: 
+	rm -f bios2dump mem2dump movinfo png2raw
+	rm -f fastmem-mmx fastmem-k6 fastmem-k7 fastmem-sse fastmem2-mmx fastmem2-k6 fastmem2-k7 fastmem2-sse


More information about the MPlayer-dev-eng mailing list