1 # GNU Makefile for xiph rtp example code
3 CC
= gcc
-g
-O2
-Wall
-DCHECK
-DDEBUG
4 PROGS
= vorbisrtp theorartp vorbisrtp-client theorartp-client
6 vorbisrtp_SRCS
= vorbisrtp.c
7 vorbisrtp_PKGS
= ogg vorbis
9 theorartp_SRCS
= vorbisrtp.c
10 theorartp_PKGS
= ogg theora
12 vorbisrtp-client_SRCS
= vorbisrtp-client.c
13 vorbisrtp-client_PKGS
= ogg vorbis
15 theorartp-client_SRCS
= theorartp-client.c
16 theorartp-client_PKGS
= ogg
24 vorbisrtp
: vorbisrtp.c xiph_rtp.c
25 $(CC
) -o
$@
`pkg-config --cflags $($@_PKGS)` \
26 $^
`pkg-config --libs $($@_PKGS)`
28 theorartp
: theorartp.c xiph_rtp.c
29 $(CC
) -o
$@
`pkg-config --cflags $($@_PKGS)` \
30 $^
`pkg-config --libs $($@_PKGS)`
32 vorbisrtp-client
: vorbisrtp-client.c
33 $(CC
) -o
$@
`pkg-config --cflags $($@_PKGS)` \
34 $< `pkg-config --libs $($@_PKGS)`
36 theorartp-client
:theorartp-client.c
37 $(CC
) -o
$@
`pkg-config --cflags $($@_PKGS)` \
38 $< `pkg-config --libs $($@_PKGS)`