mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-05 12:16:38 +02:00
30 lines
910 B
Makefile
30 lines
910 B
Makefile
# -*- Makefile -*-
|
|
# AUTOMAKE
|
|
|
|
AM_CPPFLAGS = ${regular_CPPFLAGS} -I${abs_top_srcdir}/extensions
|
|
AM_CFLAGS = ${regular_CFLAGS} ${libxtables_CFLAGS}
|
|
|
|
# Not having Kbuild in Makefile.extra because it will already recurse
|
|
.PHONY: modules modules_install clean_modules
|
|
|
|
_kcall = -C ${kbuilddir} M=${abs_srcdir}
|
|
|
|
modules:
|
|
@echo -n "Xtables-addons ${PACKAGE_VERSION} - Linux "
|
|
@if [ -n "${kbuilddir}" ]; then ${MAKE} ${_kcall} --no-print-directory -s kernelrelease; fi;
|
|
${AM_V_silent}if [ -n "${kbuilddir}" ]; then ${MAKE} ${_kcall} modules; fi;
|
|
|
|
modules_install:
|
|
${AM_V_silent}if [ -n "${kbuilddir}" ]; then ${MAKE} ${_kcall} INSTALL_MOD_PATH=${DESTDIR} ext-mod-dir='$${INSTALL_MOD_DIR}' modules_install; fi;
|
|
|
|
clean_modules:
|
|
${AM_V_silent}if [ -n "${kbuilddir}" ]; then ${MAKE} ${_kcall} clean; fi;
|
|
|
|
all-local: modules
|
|
|
|
install-exec-local: modules_install
|
|
|
|
clean-local: clean_modules
|
|
|
|
include ../Makefile.extra
|