Fix for a small problem in ov_read() which made the code rather unreadable, and was...
[platform/upstream/libvorbis.git] / lib / Makefile.in
1 # vorbis makefile configured for use with gcc on any platform
2
3 # $Id: Makefile.in,v 1.26 2000/05/08 20:49:47 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 \
31                 ../include/vorbis/internal.h ../include/vorbis/backends.h \
32                 ../include/vorbis/codebook.h \
33                 bitwise.h envelope.h lpc.h lsp.h bookinternal.h misc.h\
34                 psy.h smallft.h window.h scales.h os.h mdct.h registry.h\
35                 masking.h sharedbook.h
36 LFILES =        framing.o mdct.o smallft.o block.o envelope.o window.o\
37                 lsp.o lpc.o analysis.o synthesis.o psy.o info.o bitwise.o\
38                 time0.o floor0.o res0.o mapping0.o registry.o\
39                 codebook.o sharedbook.o vorbisfile.o
40 VF_HFILES = ../include/vorbis/vorbisfile.h ../include/vorbis/codec.h \
41                 ../include/vorbis/internal.h ../include/vorbis/codebook.h \
42                 os.h misc.h
43 VF_LFILES = vorbisfile.o
44
45 all:
46         $(MAKE) target CFLAGS="$(OPT)"
47
48 debug:  
49         $(MAKE) target CFLAGS="$(DEBUG)"
50
51 analysis:       
52         $(MAKE) target CFLAGS="$(DEBUG) -DANALYSIS"
53
54 profile: 
55         $(MAKE) target CFLAGS="$(PROFILE)"
56
57 target: libvorbis.a vorbisfile.a psytune
58
59 selftest:       
60         $(MAKE) clean
61         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing 
62         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST bitwise.c\
63                 -o test_bitwise -lm
64         $(CC) $(DEBUG) $(LDFLAGS) -c bitwise.c
65         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST sharedbook.c\
66                 -o test_sharedbook -lm
67         $(CC) $(DEBUG) $(LDFLAGS) -c sharedbook.c
68         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST codebook.c \
69                 sharedbook.o bitwise.o -o test_codebook -lm
70         @echo
71         @./test_framing
72         @./test_bitwise
73         @./test_sharedbook
74         @./test_codebook
75
76 libvorbis.a:    $(LFILES)       
77                 $(AR) -r libvorbis.a $^
78                 $(RANLIB) libvorbis.a
79
80 vorbisfile.a:   $(VF_LFILES)
81                 $(AR) -r vorbisfile.a $^
82                 $(RANLIB) vorbisfile.a
83
84 psytune:        mdct.o psy.o lpc.o smallft.o window.o psytune.o floor0.o \
85                 bitwise.o lsp.o codebook.o sharedbook.o
86                 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
87
88
89 $(LFILES):      $(HFILES)
90 $(VF_LFILES):   $(VF_HFILES)
91
92 .c.o:
93         $(CC) $(CFLAGS) -c $<
94
95 clean:
96         -rm -f *.o *.a test* *~ *.out ogg config.* tone 
97
98 distclean:      clean
99         -rm -f Makefile
100