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