Makefile 1.16 KB
#
# Makefile for mpeg video microcode
#

PRDEPTH=$(ROOT)/PR
include $(PRDEPTH)/PRdefs

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

# local defs
LCDEFS = 
# local includes
LCINCS = -m -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

VID_INCL = video_dmem.h mpegvideo.h idct_dmem.h iq_dmem.h recon_dmem.h \
        iquant_io.h idct_io.h mc_io.h recon_io.h \
        iquant.h idct.h mc.h recon.h \
        iquant_un.h idct_un.h mc_uname.h recon_un.h
VID_CODE = mpegvideo.s iquant.s idct.s mc.s recon.s

INST_LIB_TARGETS = vmpegMain.o

TARGETS = vmpegMain vmpegMain.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
#
vmpegMain: ${VID_INCL} ${VID_CODE}
	@echo "****"
	@echo "**** Building $@:"
	@echo "****"
	${RSPASM} ${LCINCS} -o $@ mpegvideo.s

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

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

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