More VQ utility work. Utils now include:
[platform/upstream/libvorbis.git] / vq / Makefile.in
1 # $Id: Makefile.in,v 1.6 2000/01/05 10:14:53 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 @TYPESIZES@ @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@ -lm
27
28 HFILES =        ../include/vorbis/codebook.h vqgen.h vqext.h bookutil.h
29
30 OFILES =        vqgen.o vqsplit.o bookutil.o
31 ALLOFILES =     $(OFILES) lspdata.o genericdata.o train.o build.o run.o\
32                 cascade.o
33
34 all:
35         $(MAKE) target CFLAGS="$(OPT)"
36
37 debug:  
38         $(MAKE) target CFLAGS="$(DEBUG)"
39
40 profile: 
41         $(MAKE) target CFLAGS="$(PROFILE)"
42
43 target: lspvqtrain genericvqtrain vqbuild vqcascade
44
45 lspvqtrain:     $(OFILES) lspdata.o train.o
46         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
47
48 genericvqtrain: $(OFILES) genericdata.o train.o
49         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
50
51 vqbuild:        $(OFILES) build.o
52         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
53
54 vqcascade:      $(OFILES) run.o cascade.o
55         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
56
57 $(ALLOFILES):   $(HFILES)
58
59 .c.o:
60         $(CC) $(CFLAGS) -c $<
61
62 $(OFILES):      $(HFILES)
63
64 clean:
65         -rm -f *.o *.a test* *~ *.out *.m config.* \
66                 lspvqtrain
67
68 distclean:      clean
69         -rm -f Makefile