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

#
# HD64*180 コア
#

.include "../Makefile.inc"

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

CXXSRCS=	\
	hd64180acc.cpp	\
	hd64180core.cpp	\
	hd64180disasm.cpp	\
	hd647180dev.cpp	\
	hd647180io.cpp	\

CXXSRCS_test=	\
	testdis.cpp	\

CXXSRCS_all=	${CXXSRCS} ${CXXSRCS_test}

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

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

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

.include "../Makefile.rule"
