aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/src/Kbuild
blob: 6d26fe29e6d1f38455d06440cc3b80a6d931c14d (plain) (tree)
1
2
3
4
5
6
7
8
9

                                  
                                                                                    
 
                                    
                                               
                                                    
 
                                                                                                                                                      
 
                                    

                                    
                                                               
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.

ccflags-y := -O3 -fvisibility=hidden
ccflags-$(CONFIG_WIREGUARD_DEBUG) += -DDEBUG -g
ccflags-y += -D'pr_fmt(fmt)=KBUILD_MODNAME ": " fmt'

wireguard-y := main.o noise.o device.o peer.o timers.o queueing.o send.o receive.o socket.o hashtables.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