# Generated automatically from Makefile.in by configure.
# $Id: Makefile.in,v 1.7 2000/08/30 06:09:22 xiphmont Exp $
# Makefile for the OggVorbis XMMS module.

# still needs an 'install' entry, but how to find XMMS?

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


FLAGS=-I. -I../include -g -DUSE_ALLOCA_H -DUSE_MEMORY_H `gtk-config --cflags` -fPIC
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) -shared
AR=ar
RANLIB=ranlib
LIBS=-lm -lpthread

OFILES=		vorbis.o
TARGET=		libvorbis.so
HFILES=		../include/vorbis/codec.h ../include/vorbis/vorbisfile.h \
		../include/vorbis/internal.h ../include/vorbis/backends.h \
		../include/vorbis/codebook.h 

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

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

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

target:	$(OFILES) 
	$(LD) $(LDFLAGS) -o $(TARGET) $(OFILES) \
		../lib/vorbisfile.a ../lib/libvorbis.a $(LIBS)

$(OFILES): 	$(HFILES)

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

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

distclean:	clean
	-rm -f Makefile


