1 # vorbis makefile configured for use with gcc on any platform
3 # $Id: Makefile.in,v 1.26 2000/05/08 20:49:47 xiphmont Exp $
5 ###############################################################################
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. #
12 ###############################################################################
15 # DO NOT EDIT BELOW! ##########################################################
16 # (unless, of course, you know what you are doing :) ##########################
19 FLAGS=-I. -I../include @TYPESIZES@ @CFLAGS@
21 DEBUG=@DEBUG@ $(FLAGS)
22 PROFILE=@PROFILE@ $(FLAGS)
25 LDFLAGS=@LDFLAGS@ $(FLAGS)
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 \
43 VF_LFILES = vorbisfile.o
46 $(MAKE) target CFLAGS="$(OPT)"
49 $(MAKE) target CFLAGS="$(DEBUG)"
52 $(MAKE) target CFLAGS="$(DEBUG) -DANALYSIS"
55 $(MAKE) target CFLAGS="$(PROFILE)"
57 target: libvorbis.a vorbisfile.a psytune
61 $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing
62 $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST bitwise.c\
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
76 libvorbis.a: $(LFILES)
77 $(AR) -r libvorbis.a $^
80 vorbisfile.a: $(VF_LFILES)
81 $(AR) -r vorbisfile.a $^
82 $(RANLIB) vorbisfile.a
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)
90 $(VF_LFILES): $(VF_HFILES)
96 -rm -f *.o *.a test* *~ *.out ogg config.* tone