libtool wants -all-static. -static makes it link statically only against
[platform/upstream/libvorbis.git] / examples / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = foreign
4
5 INCLUDES = -I$(top_srcdir)/include @OGG_CFLAGS@
6
7 noinst_PROGRAMS = decoder_example encoder_example chaining_example\
8                 vorbisfile_example seeking_example
9
10 LDFLAGS = -all-static
11 LDADD = ../lib/libvorbis.la
12
13 decoder_example_SOURCES = decoder_example.c
14 encoder_example_SOURCES = encoder_example.c
15 encoder_example_LDADD = ../lib/libvorbisenc.la ../lib/libvorbis.la 
16 chaining_example_SOURCES = chaining_example.c
17 chaining_example_LDADD = ../lib/libvorbisfile.la ../lib/libvorbis.la 
18 vorbisfile_example_SOURCES = vorbisfile_example.c
19 vorbisfile_example_LDADD = ../lib/libvorbisfile.la ../lib/libvorbis.la 
20 seeking_example_SOURCES = seeking_example.c
21 seeking_example_LDADD = ../lib/libvorbisfile.la ../lib/libvorbis.la 
22
23 debug:
24         $(MAKE) all CFLAGS="@DEBUG@"
25
26 profile:
27         $(MAKE) all CFLAGS="@PROFILE@"