1 # vorbis makefile configured for use with gcc on any platform
3 # $Id: Makefile.in,v 1.21 2000/01/12 11:34:39 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 ../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
38 $(MAKE) target CFLAGS="$(OPT)"
41 $(MAKE) target CFLAGS="$(DEBUG)"
44 $(MAKE) target CFLAGS="$(DEBUG) -DANALYSIS"
47 $(MAKE) target CFLAGS="$(PROFILE)"
49 target: libvorbis.a vorbisfile.a
53 $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing
54 $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST bitwise.c\
56 $(CC) $(DEBUG) $(LDFLAGS) -c bitwise.c
57 $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST codebook.c bitwise.o\
64 libvorbis.a: $(LFILES)
65 $(AR) -r libvorbis.a $^
68 vorbisfile.a: $(LFILES)
69 $(AR) -r vorbisfile.a $^
70 $(RANLIB) vorbisfile.a
79 -rm -f *.o *.a test* *~ *.out ogg config.* tone