CC = or32-rtems-gcc
|
CC = or32-rtems-gcc
|
AS = or32-rtems-as
|
AS = or32-rtems-as
|
AR = or32-rtems-ar
|
AR = or32-rtems-ar
|
RUNLIB = or32-rtems-ranlib
|
RUNLIB = or32-rtems-ranlib
|
|
|
LIBMAD_OBJ = fixed.o \
|
LIBMAD_OBJ = fixed.o \
|
bit.o \
|
bit.o \
|
timer.o \
|
timer.o \
|
stream.o \
|
stream.o \
|
frame.o \
|
frame.o \
|
synth.o \
|
synth.o \
|
decoder.o \
|
decoder.o \
|
layer3.o \
|
layer3.o \
|
huffman.o
|
huffman.o
|
|
|
CC_OPTS = -DHAVE_CONFIG_H -DFPM_DEFAULT -fno-delayed-branch -Wall -nostdlib \
|
CC_OPTS = -DHAVE_CONFIG_H -DFPM_DEFAULT -fno-delayed-branch -Wall -nostdlib \
|
-g -O -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps \
|
-g -O -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps \
|
-fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 \
|
-fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 \
|
-I. -I./../
|
-I. -I./../
|
|
|
all: libmad.a
|
all: libmad.a
|
|
|
libmad.a: $(LIBMAD_OBJ)
|
libmad.a: $(LIBMAD_OBJ)
|
$(AR) cru libmad.a $(LIBMAD_OBJ)
|
$(AR) cru libmad.a $(LIBMAD_OBJ)
|
$(RUNLIB) libmad.a
|
$(RUNLIB) libmad.a
|
|
|
fixed.o: fixed.c config.h global.h fixed.h
|
fixed.o: fixed.c config.h global.h fixed.h
|
$(CC) $(CC_OPTS) -c -o fixed.o fixed.c
|
$(CC) $(CC_OPTS) -c -o fixed.o fixed.c
|
|
|
bit.o: bit.c config.h global.h bit.h
|
bit.o: bit.c config.h global.h bit.h
|
$(CC) $(CC_OPTS) -c -o bit.o bit.c
|
$(CC) $(CC_OPTS) -c -o bit.o bit.c
|
|
|
timer.o: timer.c config.h global.h timer.h
|
timer.o: timer.c config.h global.h timer.h
|
$(CC) $(CC_OPTS) -c -o timer.o timer.c
|
$(CC) $(CC_OPTS) -c -o timer.o timer.c
|
|
|
stream.o: stream.c config.h global.h bit.h stream.h
|
stream.o: stream.c config.h global.h bit.h stream.h
|
$(CC) $(CC_OPTS) -c -o stream.o stream.c
|
$(CC) $(CC_OPTS) -c -o stream.o stream.c
|
|
|
frame.o: frame.c config.h global.h bit.h stream.h frame.h fixed.h timer.h layer3.h
|
frame.o: frame.c config.h global.h bit.h stream.h frame.h fixed.h timer.h layer3.h
|
$(CC) $(CC_OPTS) -c -o frame.o frame.c
|
$(CC) $(CC_OPTS) -c -o frame.o frame.c
|
|
|
synth.o: synth.c config.h global.h fixed.h frame.h timer.h stream.h bit.h synth.h \
|
synth.o: synth.c config.h global.h fixed.h frame.h timer.h stream.h bit.h synth.h \
|
../audio.h mad.h D.dat
|
../audio.h mad.h D.dat
|
$(CC) $(CC_OPTS) -c -o synth.o synth.c
|
$(CC) $(CC_OPTS) -c -o synth.o synth.c
|
|
|
decoder.o: decoder.c config.h global.h stream.h bit.h frame.h fixed.h timer.h \
|
decoder.o: decoder.c config.h global.h stream.h bit.h frame.h fixed.h timer.h \
|
synth.h decoder.h
|
synth.h decoder.h
|
$(CC) $(CC_OPTS) -c -o decoder.o decoder.c
|
$(CC) $(CC_OPTS) -c -o decoder.o decoder.c
|
|
|
layer3.o: layer3.c config.h global.h fixed.h bit.h stream.h frame.h timer.h \
|
layer3.o: layer3.c config.h global.h fixed.h bit.h stream.h frame.h timer.h \
|
huffman.h layer3.h rq_short.dat imdct_s.dat
|
huffman.h layer3.h rq_short.dat imdct_s.dat
|
$(CC) $(CC_OPTS) -c -o layer3.o layer3.c
|
$(CC) $(CC_OPTS) -c -o layer3.o layer3.c
|
|
|
huffman.o: huffman.c config.h global.h huffman.h
|
huffman.o: huffman.c config.h global.h huffman.h
|
$(CC) $(CC_OPTS) -c -o huffman.o huffman.c
|
$(CC) $(CC_OPTS) -c -o huffman.o huffman.c
|
|
|
clean:
|
clean:
|
rm -rf $(LIBMAD_OBJ) libmad.a *~ *.bak
|
rm -rf $(LIBMAD_OBJ) libmad.a *~ *.bak
|
|
|
|
|