--- nono/m88xx0/Makefile 2026/04/29 17:04:31 1.1 +++ nono/m88xx0/Makefile 2026/04/29 17:05:07 1.1.1.5 @@ -1,26 +1,39 @@ # # nono -# Copyright (C) 2020 isaki@NetBSD.org +# Copyright (C) 2020 nono project +# Licensed under nono-license.txt +# + # # m88xx0 コア # -TARGETS= libnnm88xx0.a +.include "../Makefile.inc" -CXXFLAGS+= -mtune=native +TARGETS= libnnm88xx0.a +.if !defined(NOTEST) +TARGETS+= testdis +.endif -CXXSRCS_lib= \ +CXXSRCS_lib= \ m88100core.cpp \ m88100disasm.cpp \ m88100subr.cpp \ + m88200.cpp \ -CXXSRCS= ${CXXSRCS_lib} +CXXSRCS_test= \ + testdis.cpp \ -OBJS_lib= ${CXXSRCS_lib:.cpp=.o} +CXXSRCS= ${CXXSRCS_lib} ${CXXSRCS_test} -.include "../Makefile.inc" +OBJS_lib= ${CXXSRCS_lib:.cpp=.o} libnnm88xx0.a: ${OBJS_lib} rm -f $@ ${AR} r $@ $> ${RANLIB} $@ + +testdis: testdis.o m88100disasm.o ../debugger/debugger_memory.o ../lib/libnnlib.a + ${CXX} ${LDFLAGS} -o $@ $> ${LIBS} + +.include "../Makefile.rule"