Apply ASLR to attr
[platform/upstream/attr.git] / libattr / Makefile
1 #
2 # Copyright (c) 2000-2002 Silicon Graphics, Inc.  All Rights Reserved.
3 # Copyright (C) 2009  Andreas Gruenbacher <agruen@suse.de>
4 #
5 # This program is free software: you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 #
18
19 TOPDIR = ..
20
21 LTLDFLAGS += -Wl,--version-script,$(TOPDIR)/exports
22 include $(TOPDIR)/include/builddefs
23
24 LTLIBRARY = libattr.la
25 LT_CURRENT = 2
26 LT_REVISION = 0
27 LT_AGE = 1
28
29 CFILES = libattr.c attr_copy_fd.c attr_copy_file.c attr_copy_check.c attr_copy_action.c
30 HFILES = libattr.h
31
32 ifeq ($(PKG_PLATFORM),linux)
33 CFILES += syscalls.c
34 else
35 LSRCFILES = syscalls.c
36 endif
37
38 LCFLAGS = -include libattr.h
39
40 default: $(LTLIBRARY)
41
42 include $(BUILDRULES)
43
44 install:
45
46 install-lib: default
47         $(INSTALL_LTLIB)
48
49 install-dev: default
50         $(INSTALL_LTLIB_DEV)