Makefile.in 2.11 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.17 1999/12/30 07:26:31 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
31
32
HFILES =	../include/codec.h ../include/vorbisfile.h \
		bitwise.h envelope.h lpc.h lsp.h \
		psy.h smallft.h window.h xlogmap.h os.h mdct.h
Monty's avatar
   
Monty committed
33
LFILES = 	framing.o mdct.o smallft.o block.o envelope.o window.o\
Monty's avatar
   
Monty committed
34
		lsp.o lpc.o analysis.o synthesis.o psy.o info.o bitwise.o\
Monty's avatar
   
Monty committed
35
		spectrum.o vorbisfile.o
36
37

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

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

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

46
47
48
profile: 
	$(MAKE) target CFLAGS="$(PROFILE)"

Monty's avatar
   
Monty committed
49
target:	libvorbis.a vorbisfile.a
Monty's avatar
   
Monty committed
50

Monty's avatar
   
Monty committed
51
selftest:	
52
53
	$(MAKE) clean
	$(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing 
Monty's avatar
   
Monty committed
54
55
	$(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST bitwise.c\
		-o test_bitwise -lm
56
57
	@echo
	@./test_framing
Monty's avatar
   
Monty committed
58
	@./test_bitwise
Monty's avatar
   
Monty committed
59

Monty's avatar
   
Monty committed
60
libvorbis.a: 	$(LFILES)	
Monty's avatar
   
Monty committed
61
		$(AR) -r libvorbis.a $^
62
63
		$(RANLIB) libvorbis.a

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


Monty's avatar
   
Monty committed
69
$(LFILES): 	$(HFILES)
Monty's avatar
   
Monty committed
70

71
72
73
74
.c.o:
	$(CC) $(CFLAGS) -c $<

clean:
Monty's avatar
   
Monty committed
75
	-rm -f *.o *.a test* *~ *.out ogg config.* tone 
Monty's avatar
   
Monty committed
76
77

distclean:	clean
Monty's avatar
   
Monty committed
78
	-rm -f Makefile
Monty's avatar
   
Monty committed
79