# Generated automatically from Makefile.in by configure.
# cdda_paranoia makefile.in ready to go for autoconf.

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

.SUFFIXES: .t
srcdir=.


FLAGS= -Dsize16='short' -Dsize32='int' 
OPT=-O20 -ffast-math -fsigned-char -fomit-frame-pointer -finline-functions $(FLAGS)
DEBUG=-g -Wall -fsigned-char $(FLAGS)
CC=gcc
LD=gcc
LDFLAGS= $(FLAGS)
AR=ar
RANLIB=ranlib


OFILES = paranoia.o p_block.o overlap.o gap.o isort.o
TFILES = isort.t gap.t p_block.t paranoia.t

LIBS = ../interface/cdda_interface.a -lm

all: 
	$(MAKE) cdda_paranoia.a CFLAGS="$(OPT)" 

debug: 
	$(MAKE) cdda_paranoia.a CFLAGS="$(DEBUG)"

lib:	
	$(MAKE) cdda_paranoia.a CFLAGS="$(OPT)" 

test:	$(TFILES)
	
cdda_paranoia.a: 	$(OFILES)	
		$(AR) -r cdda_paranoia.a $(OFILES)
		$(RANLIB) cdda_paranoia.a

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

.c.t:
	$(CC) -g -DTEST $(DEBUG) -o $@ $< $(LIBS)
	$@

clean:
	-rm -f *.o *.a *.t core *~ 

distclean:
	-rm -f *.o *.a core *~ Makefile 

