--- nono/m680x0/Makefile 2026/04/29 17:04:43 1.1.1.4 +++ nono/m680x0/Makefile 2026/04/29 17:05:40 1.1.1.10 @@ -10,38 +10,45 @@ .include "../Makefile.inc" -TARGETS= libnnm680x0.a testacc testea testdis - -CXXSRCS_lib= \ - m68030acc.cpp \ - m68030core.cpp \ - m68030disasm.cpp \ - m68030ea.cpp \ - m68030fpu.cpp \ +TARGETS= libnnm680x0.a +.if !defined(RELEASE) +TARGETS+= testacc testea testdis +.endif + +CXXSRCS= \ + m680x0acc.cpp \ + m680x0bitfield.cpp \ + m680x0core.cpp \ + m680x0disasm.cpp \ + m680x0ea.cpp \ + m680x0fpu.cpp \ + m680x0ops.cpp \ + m68030bus.cpp \ m68030mmu.cpp \ - m68030subr.cpp \ + m68040bus.cpp \ + m68040mmu.cpp \ CXXSRCS_test= \ testacc.cpp \ testdis.cpp \ testea.cpp \ -CXXSRCS= ${CXXSRCS_lib} ${CXXSRCS_test} +CXXSRCS_all= ${CXXSRCS} ${CXXSRCS_test} -OBJS_lib= ${CXXSRCS_lib:.cpp=.o} +OBJS= ${CXXSRCS:.cpp=.o} -libnnm680x0.a: ${OBJS_lib} +libnnm680x0.a: ${OBJS} rm -f $@ ${AR} r $@ $> ${RANLIB} $@ -testacc: testacc.o +testacc: testacc.o m680x0acc.o ${CXX} ${LDFLAGS} -o $@ $> ${LIBS} -testea: testea.o +testea: testea.o m680x0ea.o ${CXX} ${LDFLAGS} -o $@ $> ${LIBS} -testdis: testdis.o m68030disasm.o ../debugger/debugger_memory.o ../lib/mystring.o +testdis: testdis.o m680x0disasm.o ../lib/mystring.o ${CXX} ${LDFLAGS} -o $@ $> ${LIBS} .include "../Makefile.rule"