1 # vorbis makefile configured for use with gcc on any platform
3 # $Id: Makefile.in,v 1.2 2000/01/05 03:10:23 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 OFILES = encoder_example.o decoder_example.o chaining_example.o
32 BINFILES = encoder_example decoder_example chaining_example
35 $(MAKE) target CFLAGS="$(OPT)"
38 $(MAKE) target CFLAGS="$(DEBUG)"
41 $(MAKE) target CFLAGS="$(PROFILE)"
45 encoder_example: $(OFILES) ../lib/libvorbis.a
46 $(CC) $(CFLAGS) $(LDFLAGS) encoder_example.o ../lib/libvorbis.a -o \
49 decoder_example: $(OFILES) ../lib/libvorbis.a
50 $(CC) $(CFLAGS) $(LDFLAGS) decoder_example.o ../lib/libvorbis.a -o \
53 chaining_example: $(OFILES) ../lib/libvorbis.a ../lib/vorbisfile.a
54 $(CC) $(CFLAGS) $(LDFLAGS) chaining_example.o \
55 ../lib/vorbisfile.a ../lib/libvorbis.a \
56 -o chaining_example -lm
64 -rm -f *.o *.a test* *~ *.out ogg config.* \
65 encoder_example decoder_example chaining_example