|
|
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.8 ! root 14:
1.1.1.4 root 15: HOSTNET_AFPACKET=@HOSTNET_AFPACKET@
16: HOSTNET_TAP=@HOSTNET_TAP@
17: HOSTNET_BPF=@HOSTNET_BPF@
1.1 root 18:
19: CXXSRCS= \
1.1.1.7 root 20: comdriver.cpp \
21: comdriver_none.cpp \
22: comdriver_stdio.cpp \
23: comdriver_tcp.cpp \
24: diskimage.cpp \
25: diskimage_raw.cpp \
26: driver.cpp \
27: hostcom.cpp \
28: hostdevice.cpp \
29: hostnet.cpp \
1.1.1.8 ! root 30: hostwindrv.cpp \
1.1.1.7 root 31: netdriver.cpp \
32: netdriver_none.cpp \
33: signalthread.cpp \
1.1 root 34:
1.1.1.4 root 35: .if "${HOSTNET_AFPACKET}" == "yes"
36: CXXSRCS+= netdriver_afpacket.cpp
37: .endif
38: .if "${HOSTNET_TAP}" == "yes"
1.1 root 39: CXXSRCS+= netdriver_tap.cpp
40: .endif
1.1.1.4 root 41: .if "${HOSTNET_BPF}" == "yes"
1.1 root 42: CXXSRCS+= netdriver_bpf.cpp
43: .endif
44:
1.1.1.8 ! root 45: OBJS= ${CXXSRCS:.cpp=.o}
1.1 root 46:
47: CLEANDIRFILES= Makefile
48:
49: libnnhost.a: ${OBJS}
50: rm -f $@
51: ${AR} r $@ $>
52: ${RANLIB} $@
1.1.1.3 root 53:
54: .include "../Makefile.rule"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.