GNUmakefile 1.34 KB
#
# Makefile for RSP n_audio microcode
#

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

#CVERSION = -ansi -wlint,-zaihv
CVERSION = -ansi
OPTIMIZER = -g
CC=$(HOST_CC)
GCINCS=-D_LANGUAGE_C
GLDOPTS=

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

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

AUD_INCL = 	aud_dmem.h \
		aud_dmem_init.h \
		aud_regs.h \
		coef_tab.h \
		aud_dmem_add.h

AUD_CODE = 	amain.s \
		asetup.s \
		adpcm.s \
		aresample.s \
		amixer.s \
		aenv.s \
		afilter.s

INST_LIB_TARGETS = n_aspMain.o

TARGETS = n_aspMain n_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/n_audio Makefile *.s *.h

n_aspMain: ${AUD_INCL} ${AUD_CODE} ayield.h
	@echo "****"
	@echo "**** Building $@:"
	@echo "****"
	${RSPASM} ${LCINCS} -o $@ amain.s

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

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

ayield.h: $(ROOT)/PR/rspcode/graphics/gdmem.h $(ROOT)/PR/rspcode/graphics/sortdata
	$(ROOT)/PR/rspcode/graphics/sortdata -l < $(ROOT)/PR/rspcode/graphics/gdmem.h | grep RSP_OUTPUT_OFFSET | grep -v '(' | head -1 > ayield.h

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