mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-12-31 12:23:52 +01: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.)
30 lines
530 B
Makefile
30 lines
530 B
Makefile
# -*- Makefile -*-
|
|
# AUTOMAKE
|
|
|
|
XA_SRCDIR = ${srcdir}
|
|
XA_TOPSRCDIR = ${top_srcdir}
|
|
XA_ABSTOPSRCDIR = ${abs_top_srcdir}
|
|
export XA_SRCDIR
|
|
export XA_TOPSRCDIR
|
|
export XA_ABSTOPSRCDIR
|
|
|
|
_mcall = ${MAKE} -f ${top_builddir}/Makefile.iptrules
|
|
|
|
all-local: user-all-local
|
|
|
|
install-exec-local: user-install-local
|
|
|
|
clean-local: user-clean-local
|
|
|
|
user-all-local:
|
|
${_mcall} all;
|
|
|
|
# Have no user-install-data-local ATM
|
|
user-install-local: user-install-exec-local
|
|
|
|
user-install-exec-local:
|
|
${_mcall} install;
|
|
|
|
user-clean-local:
|
|
${_mcall} clean;
|