mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2026-05-02 08:49:39 +02:00
Because we are likely to be having more userspace programs soon, and
reproducing manual makefiles is a bad idea, make extensions/ ready
for automake traversal. The build pattern now is:
1. toplevel Makefile.am starts off with extensions/Makefile.am
2. Makefile.am
a. builds programs in current directory
b. runs Kbuild
- only from extensions/Makefile.am
(so it does not get reinvoked from case 2cII)
- Kbuild recurses on its own
c. runs Mbuild
I. builds iptables shared libraries in current directory
II. runs Makefile.am in each subdir (goto step 2.)
25 lines
594 B
Makefile
25 lines
594 B
Makefile
# -*- Makefile -*-
|
|
# AUTOMAKE
|
|
|
|
# Not having Kbuild in Makefile.extra because it will already recurse
|
|
.PHONY: modules modules_install clean_modules
|
|
|
|
_kcall = ${MAKE} -C ${kbuilddir} M=${abs_srcdir}
|
|
|
|
modules:
|
|
${AM_V_silent}if [ -n "${kbuilddir}" ]; then ${_kcall} modules; fi;
|
|
|
|
modules_install:
|
|
${AM_V_silent}if [ -n "${kbuilddir}" ]; then ${_kcall} INSTALL_MOD_PATH=${DESTDIR} modules_install; fi;
|
|
|
|
clean_modules:
|
|
${AM_V_silent}if [ -n "${kbuilddir}" ]; then ${_kcall} clean; fi;
|
|
|
|
all-local: modules
|
|
|
|
install-exec-local: modules_install
|
|
|
|
clean-local: clean_modules
|
|
|
|
include ../Makefile.extra
|