--- nono/m680x0/Makefile 2026/04/29 17:04:31 1.1.1.2 +++ nono/m680x0/Makefile 2026/04/29 17:05:22 1.1.1.7 @@ -1,22 +1,31 @@ # # nono -# Copyright (C) 2017 isaki@NetBSD.org +# Copyright (C) 2020 nono project +# Licensed under nono-license.txt +# + # # m680x0 コア # -TARGETS= libnnm680x0.a testacc testea testdis +.include "../Makefile.inc" -CXXFLAGS+= -mtune=native +TARGETS= libnnm680x0.a +.if !defined(RELEASE) +TARGETS+= testacc testea testdis +.endif CXXSRCS_lib= \ m68030acc.cpp \ + m68030bitfield.cpp \ + m68030bus.cpp \ + m68030cache.cpp \ m68030core.cpp \ m68030disasm.cpp \ m68030ea.cpp \ m68030fpu.cpp \ m68030mmu.cpp \ - m68030subr.cpp \ + m68030ops.cpp \ CXXSRCS_test= \ testacc.cpp \ @@ -27,18 +36,18 @@ CXXSRCS= ${CXXSRCS_lib} ${CXXSRCS_test} OBJS_lib= ${CXXSRCS_lib:.cpp=.o} -.include "../Makefile.inc" - libnnm680x0.a: ${OBJS_lib} rm -f $@ ${AR} r $@ $> ${RANLIB} $@ -testacc: testacc.o +testacc: testacc.o m68030acc.o ${CXX} ${LDFLAGS} -o $@ $> ${LIBS} -testea: testea.o +testea: testea.o m68030ea.o ${CXX} ${LDFLAGS} -o $@ $> ${LIBS} testdis: testdis.o m68030disasm.o ../lib/mystring.o ${CXX} ${LDFLAGS} -o $@ $> ${LIBS} + +.include "../Makefile.rule"