diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-01-10 10:07:41 -0500 |
---|---|---|
committer | Andreas Gruenbacher <agruen@linbit.com> | 2014-01-13 13:18:39 +0100 |
commit | c8f23c92177c5a82ab3699b1b0d4acbee9afb770 (patch) | |
tree | 72b6c7cf7a006babd2177055d8c61d1f6bd15375 /examples | |
parent | 2d13383b7fbcc04fc16681caa4f43d9d9083cca1 (diff) | |
download | acl-c8f23c92177c5a82ab3699b1b0d4acbee9afb770.tar.gz |
modernize build system
This deletes the hand rolled build system and replaces it entirely
with autotools. The overall diffstat shows that this is a clear
win, and it makes the package build/install like every other autotool
package out there which makes the lives of distro maintainers a lot
easier.
This should also be faster by virtue of using a non-recursive build.
Things to note:
- to generate autotools:
./autogen.sh
- to see full compile output:
make V=1
- to build specific targets:
make attr getfattr ...
- to run tests:
make check
- to create a release:
make distcheck -j
Other non-developer things:
- man pages are no longer compressed as this is uncommon in the
autotools world and distros don't need it anyways (they already
handle it automatically for most pakages)
- the minor # of the shared library is now based on the package
version so it'll be much bigger ... this isn't a problem, and
is actually a bugfix (older releases didn't change when they
should have)
(Again, this is all using the standard autotool targets.)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile | 30 | ||||
-rw-r--r-- | examples/Makefile.examples | 9 | ||||
-rw-r--r-- | examples/Makemodule.am | 7 |
3 files changed, 13 insertions, 33 deletions
diff --git a/examples/Makefile b/examples/Makefile index c6aa124..74642ca 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,27 +1,9 @@ -# -# Copyright (c) 2001-2002 Silicon Graphics, Inc. All Rights Reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# +CFLAGS = -g -Wall -I../include +LDFLAGS = -lacl -TOPDIR = .. -include $(TOPDIR)/include/builddefs +PROGS = get-acl copy-acl set-acl copyperm -LSRCFILES = README Makefile.examples get-acl.c set-acl.c copy-acl.c copyperm.c -LDIRT = get-acl set-acl copy-acl +all: $(PROGS) -include $(BUILDRULES) - -default install install-dev install-lib: +clean: + rm -f $(PROGS) diff --git a/examples/Makefile.examples b/examples/Makefile.examples deleted file mode 100644 index b33c2a5..0000000 --- a/examples/Makefile.examples +++ /dev/null @@ -1,9 +0,0 @@ -CFLAGS = -g -Wall -LDFLAGS = -lacl - -PROGS = get-acl copy-acl set-acl copyperm - -all: $(PROGS) - -clean: - rm -f $(PROGS) diff --git a/examples/Makemodule.am b/examples/Makemodule.am new file mode 100644 index 0000000..e18991a --- /dev/null +++ b/examples/Makemodule.am @@ -0,0 +1,7 @@ +EXTRA_DIST += \ + examples/copy-acl.c \ + examples/copyperm.c \ + examples/get-acl.c \ + examples/Makefile \ + examples/README \ + examples/set-acl.c |