changeset 19885:7f9b2b26e905

Replace silly compilation shell scripts by a simple Makefile.
author diego
date Mon, 18 Sep 2006 14:27:35 +0000
parents 7725b85ada9f
children 49ebd9c51a99
files TOOLS/realcodecs/14_4.sh TOOLS/realcodecs/28_8.sh TOOLS/realcodecs/HOWTO TOOLS/realcodecs/Makefile TOOLS/realcodecs/cook.sh TOOLS/realcodecs/drv2.sh TOOLS/realcodecs/drv3.sh TOOLS/realcodecs/drv4.sh TOOLS/realcodecs/rv30.sh TOOLS/realcodecs/sipr.sh
diffstat 10 files changed, 14 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/realcodecs/14_4.sh	Mon Sep 18 14:24:16 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-rm 14_4.so.6.0
-gcc -c 14_4.c -g
-ld -shared -o 14_4.so.6.0 14_4.o -ldl -lc
- 
\ No newline at end of file
--- a/TOOLS/realcodecs/28_8.sh	Mon Sep 18 14:24:16 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-rm 28_8.so.6.0
-gcc -c 28_8.c -g
-ld -shared -o 28_8.so.6.0 28_8.o -ldl -lc
- 
\ No newline at end of file
--- a/TOOLS/realcodecs/HOWTO	Mon Sep 18 14:24:16 2006 +0000
+++ b/TOOLS/realcodecs/HOWTO	Mon Sep 18 14:27:35 2006 +0000
@@ -1,6 +1,6 @@
 HOW TO get these capturers/wrappers to work:
 
 - set the path to the codecs in the C file
-- compile it with the script
+- run make
 - the orig. codecs are prepended by a "real" -> e.g. realcook.so.6.0
 - the capturer get the old name, e.g. cook.so.6.0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TOOLS/realcodecs/Makefile	Mon Sep 18 14:27:35 2006 +0000
@@ -0,0 +1,13 @@
+SRCS = 14_4.c 28_8.c cook.c drv2.c drv3.c drv4.c ra.c rv30.c sipr.c
+TARGETS = $(SRCS:.c=.so.6.0)
+
+%.o: %.c
+	cc -c $< -g
+
+%.so.6.0: %.o
+	ld -shared -o $@ $< -ldl -lc
+
+all: $(TARGETS)
+
+clean:
+	rm -f *.so.6.0
--- a/TOOLS/realcodecs/cook.sh	Mon Sep 18 14:24:16 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-rm cook.so.6.0
-gcc -c cook.c -g
-ld -shared -o cook.so.6.0 cook.o -ldl -lc
- 
\ No newline at end of file
--- a/TOOLS/realcodecs/drv2.sh	Mon Sep 18 14:24:16 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-rm drv2.so.6.0
-gcc -c drv2.c -g &&
-ld -shared -o drv2.so.6.0 drv2.o -ldl -lc
--- a/TOOLS/realcodecs/drv3.sh	Mon Sep 18 14:24:16 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-rm drv3.so.6.0
-gcc -c drv3.c -g &&
-ld -shared -o drv3.so.6.0 drv3.o -ldl -lc
--- a/TOOLS/realcodecs/drv4.sh	Mon Sep 18 14:24:16 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-rm drv4.so.6.0
-gcc -c drv4.c -g &&
-ld -shared -o drv4.so.6.0 drv4.o -ldl -lc
--- a/TOOLS/realcodecs/rv30.sh	Mon Sep 18 14:24:16 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-rm rv30.so.6.0
-gcc -c rv30.c -g
-ld -shared -o rv30.so.6.0 rv30.o -ldl -lc
--- a/TOOLS/realcodecs/sipr.sh	Mon Sep 18 14:24:16 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-rm sipr.so.6.0
-gcc -c sipr.c -g
-ld -shared -o sipr.so.6.0 sipr.o -ldl -lc
- 
\ No newline at end of file