# Generated automatically from Makefile.in by configure.
# $Id: Makefile.in,v 1.5 2000/07/12 09:36:17 xiphmont Exp $

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


FLAGS=-I. -I../include -g -DUSE_ALLOCA_H -DUSE_MEMORY_H
OPT=-xO4 -fast -w -fsimple -native -xcg92 $(FLAGS)
DEBUG=-v -g $(FLAGS)
PROFILE=-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc $(FLAGS)
CC=cc
LD=cc
LDFLAGS= $(FLAGS)
AR=ar
RANLIB=ranlib
LIBS=-lm

HFILES =	../include/vorbis/codebook.h ../vq/bookutil.h

OFILES = 	residuesplit.o build.o

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

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

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

target:	residuesplit huffbuild

residuesplit:	residuesplit.o ../vq/bookutil.o ../lib/sharedbook.o
	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)

huffbuild:	build.o ../vq/bookutil.o ../lib/sharedbook.o
	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)

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

$(OFILES):	$(HFILES)

clean:
	-rm -f *.o *.a test* *~ *.out *.m config.* \
		huffbuild residuesplit

distclean:	clean
	-rm -f Makefile
