#
# nono
# Copyright (C) 2020 nono project
# Licensed under nono-license.txt
#

#
# m88xx0 コア
#

.include "../Makefile.inc"

TARGETS=	libnnm88xx0.a
.if !defined(RELEASE)
TARGETS+=	testdis
.endif

CXXSRCS=	\
	m88100core.cpp	\
	m88100disasm.cpp	\
	m88200.cpp	\

CXXSRCS_test=	\
	testdis.cpp	\

CXXSRCS_all=	${CXXSRCS} ${CXXSRCS_test}

OBJS=	${CXXSRCS:.cpp=.o}

libnnm88xx0.a:	${OBJS}
	rm -f $@
	${AR} r $@ $>
	${RANLIB} $@

testdis:	testdis.o m88100disasm.o ../lib/mystring.o
	${CXX} ${LDFLAGS} -o $@ $> ${LIBS}

.include "../Makefile.rule"
