--- nono/m88xx0/Makefile 2026/04/29 17:04:34 1.1.1.2 +++ nono/m88xx0/Makefile 2026/04/29 17:05:22 1.1.1.8 @@ -11,14 +11,19 @@ .include "../Makefile.inc" TARGETS= libnnm88xx0.a +.if !defined(RELEASE) +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 +32,7 @@ libnnm88xx0.a: ${OBJS_lib} ${AR} r $@ $> ${RANLIB} $@ +testdis: testdis.o m88100disasm.o ../lib/mystring.o + ${CXX} ${LDFLAGS} -o $@ $> ${LIBS} + .include "../Makefile.rule"