Envelope infrastructure now in place. Basic preecho running (but
[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.6 1999/08/07 00:09:13 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. @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 OFILES =        framing.o mdct.o smallft.o block.o envelope.o window.o
31 TARGETFILES =   libvorbis.a
32
33 all:
34         $(MAKE) target CFLAGS="$(OPT)" 
35
36 debug: 
37         $(MAKE) target CFLAGS="$(DEBUG)"
38
39 profile: 
40         $(MAKE) target CFLAGS="$(PROFILE)"
41
42 selftest:       
43         $(MAKE) clean
44         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing 
45         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST bitwise.c\
46                 -o test_bitwise -lm
47         $(CC) $(DEBUG) -c envelope.c mdct.c window.c
48         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST envelope.o mdct.o window.c\
49                         block.c -o test_blocking -lm
50
51         @echo
52         @./test_framing
53         @./test_bitwise
54         @./test_blocking
55
56 target: $(TARGETFILES)
57
58 libvorbis.a:    $(OFILES)       
59                 $(AR) -r libvorbis.a $(OFILES)
60                 $(RANLIB) libvorbis.a
61
62 $(OFILES):      mdct.h
63
64 .c.o:
65         $(CC) $(CFLAGS) -c $<
66
67 clean:
68         -rm -f *.o *.a test* *~ *.out ogg config.*