Makefile.in 1.83 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.7 1999/08/07 23:36:32 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
OFILES = 	framing.o mdct.o smallft.o block.o envelope.o window.o
31
32
33
34
35
36
37
38
39
40
41
TARGETFILES =	libvorbis.a

all:
	$(MAKE) target CFLAGS="$(OPT)" 

debug: 
	$(MAKE) target CFLAGS="$(DEBUG)"

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

Monty's avatar
   
Monty committed
42
selftest:	
43
44
	$(MAKE) clean
	$(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing 
Monty's avatar
   
Monty committed
45
46
	$(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST bitwise.c\
		-o test_bitwise -lm
47
48
	@echo
	@./test_framing
Monty's avatar
   
Monty committed
49
	@./test_bitwise
Monty's avatar
   
Monty committed
50
51
52
53

dsptest:
		$(MAKE) target CFLAGS="$(DEBUG)"
		$(CC) $(DEBUG) $(LDFLAGS) $(OFILES) dsptest.c -o dsptest -lm
54
55
56
57
58
59
60
61
62
63
64
65
66
67

target:	$(TARGETFILES)

libvorbis.a: 	$(OFILES)	
		$(AR) -r libvorbis.a $(OFILES)
		$(RANLIB) libvorbis.a

$(OFILES): 	mdct.h

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

clean:
	-rm -f *.o *.a test* *~ *.out ogg config.*