Updated makefiles for examples

Original commit message from CVS:
Updated makefiles for examples
This commit is contained in:
Erik Walthinsen 2001-01-01 00:34:13 +00:00
parent e0aa5bae14
commit 0b650eb737
24 changed files with 98 additions and 46 deletions

1
examples/Makefile.am Normal file
View file

@ -0,0 +1 @@
SUBDIRS = autoplug helloworld helloworld2 queue queue2 queue3 queue4 therad xml

View file

@ -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

View file

@ -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");

View file

@ -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

View file

@ -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

9
examples/launch/Makefile Normal file
View file

@ -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

9
examples/queue/Makefile Normal file
View file

@ -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

9
examples/queue2/Makefile Normal file
View file

@ -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

9
examples/queue3/Makefile Normal file
View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -0,0 +1 @@
SUBDIRS = autoplug helloworld helloworld2 queue queue2 queue3 queue4 therad xml

View file

@ -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

View file

@ -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");

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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