# Generated automatically from Makefile.in by configure.
############################################################################
## ISO MPEG Audio Subgroup Software Simulation Group (1996)
## ISO 13818-3 MPEG-2 Audio Decoder - Lower Sampling Frequency Extension
##
## $Id: Makefile.in,v 1.2 1996/02/14 05:18:05 rowlands Exp $
##
## Makefile for encoder. Requies GNU make.
##
## $Log: Makefile.in,v $
## Revision 1.2  1996/02/14 05:18:05  rowlands
## Cleanups.
##
## Revision 1.1  1996/02/14 04:04:23  rowlands
## Initial revision
##
## Received from Mike Coleman
############################################################################

CC = gcc

c_sources = \
	common.c \
	encode.c \
	formatBitstream.c \
	huffman.c \
	ieeefloat.c \
	l3bitstream.c \
	l3psy.c \
	loop.c \
	mdct.c \
	musicin.c \
	portableio.c \
	psy.c \
	reservoir.c \
	subs.c \
	tonal.c \
	FFT_float.c \
	II_FFT.c \
	filter_subband.c


asm_sources = \
	ffta.s \
	fftb.s \

OBJ = $(c_sources:.c=.o) $(asm_sources:.s=.o)
#DEP = $(c_sources:.c=.d)

NINT_SWITCH = 

CC_SWITCHES = -O3 -m68020 -m68881 -mstackextend -DMIKEHUFF -DFRAG -DUNIX \
	      -DBS_FORMAT=BINARY $(NINT_SWITCH) -DNDEBUG -funroll-loops \
	      -fomit-frame-pointer -finline-functions -DFFT_ASM -DDBCHEAT



# FFT_ASM   stefan's layer III asm FFT in subs.c
# FFT_ASMII made the layer II fft call the layer III fft asm
#                   This ain't working.
# DBCHEAT   cheat the power calculation by testing the limits before doing pow calcs
#                   in tonal.c


PGM = encode

LIBS =  -lm


%.o: %.c 
	$(CC) $(CC_SWITCHES) -c $< -o $@

%.o: %.s
	$(CC) $(CC_SWITCHES) -c $< -o $@

#%.d: %.c
#        $(SHELL) -ec '$(CC) -M $(CC_SWITCHES) $< | sed '\''s/$*.o/& $@/g'\'' > $@'


$(PGM): $(OBJ) Makefile
	$(CC)  -o $(PGM) $(OBJ) $(LIBS)

clean:
	-rm $(OBJ) $(DEP)

tags: TAGS

TAGS: ${c_sources}
	etags -T ${c_sources}

#-include $(DEP)

