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