summaryrefslogtreecommitdiffstats
path: root/Makefile.rules.in
Commit message (Collapse)AuthorAgeFilesLines
* build: autotools conversionPablo Neira Ayuso2014-11-121-96/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) This removes former Makefiles and install-sh (which is now automagically imported via autoreconf). Makefile.defs.in Makefile.in Makefile.rules.in src/Makefile.in install-sh (now automagically imported via autoreconf). 2) CFLAGS are left almost same, they are integrated into Make_global.am. Use AM_CPPFLAGS to set the CFLAGS set by pkgconfig. 3) Add m4 directory to the tree which only contains the .gitignore file. Update .gitignore file to skip autogenerated files. 4) include <config.h> whenever required. 5) Minor adjustments to scanner.l and parser_bison.y to compile cleanly with autotools. 6) Add %option outfile=lex.yy.c to scanner.l, otherwise I hit this error here: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DDEFAULT_INCLUDE_PATH="\"/usr/etc\"" -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wsign-compare -Winit-self -Wformat-nonliteral -Wformat-security -Wmissing-format-attribute -Wcast-align -Wundef -Wbad-function-cast -g -O2 -MT mnl.o -MD -MP -MF $depbase.Tpo -c -o mnl.o mnl.c &&\ mv -f $depbase.Tpo $depbase.Po /bin/sh ../build-aux/ylwrap scanner.l lex.yy.c scanner.c -- flex make[3]: *** [scanner.c] Error 1 make[3]: Leaving directory `/home/pablo/devel/scm/git-netfilter/nftables/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/pablo/devel/scm/git-netfilter/nftables/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/pablo/devel/scm/git-netfilter/nftables' make: *** [all] Error 2 7) Add Makefile.am for include/ (contributed by Giorgio Dal Molin). The doc/ and files/ conversion to automake will come in follow up patches but 'make distcheck' already works. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* build: fix documentation buildPatrick McHardy2014-04-141-2/+2
| | | | | | | | Handle the docbook2x-man mess that is called differently on different distributions. Also switch to dblatex since db2pdf is unable to handle XML on Fedora (and probably other distributions). Signed-off-by: Patrick McHardy <kaber@trash.net>
* build: fix recursive parser.h inclusionPatrick McHardy2014-01-161-1/+8
| | | | | | | | | | Ocassionally when regenerating the scanner or parser (not sure which), recursive inclusion of the parser.h file occurs. The reason is that bison doesn't generate a header sandwich to protect against this (*sigh*). Change the makefile to do this manually. Signed-off-by: Patrick McHardy <kaber@trash.net>
* nftables: drop hard coded install using root user owner and groupKevin Fenzi2014-01-131-1/+1
| | | | | | | | Packaging systems build as a non priv user, so can't install as root. Users installing from source can 'sudo make install' or run 'make install' as root Signed-off-by: Kevin Fenzi <kevin@scrye.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
* build: fix endless recursion with SUBDIRS=...Patrick McHardy2010-07-061-1/+1
| | | | Signed-off-by: Patrick McHardy <kaber@trash.net>
* build: add 'archive' targetPatrick McHardy2010-07-061-0/+4
| | | | | | make archive creates a tar.bz2 from the HEAD version. Signed-off-by: Patrick McHardy <kaber@trash.net>
* build: remove double subdir in build outputPatrick McHardy2009-03-181-1/+1
| | | | Signed-off-by: Patrick McHardy <kaber@trash.net>
* build: work around docbook2x-man inability to specify output filePatrick McHardy2009-03-181-1/+1
| | | | Signed-off-by: Patrick McHardy <kaber@trash.net>
* Initial commitv0.01-alpha1Patrick McHardy2009-03-181-0/+85