Makefile 1015 Bytes
#
# Makefile for mpeg audio microcode
#

PRDEPTH=../../
include $(PRDEPTH)/PRdefs

CVERSION = -ansi -wlint,-zaihv
OPTIMIZER = -g

# local defs
LCDEFS = 
# local includes
LCINCS = -I. -I$(ROOT)/usr/include -I$(ROOT)/usr/include/PR
LCOPTS = -fullwarn
LDOPTS = -L. -L$(ROOT)/usr/lib/PR
LDLIBS = -ll -lm

LDIRT  = *.dat *.dbg *.lst *.sym

AUD_INCL = 	mpaud.h mpaud_init.h mpaud_regs.h 
AUD_CODE = 	mpaudio.s iquant.s dct32.s remap.s ola.s

INST_LIB_TARGETS = ampegMain.o

TARGETS = ampegMain ampegMain.tvd ${INST_LIB_TARGETS}

default: ${TARGETS}

include $(PRDEPTH)/PRrules

install exports: ${TARGETS}
	$(INSTALL) -m 555 -F /usr/lib/PR $(INST_LIB_TARGETS)

#
# without a linker, we accomplish "modularity" by using include files in
# amain.s
#
ampegMain: ${AUD_INCL} ${AUD_CODE}
	@echo "****"
	@echo "**** Building $@:"
	@echo "****"
	${RSPASM} ${LCINCS} -o $@ mpaudio.s

ampegMain.o: ampegMain
	${RSP2ELF} -p -r $?

ampegMain.tvd: ampegMain
	${RSP2ELF} -p $?

# DO NOT DELETE THIS LINE -- make depend depends on it.