From: Erik Walthinsen Date: Mon, 1 Jan 2001 00:34:13 +0000 (+0000) Subject: Updated makefiles for examples X-Git-Tag: RELEASE-0_1_0-SLIPSTREAM~142 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b650eb7378a12efddaa63caa3347307386502c9;p=platform%2Fupstream%2Fgstreamer.git Updated makefiles for examples Original commit message from CVS: Updated makefiles for examples --- diff --git a/examples/Makefile.am b/examples/Makefile.am new file mode 100644 index 0000000..d5100ed --- /dev/null +++ b/examples/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = autoplug helloworld helloworld2 queue queue2 queue3 queue4 therad xml diff --git a/examples/autoplug/Makefile b/examples/autoplug/Makefile index 470a9aa..a304e11 100644 --- a/examples/autoplug/Makefile +++ b/examples/autoplug/Makefile @@ -1,8 +1,7 @@ - CC = libtool gcc autoplug: autoplug.c - $(CC) -Wall `gstreamer-config --cflags --libs` `gnome-config --cflags --libs gnomeui` autoplug.c -o autoplug + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` autoplug.c -o autoplug clean: rm -f *.o autoplug diff --git a/examples/autoplug/autoplug.c b/examples/autoplug/autoplug.c index b5e2866..44e783f 100644 --- a/examples/autoplug/autoplug.c +++ b/examples/autoplug/autoplug.c @@ -4,7 +4,7 @@ static gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstElement *src) +void eos(GstElement *element) { g_print("have eos, quitting\n"); diff --git a/examples/helloworld/Makefile b/examples/helloworld/Makefile index 39fb9a5..e1da618 100644 --- a/examples/helloworld/Makefile +++ b/examples/helloworld/Makefile @@ -1,8 +1,7 @@ - CC = libtool gcc helloworld: helloworld.c - $(CC) -Wall `gstreamer-config --cflags --libs` helloworld.c -o helloworld + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` helloworld.c -o helloworld clean: rm -f *.o helloworld diff --git a/examples/helloworld2/Makefile b/examples/helloworld2/Makefile index 22e6148..8d3a653 100644 --- a/examples/helloworld2/Makefile +++ b/examples/helloworld2/Makefile @@ -1,8 +1,7 @@ - -CC = gcc +CC = libtool gcc helloworld2: helloworld2.c - $(CC) -Wall `gstreamer-config --cflags --libs` helloworld2.c -o helloworld2 + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` helloworld2.c -o helloworld2 clean: rm -f *.o helloworld2 diff --git a/examples/launch/Makefile b/examples/launch/Makefile new file mode 100644 index 0000000..58f022f --- /dev/null +++ b/examples/launch/Makefile @@ -0,0 +1,9 @@ +CC = libtool gcc + +launch: launch.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` launch.c -o launch + +clean: + rm -f *.o launch + + diff --git a/examples/queue/Makefile b/examples/queue/Makefile new file mode 100644 index 0000000..158d625 --- /dev/null +++ b/examples/queue/Makefile @@ -0,0 +1,9 @@ +CC = libtool gcc + +queue: queue.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` queue.c -o queue + +clean: + rm -f *.o queue + + diff --git a/examples/queue2/Makefile b/examples/queue2/Makefile new file mode 100644 index 0000000..1046e15 --- /dev/null +++ b/examples/queue2/Makefile @@ -0,0 +1,9 @@ +CC = libtool gcc + +queue2: queue2.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` queue2.c -o queue2 + +clean: + rm -f *.o queue2 + + diff --git a/examples/queue3/Makefile b/examples/queue3/Makefile new file mode 100644 index 0000000..3d55de9 --- /dev/null +++ b/examples/queue3/Makefile @@ -0,0 +1,9 @@ +CC = libtool gcc + +queue3: queue3.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` queue3.c -o queue3 + +clean: + rm -f *.o queue3 + + diff --git a/examples/queue4/Makefile b/examples/queue4/Makefile index fba4eba..bf8e2ef 100644 --- a/examples/queue4/Makefile +++ b/examples/queue4/Makefile @@ -1,8 +1,7 @@ - CC = libtool gcc -queue4: queue4.c - $(CC) -Wall `gstreamer-config --cflags --libs` queue4.c -o queue4 +queue4: queue4.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` queue4.c -o queue4 clean: rm -f *.o queue4 diff --git a/examples/thread/Makefile b/examples/thread/Makefile index 408cb6e..3006f9e 100644 --- a/examples/thread/Makefile +++ b/examples/thread/Makefile @@ -1,8 +1,7 @@ - -CC = gcc +CC = libtool gcc thread: thread.c - $(CC) -Wall `gstreamer-config --cflags --libs` thread.c -o thread + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` thread.c -o thread clean: rm -f *.o thread diff --git a/examples/xml/Makefile b/examples/xml/Makefile index e15dfc9..1df7ca6 100644 --- a/examples/xml/Makefile +++ b/examples/xml/Makefile @@ -1,15 +1,9 @@ - CC = libtool gcc -all: createxml runxml - -createxml: createxml.c - $(CC) -Wall `gstreamer-config --cflags --libs` createxml.c -o createxml - -runxml: runxml.c - $(CC) -Wall `gstreamer-config --cflags --libs` runxml.c -o runxml +xml: xml.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` xml.c -o xml clean: - rm -f *.o createxml runxml + rm -f *.o xml diff --git a/tests/old/examples/Makefile.am b/tests/old/examples/Makefile.am new file mode 100644 index 0000000..d5100ed --- /dev/null +++ b/tests/old/examples/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = autoplug helloworld helloworld2 queue queue2 queue3 queue4 therad xml diff --git a/tests/old/examples/autoplug/Makefile b/tests/old/examples/autoplug/Makefile index 470a9aa..a304e11 100644 --- a/tests/old/examples/autoplug/Makefile +++ b/tests/old/examples/autoplug/Makefile @@ -1,8 +1,7 @@ - CC = libtool gcc autoplug: autoplug.c - $(CC) -Wall `gstreamer-config --cflags --libs` `gnome-config --cflags --libs gnomeui` autoplug.c -o autoplug + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` autoplug.c -o autoplug clean: rm -f *.o autoplug diff --git a/tests/old/examples/autoplug/autoplug.c b/tests/old/examples/autoplug/autoplug.c index b5e2866..44e783f 100644 --- a/tests/old/examples/autoplug/autoplug.c +++ b/tests/old/examples/autoplug/autoplug.c @@ -4,7 +4,7 @@ static gboolean playing; /* eos will be called when the src element has an end of stream */ -void eos(GstElement *src) +void eos(GstElement *element) { g_print("have eos, quitting\n"); diff --git a/tests/old/examples/helloworld/Makefile b/tests/old/examples/helloworld/Makefile index 39fb9a5..e1da618 100644 --- a/tests/old/examples/helloworld/Makefile +++ b/tests/old/examples/helloworld/Makefile @@ -1,8 +1,7 @@ - CC = libtool gcc helloworld: helloworld.c - $(CC) -Wall `gstreamer-config --cflags --libs` helloworld.c -o helloworld + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` helloworld.c -o helloworld clean: rm -f *.o helloworld diff --git a/tests/old/examples/helloworld2/Makefile b/tests/old/examples/helloworld2/Makefile index 22e6148..8d3a653 100644 --- a/tests/old/examples/helloworld2/Makefile +++ b/tests/old/examples/helloworld2/Makefile @@ -1,8 +1,7 @@ - -CC = gcc +CC = libtool gcc helloworld2: helloworld2.c - $(CC) -Wall `gstreamer-config --cflags --libs` helloworld2.c -o helloworld2 + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` helloworld2.c -o helloworld2 clean: rm -f *.o helloworld2 diff --git a/tests/old/examples/launch/Makefile b/tests/old/examples/launch/Makefile new file mode 100644 index 0000000..58f022f --- /dev/null +++ b/tests/old/examples/launch/Makefile @@ -0,0 +1,9 @@ +CC = libtool gcc + +launch: launch.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` launch.c -o launch + +clean: + rm -f *.o launch + + diff --git a/tests/old/examples/queue/Makefile b/tests/old/examples/queue/Makefile new file mode 100644 index 0000000..158d625 --- /dev/null +++ b/tests/old/examples/queue/Makefile @@ -0,0 +1,9 @@ +CC = libtool gcc + +queue: queue.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` queue.c -o queue + +clean: + rm -f *.o queue + + diff --git a/tests/old/examples/queue2/Makefile b/tests/old/examples/queue2/Makefile new file mode 100644 index 0000000..1046e15 --- /dev/null +++ b/tests/old/examples/queue2/Makefile @@ -0,0 +1,9 @@ +CC = libtool gcc + +queue2: queue2.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` queue2.c -o queue2 + +clean: + rm -f *.o queue2 + + diff --git a/tests/old/examples/queue3/Makefile b/tests/old/examples/queue3/Makefile new file mode 100644 index 0000000..3d55de9 --- /dev/null +++ b/tests/old/examples/queue3/Makefile @@ -0,0 +1,9 @@ +CC = libtool gcc + +queue3: queue3.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` queue3.c -o queue3 + +clean: + rm -f *.o queue3 + + diff --git a/tests/old/examples/queue4/Makefile b/tests/old/examples/queue4/Makefile index fba4eba..bf8e2ef 100644 --- a/tests/old/examples/queue4/Makefile +++ b/tests/old/examples/queue4/Makefile @@ -1,8 +1,7 @@ - CC = libtool gcc -queue4: queue4.c - $(CC) -Wall `gstreamer-config --cflags --libs` queue4.c -o queue4 +queue4: queue4.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` queue4.c -o queue4 clean: rm -f *.o queue4 diff --git a/tests/old/examples/thread/Makefile b/tests/old/examples/thread/Makefile index 408cb6e..3006f9e 100644 --- a/tests/old/examples/thread/Makefile +++ b/tests/old/examples/thread/Makefile @@ -1,8 +1,7 @@ - -CC = gcc +CC = libtool gcc thread: thread.c - $(CC) -Wall `gstreamer-config --cflags --libs` thread.c -o thread + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` thread.c -o thread clean: rm -f *.o thread diff --git a/tests/old/examples/xml/Makefile b/tests/old/examples/xml/Makefile index e15dfc9..1df7ca6 100644 --- a/tests/old/examples/xml/Makefile +++ b/tests/old/examples/xml/Makefile @@ -1,15 +1,9 @@ - CC = libtool gcc -all: createxml runxml - -createxml: createxml.c - $(CC) -Wall `gstreamer-config --cflags --libs` createxml.c -o createxml - -runxml: runxml.c - $(CC) -Wall `gstreamer-config --cflags --libs` runxml.c -o runxml +xml: xml.c + $(CC) -Wall -I../../ ../../gst/libgst.la `gnome-config --cflags --libs gnomeui` xml.c -o xml clean: - rm -f *.o createxml runxml + rm -f *.o xml