# Generated automatically from Makefile.in by configure.
# vorbis makefile configured for use with gcc on any platform

# $Id: Makefile.in,v 1.5 2000/06/26 11:25:32 omnic Exp $

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


FLAGS=-I. -I../lib -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 -lpthread

OFILES = 	getopt.o getopt1.o main.o

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

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

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

selftest:

target:	$(OFILES) ../lib/libvorbis.a
	$(LD) $(CFLAGS) $(OFILES) $(LDFLAGS) ../lib/libvorbis.a -o vorbis $(LIBS)

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

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

distclean:
	-rm -f Makefile
