Makefile.in 2.2 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.11 1999/10/10 20:32:17 xiphmont Exp $
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

###############################################################################
#                                                                             #
# 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@
FLAGS=-I. @TYPESIZES@ @CFLAGS@
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
33
HFILES =	mdct.h codec.h bitwise.h envelope.h lpc.h lsp.h modes.h\
		psy.h smallft.h window.h xlogmap.h

LFILES = 	framing.o mdct.o smallft.o block.o envelope.o window.o\
Monty's avatar
   
Monty committed
34
35
		lsp.o lpc.o analysis.o synthesis.o psy.o info.o bitwise.o\
		spectrum.o
Monty's avatar
   
Monty committed
36
37

EFILES =	encoder_example.o decoder_example.o
38
39

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

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

profile: 
	$(MAKE) target CFLAGS="$(PROFILE)"

Monty's avatar
   
Monty committed
48
49
target:	libvorbis.a encoder_example decoder_example

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

Monty's avatar
   
Monty committed
59
60
61
encoder_example:	$(EFILES) libvorbis.a
	$(CC) $(CFLAGS) $(LDFLAGS) encoder_example.o libvorbis.a -o \
			encoder_example -lm
62

Monty's avatar
   
Monty committed
63
64
65
decoder_example:	$(EFILES) libvorbis.a
	$(CC) $(CFLAGS) $(LDFLAGS) decoder_example.o libvorbis.a -o \
			decoder_example -lm
66

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

Monty's avatar
   
Monty committed
71
$(LFILES): 	$(HFILES)
72
73
74
75
76

.c.o:
	$(CC) $(CFLAGS) -c $<

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