sonic-buildimage/platform/broadcom/saibcm-modules/sdklt/linux/knetcb/Makefile

52 lines
1.1 KiB
Makefile
Raw Normal View History

# -*- Makefile -*-
#
# Linux KNET Callback module.
#
2021-10-28 02:12:32 -05:00
# $Copyright: Copyright 2018-2021 Broadcom. All rights reserved.
# The term 'Broadcom' refers to Broadcom Inc. and/or its subsidiaries.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# A copy of the GNU General Public License version 2 (GPLv2) can
# be found in the LICENSES folder.$
#
2021-10-28 02:12:32 -05:00
ifdef KPMD
BCMPKTDIR = $(SDK)/bcmpkt
KPMDDIR = $(SDK)/linux/knetcb
SHRDIR = $(SDK)/shr
.PHONY: mklinks rmlinks
knetcb: mklinks
$(MAKE) all
# SDK make helper for stand-alone PMD kernel module
include $(SDK)/make/kpmd.mk
distclean: rmlinks
endif #KPMD
include Kbuild
ifeq ($(KERNELRELEASE),)
MOD_NAME = linux_ngknetcb
include $(SDK)/make/lkm.mk
endif
.PHONY: distclean
distclean: