Collect training data from the lib when compiled with -DTRAIN
[platform/upstream/libvorbis.git] / examples / Makefile.in
1 # vorbis makefile configured for use with gcc on any platform
2
3 # $Id: Makefile.in,v 1.5 2000/02/12 08:33:00 xiphmont Exp $
4
5 ###############################################################################
6 #                                                                             #
7 # To build a production vorbis (preferrably using gmake), just type 'make'.   #
8 # To build with debugging or profiling information, use 'make debug' or       #
9 # 'make profile' respectively.  'make clean' is a good idea between builds    #
10 # with different target names, or before a final build.                       #
11 #                                                                             #
12 ###############################################################################
13
14
15 # DO NOT EDIT BELOW! ##########################################################
16 # (unless, of course, you know what you are doing :) ##########################
17
18 @SET_MAKE@
19 FLAGS=-I. -I../include @TYPESIZES@ @CFLAGS@ 
20 OPT=@OPT@ $(FLAGS)
21 DEBUG=@DEBUG@ $(FLAGS)
22 PROFILE=@PROFILE@ $(FLAGS)
23 CC=@CC@
24 LD=@CC@
25 LDFLAGS=@LDFLAGS@ $(FLAGS)
26 AR=@AR@
27 RANLIB=@RANLIB@
28 LIBS=@LIBS@ -lm
29
30 HFILES =        ../include/vorbis/codec.h ../include/vorbis/vorbisfile.h \
31                 ../include/vorbis/internal.h ../include/vorbis/backends.h \
32                 ../include/vorbis/codebook.h
33 OFILES =        encoder_example.o decoder_example.o chaining_example.o
34 BINFILES =      encoder_example decoder_example chaining_example
35
36 all:
37         $(MAKE) target CFLAGS="$(OPT)"
38
39 debug:  
40         $(MAKE) target CFLAGS="$(DEBUG)"
41
42 profile: 
43         $(MAKE) target CFLAGS="$(PROFILE)"
44
45 target: $(BINFILES)
46
47 encoder_example.o:      ../include/vorbis/modes.h
48
49 encoder_example:        $(OFILES) ../lib/libvorbis.a
50         $(CC) $(CFLAGS) $(LDFLAGS) encoder_example.o ../lib/libvorbis.a -o \
51                         encoder_example -lm
52
53 decoder_example:        $(OFILES) ../lib/libvorbis.a
54         $(CC) $(CFLAGS) $(LDFLAGS) decoder_example.o ../lib/libvorbis.a -o \
55                         decoder_example -lm
56
57 chaining_example:       $(OFILES) ../lib/libvorbis.a ../lib/vorbisfile.a
58         $(CC) $(CFLAGS) $(LDFLAGS) chaining_example.o \
59                         ../lib/vorbisfile.a ../lib/libvorbis.a \
60                         -o chaining_example -lm
61
62 $(OFILES):      $(HFILES)
63
64 .c.o:
65         $(CC) $(CFLAGS) -c $<
66
67 clean:
68         -rm -f *.o *.a test* *~ *.out ogg config.* \
69                 encoder_example decoder_example chaining_example
70
71 distclean:      clean
72         -rm -f Makefile
73