--- nono/Makefile.inc 2026/04/29 17:04:28 1.1 +++ nono/Makefile.inc 2026/04/29 17:04:30 1.1.1.2 @@ -41,6 +41,16 @@ CFLAGS+= -DNETDRIVER_BPF CXXFLAGS+= -Wnon-virtual-dtor +CPPFLAGS+= -I. +CPPFLAGS+= -I.. +CPPFLAGS+= -I../debugger +CPPFLAGS+= -I../fpe +CPPFLAGS+= -I../host +CPPFLAGS+= -I../lib +CPPFLAGS+= -I../m680x0 +CPPFLAGS+= -I../m88xx0 +CPPFLAGS+= -I../vm + LDFLAGS+= ${PROFOPT} # リンカに指定する引数 @@ -48,10 +58,20 @@ MYLIBS= \ ../vm/libnnvm.a \ ../debugger/libnndebugger.a \ ../m680x0/libnnm680x0.a \ + ../m88xx0/libnnm88xx0.a \ ../fpe/libnnfpe.a \ ../host/libnnhost.a \ ../lib/libnnlib.a \ +.if "${.MAKE.OS}" == "Darwin" +# Apple Clang は --start-group, --end-group に対応してない。うーん。 +MYLIBS_GROUP= ${MYLIBS} ${MYLIBS} +.else +MYLIBS_GROUP= -Wl,--start-group ${MYLIBS} -Wl,--end-group +.endif + +LIBS+= -lz + all: ${TARGETS} .PHONY: clean