summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-01-09 16:30:17 -0500
committerAndreas Gruenbacher <agruen@linbit.com>2014-01-09 23:15:09 +0100
commit9ce21bd8c28792dc81aba2349ffc8a64bf5e5df0 (patch)
tree534e009f5324de72ba7356ce68de614aa263ef5b /examples
parentb010dbc0db987468ab50fdae098797605808e342 (diff)
downloadattr-9ce21bd8c28792dc81aba2349ffc8a64bf5e5df0.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: - the xattr.conf file is now installed into sysconfdir by default - 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/Makefile30
-rw-r--r--examples/Makefile.examples9
2 files changed, 6 insertions, 33 deletions
diff --git a/examples/Makefile b/examples/Makefile
index f109739..8d6b5a3 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,27 +1,9 @@
-#
-# Copyright (c) 2001-2002 Silicon Graphics, Inc. All Rights Reserved.
-# Copyright (C) 2009 Andreas Gruenbacher <agruen@suse.de>
-#
-# 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, see <http://www.gnu.org/licenses/>.
-#
+CFLAGS = -g -Wall -I../include
+LDFLAGS = -lattr
-TOPDIR = ..
-include $(TOPDIR)/include/builddefs
+PROGS = copyattr
-LSRCFILES = copyattr.c
-LDIRT = copyattr
+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 05c7831..0000000
--- a/examples/Makefile.examples
+++ /dev/null
@@ -1,9 +0,0 @@
-CFLAGS = -g -Wall
-LDFLAGS = -lattr
-
-PROGS = copyattr
-
-all : $(PROGS)
-
-clean:
- rm -f $(PROGS)