|
|
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= \
1.1.1.5 ! root 20: diskimage.cpp \
! 21: diskimage_raw.cpp \
1.1 root 22: netdriver.cpp \
23: netdriver_none.cpp \
1.1.1.4 root 24: netdriver_selector.cpp \
1.1 root 25:
1.1.1.4 root 26: .if "${HOSTNET_AFPACKET}" == "yes"
27: CXXSRCS+= netdriver_afpacket.cpp
28: .endif
29: .if "${HOSTNET_TAP}" == "yes"
1.1 root 30: CXXSRCS+= netdriver_tap.cpp
31: .endif
1.1.1.4 root 32: .if "${HOSTNET_BPF}" == "yes"
1.1 root 33: CXXSRCS+= netdriver_bpf.cpp
34: .endif
35:
36: OBJS= ${CXXSRCS:.cpp=.o}
37:
38: CLEANDIRFILES= Makefile
39:
40: libnnhost.a: ${OBJS}
41: rm -f $@
42: ${AR} r $@ $>
43: ${RANLIB} $@
1.1.1.3 root 44:
45: .include "../Makefile.rule"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.