xref: /OK3568_Linux_fs/kernel/net/l2tp/Makefile (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# Makefile for the L2TP.
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun
6*4882a593Smuzhiyunobj-$(CONFIG_L2TP) += l2tp_core.o
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunCFLAGS_l2tp_core.o += -I$(src)
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun# Build l2tp as modules if L2TP is M
11*4882a593Smuzhiyunobj-$(subst y,$(CONFIG_L2TP),$(CONFIG_PPPOL2TP)) += l2tp_ppp.o
12*4882a593Smuzhiyunobj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_IP)) += l2tp_ip.o
13*4882a593Smuzhiyunobj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_V3)) += l2tp_netlink.o
14*4882a593Smuzhiyunobj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_ETH)) += l2tp_eth.o
15*4882a593Smuzhiyunobj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_DEBUGFS)) += l2tp_debugfs.o
16*4882a593Smuzhiyunifneq ($(CONFIG_IPV6),)
17*4882a593Smuzhiyunobj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_IP)) += l2tp_ip6.o
18*4882a593Smuzhiyunendif
19