Add a Makefile for a lean install on a Debian 11 syste,

I really don't want this entire nightmare of C++ code generating shell
scripts that call Perl code to generate text config files which are then
finally parsed by C progrrams again.  All I want is to have the minimal required
drivers + tool (wanconfig)
This commit is contained in:
Harald Welte 2021-12-30 12:23:20 +01:00
parent 95c8c09dd6
commit a4ba1ce3ff
1 changed files with 25 additions and 0 deletions

25
Makefile.debian11 Normal file
View File

@ -0,0 +1,25 @@
# Makefile for building a "lean" version of the sangoma wanpipe drivers for use with DAHDI
# on a Debian GNU/Linux 11 (bullseye) system
#
# Author: Harald Welte <laforge@osmocom.org>
# Path to your (already built) DAHDI installation
DAHDI_DIR:=$(HOME)/dahdi-linux
KBUILD_EXTRA_SYMBOLS:=$(DAHDI_DIR)/drivers/dahdi/Module.symvers
KVER:=$(shell uname -r)
KMOD:=/lib/modules/$(KVER)
NPROC:=$(shell nproc)
all: build
build:
$(MAKE) -j $(NPROC) -C util/libsangoma
$(MAKE) -j $(NPROC) -C util/wanconfig
$(MAKE) -j $(NPROC) -f Makefile all_kmod_dahdi DAHDI_DIR=$(DAHDI_DIR) KBUILD_EXTRA_SYMBOLS=$(KBUILD_EXTRA_SYMBOLS)
install:
$(MAKE) -C util/libsangoma install
$(MAKE) -C util/wanconfig install
$(MAKE) -f Makefile install_kmod KINSTDIR=$(KMOD)/wanpipe