--- nono/m88xx0/Makefile 2026/04/29 17:04:34 1.1.1.2 +++ nono/m88xx0/Makefile 2026/04/29 17:05:11 1.1.1.6 @@ -11,14 +11,20 @@ .include "../Makefile.inc" 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 \ + +CXXSRCS= ${CXXSRCS_lib} ${CXXSRCS_test} OBJS_lib= ${CXXSRCS_lib:.cpp=.o} @@ -27,4 +33,7 @@ libnnm88xx0.a: ${OBJS_lib} ${AR} r $@ $> ${RANLIB} $@ +testdis: testdis.o m88100disasm.o ../debugger/debugger_memory.o ../lib/mystring.o + ${CXX} ${LDFLAGS} -o $@ $> ${LIBS} + .include "../Makefile.rule"