blob: cf8f27071d3f758af0bc1fbd1c0a055722650dea [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
James Chapman21b4aaa2010-04-02 06:18:28 +00002#
3# Makefile for the L2TP.
4#
5
James Chapmanfd558d12010-04-02 06:18:33 +00006obj-$(CONFIG_L2TP) += l2tp_core.o
7
Tom Parkin3f117d62020-08-22 15:59:04 +01008CFLAGS_l2tp_core.o += -I$(src)
9
James Chapmanfd558d12010-04-02 06:18:33 +000010# Build l2tp as modules if L2TP is M
11obj-$(subst y,$(CONFIG_L2TP),$(CONFIG_PPPOL2TP)) += l2tp_ppp.o
James Chapman0d767512010-04-02 06:19:00 +000012obj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_IP)) += l2tp_ip.o
James Chapman309795f2010-04-02 06:19:10 +000013obj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_V3)) += l2tp_netlink.o
James Chapmand9e31d12010-04-02 06:19:26 +000014obj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_ETH)) += l2tp_eth.o
James Chapman0ad66142010-04-02 06:19:33 +000015obj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_DEBUGFS)) += l2tp_debugfs.o
Chris Elstona32e0ee2012-04-29 21:48:54 +000016ifneq ($(CONFIG_IPV6),)
17obj-$(subst y,$(CONFIG_L2TP),$(CONFIG_L2TP_IP)) += l2tp_ip6.o
18endif