--- nono/host/Makefile.in 2026/04/29 17:04:28 1.1 +++ nono/host/Makefile.in 2026/04/29 17:05:04 1.1.1.6 @@ -1,23 +1,34 @@ # # nono -# Copyright (C) 2019 isaki@NetBSD.org +# Copyright (C) 2020 nono project +# Licensed under nono-license.txt +# + # # Host # +.include "../Makefile.inc" + TARGETS= libnnhost.a -NETDRIVER= @NETDRIVER@ -CPPFLAGS+= -I. -I.. -I../lib -I../vm -I../debugger -CPPFLAGS+= -Dkevent_udata_t='@KEVENT_UDATA_T@' +HOSTNET_AFPACKET=@HOSTNET_AFPACKET@ +HOSTNET_TAP=@HOSTNET_TAP@ +HOSTNET_BPF=@HOSTNET_BPF@ CXXSRCS= \ + diskimage.cpp \ + diskimage_raw.cpp \ netdriver.cpp \ netdriver_none.cpp \ + netdriver_selector.cpp \ -.if ${NETDRIVER} == "tap" +.if "${HOSTNET_AFPACKET}" == "yes" +CXXSRCS+= netdriver_afpacket.cpp +.endif +.if "${HOSTNET_TAP}" == "yes" CXXSRCS+= netdriver_tap.cpp .endif -.if ${NETDRIVER} == "bpf" +.if "${HOSTNET_BPF}" == "yes" CXXSRCS+= netdriver_bpf.cpp .endif @@ -25,9 +36,9 @@ OBJS= ${CXXSRCS:.cpp=.o} CLEANDIRFILES= Makefile -.include "../Makefile.inc" - libnnhost.a: ${OBJS} rm -f $@ ${AR} r $@ $> ${RANLIB} $@ + +.include "../Makefile.rule"