forked from Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
657 B
16 lines
657 B
# SPDX-License-Identifier: GPL-2.0 |
|
# |
|
# Copyright (C) 2015-2019 Jason A. Donenfeld <[email protected]>. All Rights Reserved. |
|
|
|
ccflags-y := -O3 |
|
ccflags-$(CONFIG_WIREGUARD_DEBUG) += -DDEBUG -g |
|
ccflags-y += -D'pr_fmt(fmt)=KBUILD_MODNAME ": " fmt' |
|
ccflags-y += -Wframe-larger-than=2048 |
|
ccflags-$(if $(WIREGUARD_VERSION),y,) += -D'WIREGUARD_VERSION="$(WIREGUARD_VERSION)"' |
|
|
|
wireguard-y := main.o noise.o device.o peer.o timers.o queueing.o send.o receive.o socket.o peerlookup.o allowedips.o ratelimiter.o cookie.o netlink.o |
|
|
|
include $(src)/crypto/Kbuild.include |
|
include $(src)/compat/Kbuild.include |
|
|
|
obj-$(if $(KBUILD_EXTMOD),m,$(CONFIG_WIREGUARD)) := wireguard.o
|
|
|