Makefile.in 1.67 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.2 1999/07/27 08:44:52 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

###############################################################################
#                                                                             #
# 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

OFILES = 	framing.o
TARGETFILES =	libvorbis.a

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

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

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

selftest:
	$(MAKE) clean
	$(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing 
Monty's avatar
   
Monty committed
45
	$(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST analysis.c -o test_blocking
46
47
	@echo
	@./test_framing
Monty's avatar
   
Monty committed
48
	@./test_blocking
49
50
51
52
53
54
55
56
57
58
59
60
61
62

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.*