|
|
1.1 root 1: #
2: # nono
1.1.1.3 root 3: # Copyright (C) 2020 nono project
4: # Licensed under nono-license.txt
5: #
6:
1.1 root 7: #
8: # Host
9: #
10:
1.1.1.3 root 11: .include "../Makefile.inc"
12:
1.1 root 13: TARGETS= libnnhost.a
1.1.1.4 ! root 14: HOSTNET_AFPACKET=@HOSTNET_AFPACKET@
! 15: HOSTNET_TAP=@HOSTNET_TAP@
! 16: HOSTNET_BPF=@HOSTNET_BPF@
1.1 root 17: CPPFLAGS+= -Dkevent_udata_t='@KEVENT_UDATA_T@'
18:
19: CXXSRCS= \
20: netdriver.cpp \
21: netdriver_none.cpp \
1.1.1.4 ! root 22: netdriver_selector.cpp \
1.1 root 23:
1.1.1.4 ! root 24: .if "${HOSTNET_AFPACKET}" == "yes"
! 25: CXXSRCS+= netdriver_afpacket.cpp
! 26: .endif
! 27: .if "${HOSTNET_TAP}" == "yes"
1.1 root 28: CXXSRCS+= netdriver_tap.cpp
29: .endif
1.1.1.4 ! root 30: .if "${HOSTNET_BPF}" == "yes"
1.1 root 31: CXXSRCS+= netdriver_bpf.cpp
32: .endif
33:
34: OBJS= ${CXXSRCS:.cpp=.o}
35:
36: CLEANDIRFILES= Makefile
37:
38: libnnhost.a: ${OBJS}
39: rm -f $@
40: ${AR} r $@ $>
41: ${RANLIB} $@
1.1.1.3 root 42:
43: .include "../Makefile.rule"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.