build changes to eliminate need for u_int32_t
[platform/upstream/libvorbis.git] / lib / Makefile.in
1 # vorbis makefile configured for use with gcc on any platform
2 # $Id: Makefile.in,v 1.30 2000/06/19 14:59:06 xiphmont Exp $
3
4 ###############################################################################
5 #                                                                             #
6 # To build a production vorbis (preferrably using gmake), just type 'make'.   #
7 # To build with debugging or profiling information, use 'make debug' or       #
8 # 'make profile' respectively.  'make clean' is a good idea between builds    #
9 # with different target names, or before a final build.                       #
10 #                                                                             #
11 ###############################################################################
12
13
14 # DO NOT EDIT BELOW! ##########################################################
15 # (unless, of course, you know what you are doing :) ##########################
16
17 @SET_MAKE@
18 FLAGS=-I. -I../include @CFLAGS@ -Dvorbis_size32_t='@SIZE32@'
19 OPT=@OPT@ $(FLAGS)
20 DEBUG=@DEBUG@ $(FLAGS)
21 PROFILE=@PROFILE@ $(FLAGS)
22 CC=@CC@
23 LD=@CC@
24 LDFLAGS=@LDFLAGS@ $(FLAGS)
25 AR=@AR@
26 RANLIB=@RANLIB@
27 LIBS=@LIBS@ -lm
28
29 HFILES =        ../include/vorbis/codec.h \
30                 ../include/vorbis/internal.h ../include/vorbis/backends.h \
31                 ../include/vorbis/codebook.h \
32                 bitwise.h envelope.h lpc.h lsp.h bookinternal.h misc.h\
33                 psy.h smallft.h window.h scales.h os.h mdct.h registry.h\
34                 masking.h sharedbook.h
35 LFILES =        framing.o mdct.o smallft.o block.o envelope.o window.o\
36                 lsp.o lpc.o analysis.o synthesis.o psy.o info.o bitwise.o\
37                 time0.o floor0.o res0.o mapping0.o registry.o\
38                 codebook.o sharedbook.o
39 VF_HFILES = ../include/vorbis/vorbisfile.h ../include/vorbis/codec.h \
40                 ../include/vorbis/internal.h ../include/vorbis/codebook.h \
41                 os.h misc.h
42 VF_LFILES = vorbisfile.o
43
44 PSY_FILES = mdct.o psy.o lpc.o smallft.o window.o psytune.o floor0.o \
45         bitwise.o lsp.o codebook.o sharedbook.o
46
47 all:
48         $(MAKE) target CFLAGS="$(OPT)"
49
50 debug:  
51         $(MAKE) target CFLAGS="$(DEBUG)"
52
53 analysis:       
54         $(MAKE) target CFLAGS="$(DEBUG) -DANALYSIS"
55
56 profile: 
57         $(MAKE) target CFLAGS="$(PROFILE)"
58
59 target: libvorbis.a vorbisfile.a psytune
60
61 selftest:       
62         $(MAKE) clean
63         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing 
64         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST bitwise.c\
65                 -o test_bitwise -lm
66         $(CC) $(DEBUG) $(LDFLAGS) -c bitwise.c
67         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST sharedbook.c\
68                 -o test_sharedbook -lm
69         $(CC) $(DEBUG) $(LDFLAGS) -c sharedbook.c
70         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST codebook.c \
71                 sharedbook.o bitwise.o -o test_codebook -lm
72         @echo
73         @./test_framing
74         @./test_bitwise
75         @./test_sharedbook
76         @./test_codebook
77
78 libvorbis.a:    $(LFILES)       
79                 $(AR) -r libvorbis.a $(LFILES)
80                 $(RANLIB) libvorbis.a
81
82 vorbisfile.a:   $(VF_LFILES)
83                 $(AR) -r vorbisfile.a $(VF_LFILES)
84                 $(RANLIB) vorbisfile.a
85
86 psytune:        $(PSY_FILES)
87                 $(CC) $(CFLAGS) $(LDFLAGS) $(PSY_FILES) -o $@ $(LIBS)
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