--- nono/cli/Makefile 2026/04/29 17:04:28 1.1 +++ nono/cli/Makefile 2026/04/29 17:04:40 1.1.1.4 @@ -1,13 +1,17 @@ # # nono -# Copyright (C) 2018 isaki@NetBSD.org +# Copyright (C) 2020 nono project +# Licensed under nono-license.txt +# + # # CLI executable # +.include "../Makefile.inc" + TARGETS= nono-cli -CPPFLAGS+= -I.. -I. -I../fpe -I../lib -I../m680x0 -I../vm -I../debugger LDFLAGS+= -pthread CXXSRCS= \ @@ -15,7 +19,11 @@ CXXSRCS= \ OBJS= ${CXXSRCS:.cpp=.o} -.include "../Makefile.inc" - nono-cli: ${MYLIBS} ${OBJS} - ${CXX} ${LDFLAGS} -o $@ ${OBJS} ${MYLIBS} ${LIBS} + ${CXX} ${LDFLAGS} -o $@ ${OBJS} ${MYLIBS_GROUP} ${LIBS} + +install: nono-cli + ${INSTALL} -d ${DESTDIR}${BINDIR} + ${INSTALL} -m 755 -o 0 -g 0 nono-cli ${DESTDIR}${BINDIR} + +.include "../Makefile.rule"