cb213144f55a09156c1c54d40a28c30f720e5424
[platform/upstream/libvorbis.git] / lib / Makefile.in
1 # vorbis makefile configured for use with gcc on any platform
2
3 # $Id: Makefile.in,v 1.1 1999/07/13 07:48:14 mwhitson Exp $
4
5 ###############################################################################
6 #                                                                             #
7 # To build a production vorbis (preferrably using gmake), just type 'make'.   #
8 # To build with debugging or profiling information, use 'make debug' or       #
9 # 'make profile' respectively.  'make clean' is a good idea between builds    #
10 # with different target names, or before a final build.                       #
11 #                                                                             #
12 ###############################################################################
13
14
15 # DO NOT EDIT BELOW! ##########################################################
16 # (unless, of course, you know what you are doing :) ##########################
17
18 @SET_MAKE@
19 FLAGS=-I. @TYPESIZES@ @CFLAGS@
20 OPT=@OPT@ $(FLAGS)
21 DEBUG=@DEBUG@ $(FLAGS)
22 PROFILE=@PROFILE@ $(FLAGS)
23 CC=@CC@
24 LD=@CC@
25 LDFLAGS=@LDFLAGS@ $(FLAGS)
26 AR=@AR@
27 RANLIB=@RANLIB@
28 LIBS=@LIBS@ -lm
29
30 OFILES =        framing.o
31 TARGETFILES =   libvorbis.a
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 selftest:
43         $(MAKE) clean
44         $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing 
45         @echo
46         @./test_framing
47
48 target: $(TARGETFILES)
49
50 libvorbis.a:    $(OFILES)       
51                 $(AR) -r libvorbis.a $(OFILES)
52                 $(RANLIB) libvorbis.a
53
54 $(OFILES):      mdct.h
55
56 .c.o:
57         $(CC) $(CFLAGS) -c $<
58
59 clean:
60         -rm -f *.o *.a test* *~ *.out ogg config.*