# -*- Makefile -*- # # Linux KNET Callback module. # # $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.$ # 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: