<commit_before># Makefile for netmap on windows
#
# Compile netmap as a module, useful if you want a netmap bridge
# or loadable drivers.

#.include <bsd.own.mk> # FreeBSD 10 and earlier
# .include "${SYSDIR}/conf/kern.opts.mk"

.PATH: ${.CURDIR}/../sys/dev/netmap
.PATH.h: ${.CURDIR}/../sys/net

CFLAGS += -I${.CURDIR}/../../sys -include win_glue.h
CFLAGS += -DAMD64=1
DDK ?= c:/WinDDK/7600.16385.1

KMOD	= netmap
SRCS	= device_if.h bus_if.h opt_netmap.h
SRCS	+= netmap.c
# netmap.h netmap_kern.h
SRCS	+= netmap_mem2.c netmap_mem2.h
SRCS	+= netmap_generic.c
SRCS	+= netmap_mbq.c netmap_mbq.h
SRCS	+= netmap_vale.c
SRCS	+= netmap_freebsd.c
SRCS	+= netmap_offloadings.c
SRCS	+= netmap_pipe.c
SRCS	+= netmap_monitor.c
SRCS	+= opt_inet.h opt_inet6.h

_not_working:
	@echo "--- the makefile is not working yet, use msbuild ---"
	(cd VsSolution; sh go)

all: pre-build do-build

pre-build:
	-rm -rf win-build
	mkdir -p win-build
	cp -p ../sys/dev/netmap/*.[ch] win-build<commit_msg>add a clean entry<commit_after># Makefile for netmap on windows
#
# Compile netmap as a module, useful if you want a netmap bridge
# or loadable drivers.

#.include <bsd.own.mk> # FreeBSD 10 and earlier
# .include "${SYSDIR}/conf/kern.opts.mk"

.PATH: ${.CURDIR}/../sys/dev/netmap
.PATH.h: ${.CURDIR}/../sys/net

CFLAGS += -I${.CURDIR}/../../sys -include win_glue.h
CFLAGS += -DAMD64=1
DDK ?= c:/WinDDK/7600.16385.1

KMOD	= netmap
SRCS	= device_if.h bus_if.h opt_netmap.h
SRCS	+= netmap.c
# netmap.h netmap_kern.h
SRCS	+= netmap_mem2.c netmap_mem2.h
SRCS	+= netmap_generic.c
SRCS	+= netmap_mbq.c netmap_mbq.h
SRCS	+= netmap_vale.c
SRCS	+= netmap_freebsd.c
SRCS	+= netmap_offloadings.c
SRCS	+= netmap_pipe.c
SRCS	+= netmap_monitor.c
SRCS	+= opt_inet.h opt_inet6.h

_not_working:
	@echo "--- the makefile is not working yet, use msbuild ---"
	(cd VsSolution; sh go)

clean:
	rm -rf VsSolution/Output

all: pre-build do-build

pre-build:
	-rm -rf win-build
	mkdir -p win-build
	cp -p ../sys/dev/netmap/*.[ch] win-build
{'fraction_non_alphanumeric': 0.1571285140562249, 'fraction_numerical': 0.018072289156626505, 'mean_word_length': 3.4887387387387387, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7172374', 'n_tokens_mistral': 897, 'n_tokens_neox': 861, 'n_words': 206}