#
#	makefile for SAS C musicin, 06/98 Draco
#

CC=	gcc
CFLAGS=	-m68030 -m68881 -O5 -pipe -fomit-frame-pointer \
	-fexpensive-optimizations -finline-functions \
	-fstrength-reduce -funroll-all-loops -ffast-math \
	-mnobitfield -DFFT_ASM
LFLAGS= -m68020 -m68881 -L/usr/lib/68030
LIBS=	-lm

TARGET= musicin

OBJS=	common.o encode.o fft.o fft_asm.o musicin.o \
	psy.o subs.o tonal.o

all:	$(TARGET)
	strip $(TARGET)
	fixstk 256k $(TARGET)

$(TARGET): $(OBJS)
	$(CC) $(LFLAGS) $(OBJS) $(LIBS) -o $(TARGET)

fft_asm.o:
	$(CC) $(CFLAGS) -c fft_asm.s -o fft_asm.o

clean:
	rm -f *.o

veryclean:
	rm -f *.o $(TARGET)
