Makefile
1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# Makefile for RSP n_audio microcode
#
include $(ROOT)/usr/include/make/PRdefs
CVERSION = -ansi -wlint,-zaihv
OPTIMIZER = -g
LCDEFS =
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 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.