# Generated automatically from Makefile.in by configure.
# $Id: Makefile.in,v 1.5 2000/08/15 15:32:37 msmith Exp $
# Makefile for the OggVorbis kmpg module.

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

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


FLAGS=-I. -I/usr/local/include/mpeglib -I/usr/include/mpeglib -I$(KDEDIR)/include -I/usr/local/include -I../include -g -DUSE_ALLOCA_H -DUSE_MEMORY_H   -fno-exceptions -fno-rtti -fno-check-new

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
CPP=g++

LD=cc
LDFLAGS= $(FLAGS) -shared
AR=ar
RANLIB=ranlib
LIBS=-lm -L$(KDEDIR)/lib -lmpeg -lpthread

OFILES=		vorbisPlugin.o
TARGET=		libvorbis_kmpg.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)

.cpp.o:
	$(CPP) $(CFLAGS) -c $<

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

distclean:	clean
	-rm -f Makefile

install:
	cp $(TARGET) /usr/lib

