|
|
1.1 root 1: #
2: # nono
1.1.1.4 root 3: # Copyright (C) 2020 nono project
4: # Licensed under nono-license.txt
5: #
6:
1.1 root 7: #
8: # VM
9: #
10:
1.1.1.4 root 11: .include "../Makefile.inc"
1.1 root 12:
1.1.1.10 root 13: TARGETS= libnnvm.a
1.1.1.14 root 14: .if !defined(RELEASE)
15: TARGETS+= test_busio test_windrv
1.1.1.10 root 16: .endif
1.1 root 17:
1.1.1.18 root 18: CXXSRCS= \
1.1.1.11 root 19: adpcm.cpp \
1.1.1.10 root 20: areaset.cpp \
1.1.1.13 root 21: bankram.cpp \
1.1.1.12 root 22: bootloader.cpp \
23: bt45x.cpp \
1.1.1.19 root 24: buserr.cpp \
1.1.1.10 root 25: cgrom.cpp \
26: cmmu.cpp \
1.1.1.16 root 27: console.cpp \
1.1.1.10 root 28: crtc.cpp \
29: crtc2.cpp \
30: device.cpp \
1.1.1.12 root 31: dipsw.cpp \
1.1.1.10 root 32: dmac.cpp \
33: ethernet.cpp \
34: event.cpp \
1.1.1.14 root 35: extarea.cpp \
1.1.1.12 root 36: extram.cpp \
1.1.1.10 root 37: fdc.cpp \
1.1.1.11 root 38: fdd.cpp \
1.1.1.10 root 39: fuserom.cpp \
1.1.1.14 root 40: goldfish_pic.cpp \
41: goldfish_rtc.cpp \
42: goldfish_timer.cpp \
43: goldfish_tty.cpp \
1.1.1.10 root 44: gvram.cpp \
45: human68k.cpp \
1.1.1.15 root 46: iodevstream.cpp \
1.1.1.10 root 47: interrupt.cpp \
1.1.1.11 root 48: iplrom30.cpp \
1.1.1.12 root 49: kbc.cpp \
1.1.1.10 root 50: keyboard.cpp \
51: lance.cpp \
52: lcd.cpp \
53: lunafb.cpp \
54: lunakbd.cpp \
1.1.1.12 root 55: mainbus.cpp \
1.1.1.14 root 56: mainbus_luna.cpp \
57: mainbus_news.cpp \
58: mainbus_virt68k.cpp \
59: mainbus_x68k.cpp \
1.1.1.12 root 60: mainram.cpp \
1.1.1.10 root 61: mfp.cpp \
62: mk48t02.cpp \
63: mpscc.cpp \
64: mpu.cpp \
1.1.1.12 root 65: mpu64180.cpp \
1.1.1.10 root 66: mpu680x0.cpp \
67: mpu88xx0.cpp \
1.1.1.12 root 68: msxdos.cpp \
1.1.1.13 root 69: nereid.cpp \
1.1.1.12 root 70: newsctlr.cpp \
71: newsfb.cpp \
72: newsio.cpp \
1.1.1.10 root 73: nmi.cpp \
1.1.1.19 root 74: nop.cpp \
1.1.1.10 root 75: opm.cpp \
1.1.1.12 root 76: partialram.cpp \
1.1.1.10 root 77: pedec.cpp \
78: pio.cpp \
79: planevram.cpp \
80: pluto.cpp \
81: power.cpp \
82: printer.cpp \
83: prom.cpp \
1.1.1.14 root 84: qemusysctlr.cpp \
1.1.1.10 root 85: renderer.cpp \
86: rom.cpp \
1.1.1.15 root 87: romemu.cpp \
1.1.1.10 root 88: romemu_luna.cpp \
89: romemu_luna1.cpp \
90: romemu_luna88k.cpp \
1.1.1.12 root 91: romemu_news.cpp \
1.1.1.14 root 92: romemu_virt68k.cpp \
1.1.1.11 root 93: romemu_x68k.cpp \
1.1.1.10 root 94: romimg_x68k.cpp \
95: rp5c15.cpp \
96: rtc.cpp \
1.1.1.13 root 97: rtl8019as.cpp \
1.1.1.10 root 98: scc.cpp \
99: scheduler.cpp \
100: scsi.cpp \
101: scsibus.cpp \
102: scsicmd.cpp \
103: scsidev.cpp \
1.1.1.18 root 104: scsidomain.cpp \
1.1.1.10 root 105: sio.cpp \
1.1.1.20! root 106: sound.cpp \
1.1.1.10 root 107: spc.cpp \
108: sprite.cpp \
109: sram.cpp \
1.1.1.15 root 110: ssg.cpp \
1.1.1.12 root 111: subram.cpp \
112: syncer.cpp \
1.1.1.10 root 113: sysclk.cpp \
114: sysctlr.cpp \
115: sysport.cpp \
116: tas.cpp \
117: thread.cpp \
118: tvram.cpp \
119: ufs.cpp \
120: uimessage.cpp \
1.1.1.14 root 121: v68kio.cpp \
1.1.1.10 root 122: videoctlr.cpp \
1.1.1.14 root 123: virtio_base.cpp \
124: virtio_block.cpp \
125: virtio_def.cpp \
1.1.1.15 root 126: virtio_entropy.cpp \
1.1.1.14 root 127: virtio_net.cpp \
1.1.1.18 root 128: virtio_scsi.cpp \
1.1.1.10 root 129: vm.cpp \
130: vm_luna.cpp \
1.1.1.12 root 131: vm_news.cpp \
1.1.1.14 root 132: vm_virt68k.cpp \
1.1.1.10 root 133: vm_x68k.cpp \
1.1.1.14 root 134: windrv.cpp \
1.1.1.12 root 135: x68kio.cpp \
1.1.1.10 root 136: x68kkbd.cpp \
1.1.1.12 root 137: xpbus.cpp \
1.1 root 138:
1.1.1.14 root 139: .if "${HOST_HAS_AVX2}" == "yes"
1.1.1.18 root 140: CXXSRCS+= accel_avx2.cpp
1.1.1.14 root 141: CXXFLAGS.accel_avx2.cpp+= -mavx2
142: .endif
1.1.1.15 root 143: .if "${HOST_HAS_NEON}" == "yes"
1.1.1.18 root 144: CXXSRCS+= accel_neon.cpp
1.1.1.15 root 145: .endif
1.1.1.14 root 146:
1.1.1.3 root 147: CXXSRCS_test= \
1.1.1.10 root 148: test_busio.cpp \
149: test_tool.cpp \
1.1.1.14 root 150: test_windrv.cpp \
1.1.1.3 root 151:
1.1.1.18 root 152: CXXSRCS_all= ${CXXSRCS} ${CXXSRCS_test}
1.1.1.3 root 153:
1.1.1.18 root 154: OBJS= ${CXXSRCS:.cpp=.o}
1.1 root 155:
156: CLEANFILES+= gencgrom
157:
1.1.1.18 root 158: libnnvm.a: ${OBJS}
1.1 root 159: rm -f $@
160: ${AR} r $@ $>
161: ${RANLIB} $@
1.1.1.3 root 162:
163: test_busio: test_busio.o
164: ${CXX} ${LDFLAGS} -o $@ $>
1.1.1.4 root 165:
1.1.1.17 root 166: test_ethernet: test_ethernet.o ../lib/libnnlib.a
167: ${CXX} ${LDFLAGS} -o $@ $>
168:
169: test_ethernet.o: test_ethernet.cpp ethernet.cpp
170:
1.1.1.14 root 171: # LIBS は libbsd のため。
172: test_windrv: test_windrv.o ../lib/libnnlib.a
1.1.1.18 root 173: ${CXX} ${LDFLAGS} -o $@ $> ${LIBS}
1.1.1.14 root 174:
1.1.1.4 root 175: .include "../Makefile.rule"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.