[xiph-commits] r10346 - trunk/xiph-rtp

giles at svn.xiph.org giles at svn.xiph.org
Sat Nov 5 16:25:26 PST 2005


Author: giles
Date: 2005-11-05 16:25:25 -0800 (Sat, 05 Nov 2005)
New Revision: 10346

Added:
   trunk/xiph-rtp/Makefile
Log:
Add a simple GNU makefile to build the reference code.


Added: trunk/xiph-rtp/Makefile
===================================================================
--- trunk/xiph-rtp/Makefile	2005-11-05 23:37:18 UTC (rev 10345)
+++ trunk/xiph-rtp/Makefile	2005-11-06 00:25:25 UTC (rev 10346)
@@ -0,0 +1,28 @@
+# GNU Makefile for xiph rtp example code
+
+CC = gcc -g -O2 -Wall
+PROGS = vorbisrtp vorbisrtp-client theorartp-client
+
+OGG_CFLAGS = $(shell pkg-config --cflags ogg)
+OGG_LIBS = $(shell pkg-config --libs ogg)
+VORBIS_CFLAGS = $(shell pkg-config --cflags vorbis)
+VORBIS_LIBS = $(shell pkg-config --libs vorbis)
+THEORA_CFLAGS = $(shell pkg-config --cflags theora)
+THEORA_LIBS = $(shell pkg-config --libs theora)
+
+all : $(PROGS)
+
+clean:
+	-$(RM) *.o
+	-$(RM) $(PROGS)
+
+vorbisrtp : vorbisrtp.c
+	$(CC) -fpack-struct -o $@ $(OGG_CFLAGS) $(VORBIS_CFLAGS) \
+		$< $(VORBIS_LIBS) $(OGG_LIBS)
+
+vorbisrtp-client : vorbisrtp-client.c
+	$(CC) -fpack-struct -o $@ $(OGG_CFLAGS) $(VORBIS_CFLAGS) \
+		$< $(VORBIS_LIBS) $(OGG_LIBS)
+
+theorartp-client :theorartp-client.c
+	$(CC) -fpack-struct -o $@ $(OGG_CFLAGS) $< $(OGG_LIBS)



More information about the commits mailing list