Incremental update toward VQ integration, vorbis_info rearrangement
[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.21 2000/01/12 11:34:39 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                 bitwise.h envelope.h lpc.h lsp.h bookinternal.h\
32                 psy.h smallft.h window.h scales.h os.h mdct.h
33 LFILES =        framing.o mdct.o smallft.o block.o envelope.o window.o\
34                 lsp.o lpc.o analysis.o synthesis.o psy.o info.o bitwise.o\
35                 spectrum.o codebook.o vorbisfile.o
36
37 all:
38         $(MAKE) target CFLAGS="$(OPT)"
39
40 debug:  
41         $(MAKE) target CFLAGS="$(DEBUG)"
42
43 analysis:       
44         $(MAKE) target CFLAGS="$(DEBUG) -DANALYSIS"
45
46 profile: 
47         $(MAKE) target CFLAGS="$(PROFILE)"
48
49 target: libvorbis.a vorbisfile.a
50
51 selftest:       
52         $(MAKE) clean
53         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing 
54         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST bitwise.c\
55                 -o test_bitwise -lm
56         $(CC) $(DEBUG) $(LDFLAGS) -c bitwise.c
57         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST codebook.c bitwise.o\
58                 -o test_codebook -lm
59         @echo
60         @./test_framing
61         @./test_bitwise
62         @./test_codebook
63
64 libvorbis.a:    $(LFILES)       
65                 $(AR) -r libvorbis.a $^
66                 $(RANLIB) libvorbis.a
67
68 vorbisfile.a:   $(LFILES)
69                 $(AR) -r vorbisfile.a $^
70                 $(RANLIB) vorbisfile.a
71
72
73 $(LFILES):      $(HFILES)
74
75 .c.o:
76         $(CC) $(CFLAGS) -c $<
77
78 clean:
79         -rm -f *.o *.a test* *~ *.out ogg config.* tone 
80
81 distclean:      clean
82         -rm -f Makefile
83