1 # vorbis makefile configured for use with gcc on any platform
3 # $Id: Makefile.in,v 1.15 1999/11/17 03:52:56 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. @TYPESIZES@ @CFLAGS@
21 DEBUG=@DEBUG@ $(FLAGS)
22 PROFILE=@PROFILE@ $(FLAGS)
25 LDFLAGS=@LDFLAGS@ $(FLAGS)
30 HFILES = mdct.h codec.h bitwise.h envelope.h lpc.h lsp.h \
31 psy.h smallft.h window.h xlogmap.h os.h
32 LFILES = framing.o mdct.o smallft.o block.o envelope.o window.o\
33 lsp.o lpc.o analysis.o synthesis.o psy.o info.o bitwise.o\
36 EFILES = encoder_example.o decoder_example.o chaining_example.o
37 BINFILES = encoder_example decoder_example chaining_example
40 $(MAKE) target CFLAGS="$(OPT)"
43 $(MAKE) target CFLAGS="$(DEBUG)"
46 $(MAKE) target CFLAGS="$(DEBUG) -DANALYSIS"
49 $(MAKE) target CFLAGS="$(PROFILE)"
51 target: libvorbis.a vorbisfile.a $(BINFILES)
55 $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing
56 $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST bitwise.c\
62 encoder_example: $(EFILES) libvorbis.a
63 $(CC) $(CFLAGS) $(LDFLAGS) encoder_example.o libvorbis.a -o \
66 decoder_example: $(EFILES) libvorbis.a
67 $(CC) $(CFLAGS) $(LDFLAGS) decoder_example.o libvorbis.a -o \
70 chaining_example: $(EFILES) libvorbis.a vorbisfile.a
71 $(CC) $(CFLAGS) $(LDFLAGS) chaining_example.o \
72 vorbisfile.a libvorbis.a -o chaining_example -lm
74 libvorbis.a: $(LFILES)
75 $(AR) -r libvorbis.a $^
78 vorbisfile.a: $(FFILES)
79 $(AR) -r vorbisfile.a $^
80 $(RANLIB) vorbisfile.a
84 $(FFILES): $(HFILES) vorbisfile.h
85 $(EFILES): $(HFILES) vorbisfile.h
93 -rm -f *.o *.a test* *~ *.out ogg config.* $(BINFILES) tone