49e6cc16d76cbd1029b919ab796b584bb2a667c0
[platform/upstream/libvorbis.git] / vq / Makefile.in
1 # $Id: Makefile.in,v 1.5 2000/01/05 03:11:10 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
29
30 OFILES =        vqgen.o vqsplit.o 
31 ALLOFILES =     $(OFILES) lspdata.o train.o build.o
32
33 all:
34         $(MAKE) target CFLAGS="$(OPT)"
35
36 debug:  
37         $(MAKE) target CFLAGS="$(DEBUG)"
38
39 profile: 
40         $(MAKE) target CFLAGS="$(PROFILE)"
41
42 target: lspvqtrain vqbuild
43
44 lspvqtrain:     $(OFILES) lspdata.o train.o
45         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
46
47 vqbuild:        $(OFILES) build.o
48         $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
49
50 $(ALLOFILES):   $(HFILES)
51
52 .c.o:
53         $(CC) $(CFLAGS) -c $<
54
55 $(OFILES):      $(HFILES)
56
57 clean:
58         -rm -f *.o *.a test* *~ *.out *.m config.* \
59                 lspvqtrain
60
61 distclean:      clean
62         -rm -f Makefile