# Makefile  - amp  audio mpeg player v0.7
# tomislav uzelac  1996,1997

#use this on linux or ultra	
 CC= gcc
#use this on ultra
#CC = /opt/SUNWspro/bin/cc

#GGDB = -ggdb 

# uncomment both of these if you want profiling support
#PG = -pg
#LDFLAGS = -pg

# uncomment _only_one_ of these lines
   # 486/linux
	 CFLAGS = -Wall -O3 -fomit-frame-pointer -m486 -DNO_BYTE_SWAPPING -DA_SIF_LINUX
	#for debugging
	#CFLAGS = -Wall -DNO_BYTE_SWAPPING -DA_SIF_LINUX
   # sun ultra
	# sun cc
	#CFLAGS = -xO5 -fns -dalign -ftrap=%none -xtarget=native -xlibmil -xsafe=mem -DA_SIF_ULTRA -Dinline=""
	# gcc
	#CFLAGS = -O3 -fschedule-insns2 -DA_SIF_ULTRA
	#use this when debugging
	#CFLAGS = -DA_SIF_ULTRA
 
OBJ = audio.o getbits.o getdata.o huffman.o dump.o misc2.o transform.o formats.o layer3.o

LIBS = 

all: amp

.PHONY: clean dep 
clean:
	rm -f *.o amp

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

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

dep:
	gcc -MM *.c > .depend

-include .depend
