xref: /openbmc/linux/net/l2tp/Makefile (revision 3f117d6f)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
221b4aaa1SJames Chapman#
321b4aaa1SJames Chapman# Makefile for the L2TP.
421b4aaa1SJames Chapman#
521b4aaa1SJames Chapman
6fd558d18SJames Chapmanobj-$(CONFIG_L2TP) += l2tp_core.o
7fd558d18SJames Chapman
83f117d6fSTom ParkinCFLAGS_l2tp_core.o += -I$(src)
93f117d6fSTom Parkin
10fd558d18SJames Chapman# Build l2tp as modules if L2TP is M
11fd558d18SJames Chapmanobj-$(subst y,$(CONFIG_L2TP),$(CONFIG_PPPOL2TP)) += l2tp_ppp.o
120d76751fSJames Chapmanobj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_IP)) += l2tp_ip.o
13309795f4SJames Chapmanobj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_V3)) += l2tp_netlink.o
14d9e31d17SJames Chapmanobj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_ETH)) += l2tp_eth.o
150ad66140SJames Chapmanobj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_DEBUGFS)) += l2tp_debugfs.o
16a32e0eecSChris Elstonifneq ($(CONFIG_IPV6),)
17a32e0eecSChris Elstonobj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_IP)) += l2tp_ip6.o
18a32e0eecSChris Elstonendif
19