Makefile 1.12 KB
#
# Makefile for RSP audio microcode
#

PRDEPTH=../../
include $(ROOT)/usr/include/make/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 = 	aud_dmem.h aud_dmem_init.h aud_regs.h coef_tab.h
AUD_CODE = 	amain.s asetup.s adpcm.s aresample.s \
		amixer.s aenv.s afilter.s ayield.s

INST_LIB_TARGETS = aspMain.o

TARGETS = aspMain aspMain.tvd ${INST_LIB_TARGETS}

default: ${TARGETS}

include $(ROOT)/usr/include/make/commonrules

install exports: ${TARGETS}
	$(INSTALL) -m 555 -F /usr/lib/PR $(INST_LIB_TARGETS)
	$(INSTALL) -m 555 -F /usr/src/PR/rspcode/audio Makefile *.s *.h

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

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

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

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