more automation work
[platform/upstream/libvorbis.git] / vq / Makefile.in
1 # $Id: Makefile.in,v 1.14 2000/07/17 12:55:37 xiphmont Exp $
2
3 ###############################################################################
4 #                                                                             #
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.                       #
9 #                                                                             #
10 ###############################################################################
11
12
13 # DO NOT EDIT BELOW! ##########################################################
14 # (unless, of course, you know what you are doing :) ##########################
15
16 @SET_MAKE@
17 FLAGS=-I. -I../include @CFLAGS@
18 OPT=@OPT@ $(FLAGS)
19 DEBUG=@DEBUG@ $(FLAGS)
20 PROFILE=@PROFILE@ $(FLAGS)
21 CC=@CC@
22 LD=@CC@
23 LDFLAGS=@LDFLAGS@ $(FLAGS)
24 AR=@AR@
25 RANLIB=@RANLIB@
26 LIBS=@LIBS@ 
27
28 HFILES =        ../include/vorbis/codebook.h vqgen.h vqext.h bookutil.h
29
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
34
35 all:
36         $(MAKE) target CFLAGS="$(OPT)"
37
38 debug:  
39         $(MAKE) target CFLAGS="$(DEBUG)"
40
41 profile: 
42         $(MAKE) target CFLAGS="$(PROFILE)"
43
44 target: lspvqtrain genericvqtrain residuevqtrain vqbuild vqcascade vqmetrics latticebuild latticepare latticehint latticetune
45
46 lspvqtrain:     $(OFILES) lspdata.o train.o
47         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
48
49 residuevqtrain: $(OFILES) residuedata.o train.o
50         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
51
52 genericvqtrain: $(OFILES) genericdata.o train.o
53         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
54
55 vqbuild:        $(OFILES) build.o
56         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
57
58 vqcascade:      $(OFILES) run.o cascade.o
59         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
60
61 vqmetrics:      $(OFILES) run.o metrics.o
62         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
63
64 latticebuild:   $(OFILES) latticebuild.o
65         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
66
67 latticehint:    $(OFILES) latticehint.o
68         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
69
70 latticepare:    $(OFILES) latticepare.o
71         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
72
73 latticetune:    $(OFILES) latticetune.o
74         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
75
76
77 $(ALLOFILES):   $(HFILES)
78
79 .c.o:
80         $(CC) $(CFLAGS) -c $<
81
82 $(OFILES):      $(HFILES)
83
84 clean:
85         -rm -f *.o *.a test* *~ *.out *.m config.* \
86                 lspvqtrain genericvqtrain residuevqtrain\
87                 vqbuild vqmetrics latticebuild vqcascade latticepare
88
89 distclean:      clean
90         -rm -f Makefile