# Generated automatically from Makefile.in by configure.
# Makefile  - amp  audio mpeg player v0.7
# tomislav uzelac  1996,1997


#DEBUG = -DDEBUG

# ---- Linux/i586 ----

CC = gcc
DEFINES = -DNO_BYTE_SWAPPING -DOS_Linux -DARCH_i586 -I../../include
CFLAGS = -fPIC -O6 -ffast-math -fomit-frame-pointer -i586 -pipe ${DEFINES} ${DEBUG}
#CFLAGS = -O -g -ffast-math -i586 -pipe ${DEFINES} ${DEBUG}
LDFLAGS = -shared

#
# you should probably leave these untouched ####################################
#

OBJ = getbits.o huffman.o layer3.o getdata.o misc2.o\
	transform.o audio.o buffer.o audioIO.o position.o layer2.o util.o

#LIBS = -lm

all: amp

.PHONY: clean cleandist dep 
clean:
	rm -f *.o amp.so core

cleandist: clean
	rm -f *~ config.status config.cache config.log config.h Makefile .depend

distclean: cleandist

amp: $(OBJ) 
	$(CC) -o amp.so $(OBJ) $(LDFLAGS) $(LIBS) 

.c.o:
	$(CC) -c $(CFLAGS) $(DEFINES) $(GGDB) $(PG) $< 

.c.s:
	$(CC) -S $(CFLAGS) $(DEFINES) $(GGDB) $(PG) $< 

dep:
	gcc -MM ${DEFINES} ${DEBUG} *.c > .depend

#-include .depend
