1 # vorbis makefile configured for use with gcc on any platform
2 # $Id: Makefile.in,v 1.33 2000/07/12 09:36:17 xiphmont Exp $
4 ###############################################################################
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. #
11 ###############################################################################
14 # DO NOT EDIT BELOW! ##########################################################
15 # (unless, of course, you know what you are doing :) ##########################
18 FLAGS=-I. -I../include @CFLAGS@ -Dvorbis_size32_t='@SIZE32@'
20 DEBUG=@DEBUG@ $(FLAGS)
21 PROFILE=@PROFILE@ $(FLAGS)
24 LDFLAGS=@LDFLAGS@ $(FLAGS)
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 iir.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 iir.o
39 VF_HFILES = ../include/vorbis/vorbisfile.h ../include/vorbis/codec.h \
40 ../include/vorbis/internal.h ../include/vorbis/codebook.h \
42 VF_LFILES = vorbisfile.o
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
48 $(MAKE) target CFLAGS="$(OPT)"
51 $(MAKE) target CFLAGS="$(DEBUG)"
54 $(MAKE) target CFLAGS="$(DEBUG) -DANALYSIS"
57 $(MAKE) target CFLAGS="$(PROFILE)"
59 target: libvorbis.a vorbisfile.a psytune
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 $(LIBS)
66 $(CC) $(DEBUG) $(LDFLAGS) -c bitwise.c
67 $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST sharedbook.c\
68 -o test_sharedbook $(LIBS)
69 $(CC) $(DEBUG) $(LDFLAGS) -c sharedbook.c
70 $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST codebook.c \
71 sharedbook.o bitwise.o -o test_codebook $(LIBS)
78 libvorbis.a: $(LFILES)
79 $(AR) -r libvorbis.a $(LFILES)
82 vorbisfile.a: $(VF_LFILES)
83 $(AR) -r vorbisfile.a $(VF_LFILES)
84 $(RANLIB) vorbisfile.a
87 $(CC) $(CFLAGS) $(LDFLAGS) $(PSY_FILES) -o $@ $(LIBS)
90 $(VF_LFILES): $(VF_HFILES)
96 -rm -f *.o *.a test* *~ *.out ogg config.* tone psytune