1 # $Id: Makefile.in,v 1.6 2000/01/05 10:14:53 xiphmont Exp $
3 ###############################################################################
5 # To build a production vorbis (preferrably using gmake), just type 'make'. #
6 # To build with debugging or profiling information, use 'make debug' or #
7 # 'make profile' respectively. 'make clean' is a good idea between builds #
8 # with different target names, or before a final build. #
10 ###############################################################################
13 # DO NOT EDIT BELOW! ##########################################################
14 # (unless, of course, you know what you are doing :) ##########################
17 FLAGS=-I. -I../include @TYPESIZES@ @CFLAGS@
19 DEBUG=@DEBUG@ $(FLAGS)
20 PROFILE=@PROFILE@ $(FLAGS)
23 LDFLAGS=@LDFLAGS@ $(FLAGS)
28 HFILES = ../include/vorbis/codebook.h vqgen.h vqext.h bookutil.h
30 OFILES = vqgen.o vqsplit.o bookutil.o
31 ALLOFILES = $(OFILES) lspdata.o genericdata.o train.o build.o run.o\
35 $(MAKE) target CFLAGS="$(OPT)"
38 $(MAKE) target CFLAGS="$(DEBUG)"
41 $(MAKE) target CFLAGS="$(PROFILE)"
43 target: lspvqtrain genericvqtrain vqbuild vqcascade
45 lspvqtrain: $(OFILES) lspdata.o train.o
46 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
48 genericvqtrain: $(OFILES) genericdata.o train.o
49 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
51 vqbuild: $(OFILES) build.o
52 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
54 vqcascade: $(OFILES) run.o cascade.o
55 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
57 $(ALLOFILES): $(HFILES)
65 -rm -f *.o *.a test* *~ *.out *.m config.* \