1 # $Id: Makefile.in,v 1.14 2000/07/17 12:55:37 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 @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 ../lib/sharedbook.o
31 ALLOFILES = $(OFILES) lspdata.o genericdata.o train.o build.o run.o\
32 cascade.o partition.o metrics.o residuedata.o latticebuild.o\
33 latticepare.o latticehint.o latticetune.o
36 $(MAKE) target CFLAGS="$(OPT)"
39 $(MAKE) target CFLAGS="$(DEBUG)"
42 $(MAKE) target CFLAGS="$(PROFILE)"
44 target: lspvqtrain genericvqtrain residuevqtrain vqbuild vqcascade vqmetrics latticebuild latticepare latticehint latticetune
46 lspvqtrain: $(OFILES) lspdata.o train.o
47 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
49 residuevqtrain: $(OFILES) residuedata.o train.o
50 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
52 genericvqtrain: $(OFILES) genericdata.o train.o
53 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
55 vqbuild: $(OFILES) build.o
56 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
58 vqcascade: $(OFILES) run.o cascade.o
59 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
61 vqmetrics: $(OFILES) run.o metrics.o
62 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
64 latticebuild: $(OFILES) latticebuild.o
65 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
67 latticehint: $(OFILES) latticehint.o
68 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
70 latticepare: $(OFILES) latticepare.o
71 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
73 latticetune: $(OFILES) latticetune.o
74 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
77 $(ALLOFILES): $(HFILES)
85 -rm -f *.o *.a test* *~ *.out *.m config.* \
86 lspvqtrain genericvqtrain residuevqtrain\
87 vqbuild vqmetrics latticebuild vqcascade latticepare