Makefile.in 2.38 KB
Newer Older
1
2
# vorbis makefile configured for use with gcc on any platform

Monty's avatar
   
Monty committed
3
# $Id: Makefile.in,v 1.22 2000/01/20 04:42:50 xiphmont Exp $
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

###############################################################################
#                                                                             #
# To build a production vorbis (preferrably using gmake), just type 'make'.   #
# To build with debugging or profiling information, use 'make debug' or       #
# 'make profile' respectively.  'make clean' is a good idea between builds    #
# with different target names, or before a final build.                       #
#                                                                             #
###############################################################################


# DO NOT EDIT BELOW! ##########################################################
# (unless, of course, you know what you are doing :) ##########################

@SET_MAKE@
Monty's avatar
   
Monty committed
19
FLAGS=-I. -I../include @TYPESIZES@ @CFLAGS@ 
20
21
22
23
24
25
26
27
28
29
OPT=@OPT@ $(FLAGS)
DEBUG=@DEBUG@ $(FLAGS)
PROFILE=@PROFILE@ $(FLAGS)
CC=@CC@
LD=@CC@
LDFLAGS=@LDFLAGS@ $(FLAGS)
AR=@AR@
RANLIB=@RANLIB@
LIBS=@LIBS@ -lm

Monty's avatar
   
Monty committed
30
HFILES =	../include/vorbis/codec.h ../include/vorbis/vorbisfile.h \
Monty's avatar
   
Monty committed
31
		bitwise.h envelope.h lpc.h lsp.h bookinternal.h\
Monty's avatar
   
Monty committed
32
33
		psy.h smallft.h window.h scales.h os.h mdct.h\
		time0.h floor0.h res0.h mapping0.h registry.h
Monty's avatar
   
Monty committed
34
LFILES = 	framing.o mdct.o smallft.o block.o envelope.o window.o\
Monty's avatar
   
Monty committed
35
		lsp.o lpc.o analysis.o synthesis.o psy.o info.o bitwise.o\
Monty's avatar
   
Monty committed
36
		time0.o floor0.o res0.o mapping0.o registry.o\
Monty's avatar
   
Monty committed
37
		spectrum.o codebook.o vorbisfile.o
38
39

all:
Monty's avatar
   
Monty committed
40
	$(MAKE) target CFLAGS="$(OPT)"
41

Monty's avatar
   
Monty committed
42
debug:	
43
44
	$(MAKE) target CFLAGS="$(DEBUG)"

Monty's avatar
   
Monty committed
45
46
47
analysis:	
	$(MAKE) target CFLAGS="$(DEBUG) -DANALYSIS"

48
49
50
profile: 
	$(MAKE) target CFLAGS="$(PROFILE)"

Monty's avatar
   
Monty committed
51
target:	libvorbis.a vorbisfile.a
Monty's avatar
   
Monty committed
52

Monty's avatar
   
Monty committed
53
selftest:	
54
55
	$(MAKE) clean
	$(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing 
Monty's avatar
   
Monty committed
56
57
	$(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST bitwise.c\
		-o test_bitwise -lm
Monty's avatar
   
Monty committed
58
59
60
	$(CC) $(DEBUG) $(LDFLAGS) -c bitwise.c
	$(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST codebook.c bitwise.o\
		-o test_codebook -lm
61
62
	@echo
	@./test_framing
Monty's avatar
   
Monty committed
63
	@./test_bitwise
Monty's avatar
   
Monty committed
64
	@./test_codebook
Monty's avatar
   
Monty committed
65

Monty's avatar
   
Monty committed
66
libvorbis.a: 	$(LFILES)	
Monty's avatar
   
Monty committed
67
		$(AR) -r libvorbis.a $^
68
69
		$(RANLIB) libvorbis.a

Monty's avatar
   
Monty committed
70
vorbisfile.a:	$(LFILES)
Monty's avatar
   
Monty committed
71
72
73
74
		$(AR) -r vorbisfile.a $^
		$(RANLIB) vorbisfile.a


Monty's avatar
   
Monty committed
75
$(LFILES): 	$(HFILES)
Monty's avatar
   
Monty committed
76

77
78
79
80
.c.o:
	$(CC) $(CFLAGS) -c $<

clean:
Monty's avatar
   
Monty committed
81
	-rm -f *.o *.a test* *~ *.out ogg config.* tone 
Monty's avatar
   
Monty committed
82
83

distclean:	clean
Monty's avatar
   
Monty committed
84
	-rm -f Makefile
Monty's avatar
   
Monty committed
85