|
|
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 \
106: spc.cpp \
107: sprite.cpp \
108: sram.cpp \
1.1.1.15 root 109: ssg.cpp \
1.1.1.12 root 110: subram.cpp \
111: syncer.cpp \
1.1.1.10 root 112: sysclk.cpp \
113: sysctlr.cpp \
114: sysport.cpp \
115: tas.cpp \
116: thread.cpp \
117: tvram.cpp \
118: ufs.cpp \
119: uimessage.cpp \
1.1.1.14 root 120: v68kio.cpp \
1.1.1.10 root 121: videoctlr.cpp \
1.1.1.14 root 122: virtio_base.cpp \
123: virtio_block.cpp \
124: virtio_def.cpp \
1.1.1.15 root 125: virtio_entropy.cpp \
1.1.1.14 root 126: virtio_net.cpp \
1.1.1.18 root 127: virtio_scsi.cpp \
1.1.1.10 root 128: vm.cpp \
129: vm_luna.cpp \
1.1.1.12 root 130: vm_news.cpp \
1.1.1.14 root 131: vm_virt68k.cpp \
1.1.1.10 root 132: vm_x68k.cpp \
1.1.1.14 root 133: windrv.cpp \
1.1.1.12 root 134: x68kio.cpp \
1.1.1.10 root 135: x68kkbd.cpp \
1.1.1.12 root 136: xpbus.cpp \
1.1 root 137:
1.1.1.14 root 138: .if "${HOST_HAS_AVX2}" == "yes"
1.1.1.18 root 139: CXXSRCS+= accel_avx2.cpp
1.1.1.14 root 140: CXXFLAGS.accel_avx2.cpp+= -mavx2
141: .endif
1.1.1.15 root 142: .if "${HOST_HAS_NEON}" == "yes"
1.1.1.18 root 143: CXXSRCS+= accel_neon.cpp
1.1.1.15 root 144: .endif
1.1.1.14 root 145:
1.1.1.3 root 146: CXXSRCS_test= \
1.1.1.10 root 147: test_busio.cpp \
148: test_tool.cpp \
1.1.1.14 root 149: test_windrv.cpp \
1.1.1.3 root 150:
1.1.1.18 root 151: CXXSRCS_all= ${CXXSRCS} ${CXXSRCS_test}
1.1.1.3 root 152:
1.1.1.18 root 153: OBJS= ${CXXSRCS:.cpp=.o}
1.1 root 154:
155: CLEANFILES+= gencgrom
156:
1.1.1.18 root 157: libnnvm.a: ${OBJS}
1.1 root 158: rm -f $@
159: ${AR} r $@ $>
160: ${RANLIB} $@
1.1.1.3 root 161:
162: test_busio: test_busio.o
163: ${CXX} ${LDFLAGS} -o $@ $>
1.1.1.4 root 164:
1.1.1.17 root 165: test_ethernet: test_ethernet.o ../lib/libnnlib.a
166: ${CXX} ${LDFLAGS} -o $@ $>
167:
168: test_ethernet.o: test_ethernet.cpp ethernet.cpp
169:
1.1.1.14 root 170: # LIBS は libbsd のため。
171: test_windrv: test_windrv.o ../lib/libnnlib.a
1.1.1.18 root 172: ${CXX} ${LDFLAGS} -o $@ $> ${LIBS}
1.1.1.14 root 173:
1.1.1.4 root 174: .include "../Makefile.rule"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.