|
|
1.1 root 1: #
2: # nono
3: # Copyright (C) 2023 nono project
4: # Licensed under nono-license.txt
5: #
6:
7: TOPDIR= ../..
1.1.1.2 ! root 8: .include "${TOPDIR}/Makefile.cfg"
! 9:
1.1 root 10: CXXFLAGS= \
11: -I${TOPDIR} \
12: -I${TOPDIR}/lib \
13:
1.1.1.2 ! root 14: all: optest.com daatest.com
! 15:
1.1 root 16: optest.com: optest.z80
17: perl ${TOPDIR}/util/runcom/z80tocom.pl $> $@
18:
19: optest.z80: optest.asm
20: z80-asm $> 0100:$@
21:
22: optest.asm: gen.asm subr.asm
23: -rm -f $@
24: cat $> > $@
25:
26: gen.asm: optestxp_gen
27: -rm -f $@
28: ./optestxp_gen > $@
29:
1.1.1.2 ! root 30: optestxp_gen: optestxp_gen.o optestxp_subr.o ${TOPDIR}/lib/libnnlib.a
! 31: ${CXX} ${LDFLAGS} -o $@ $> ${LIBS}
1.1 root 32:
33: optestxp_gen.o: optestxp_gen.cpp
34: ${CXX} ${CXXFLAGS} -c $>
35:
1.1.1.2 ! root 36: optestxp_subr.o: optestxp_subr.cpp
! 37: ${CXX} ${CXXFLAGS} -c $>
! 38:
! 39:
! 40: daatest.com: daatest.z80
! 41: perl ${TOPDIR}/util/runcom/z80tocom.pl $> $@
! 42:
! 43: daatest.z80: daatest.asm
! 44: z80-asm $> 0100:$@
! 45:
! 46: daatest.asm: gendaa.asm subr.asm
! 47: -rm -f $@
! 48: cat $> > $@
! 49:
! 50: gendaa.asm: daatest_gen
! 51: -rm -f $@
! 52: ./daatest_gen > $@
! 53:
! 54: daatest_gen: daatest_gen.o optestxp_subr.o ${TOPDIR}/lib/libnnlib.a
! 55: ${CXX} ${LDFLAGS} -o $@ $> ${LIBS}
! 56:
! 57: daatest_gen.o: daatest_gen.cpp
! 58: ${CXX} ${CXXFLAGS} -c $>
! 59:
1.1 root 60: .PHONY: clean
61: clean:
1.1.1.2 ! root 62: rm -f optest.z80 optest.asm gen.asm daatest.z80 daatest.asm gendaa.asm
! 63: rm -f optestxp_gen daatest_gen *.o
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.