1#
2# Copyright (c) 2000-2002 Silicon Graphics, Inc.  All Rights Reserved.
3# 
4# This program is free software; you can redistribute it and/or modify it
5# under the terms of version 2.1 of the GNU Lesser General Public License
6# as published by the Free Software Foundation.
7# 
8# This program is distributed in the hope that it would be useful, but
9# WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11# 
12# Further, this software is distributed without any warranty that it is
13# free of the rightful claim of any third person regarding infringement
14# or the like.  Any license provided herein, whether implied or
15# otherwise, applies only to this software file.  Patent licenses, if
16# any, provided herein do not apply to combinations of this program with
17# other software, or any other product whatsoever.
18# 
19# You should have received a copy of the GNU Lesser General Public
20# License along with this program; if not, write the Free Software
21# Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307,
22# USA.
23# 
24# Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
25# Mountain View, CA  94043, or:
26# 
27# http://www.sgi.com 
28# 
29# For further information regarding this notice, see: 
30# 
31# http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
32#
33
34TOPDIR = ..
35
36LTLDFLAGS += -Wl,--version-script,$(TOPDIR)/exports
37include $(TOPDIR)/include/builddefs
38
39LTLIBRARY = libacl.la
40LTLIBS = $(LIBATTR) $(LIBMISC)
41LTDEPENDENCIES = $(LIBMISC)
42LT_CURRENT = 2
43LT_REVISION = 0
44LT_AGE = 1
45
46CFILES = $(POSIX_CFILES) $(LIBACL_CFILES) $(INTERNAL_CFILES) \
47	 perm_copy_fd.c perm_copy_file.c
48HFILES = libobj.h libacl.h byteorder.h __acl_from_xattr.h __acl_to_xattr.h \
49	 perm_copy.h
50
51LCFLAGS = -include perm_copy.h
52
53POSIX_CFILES = \
54	acl_add_perm.c acl_calc_mask.c acl_clear_perms.c acl_copy_entry.c \
55	acl_copy_ext.c acl_copy_int.c acl_create_entry.c acl_delete_def_file.c \
56	acl_delete_entry.c acl_delete_perm.c acl_dup.c acl_free.c \
57	acl_from_text.c acl_get_entry.c acl_get_fd.c acl_get_file.c \
58	acl_get_perm.c acl_get_permset.c acl_get_qualifier.c \
59	acl_get_tag_type.c acl_init.c acl_set_fd.c acl_set_file.c \
60	acl_set_permset.c acl_set_qualifier.c acl_set_tag_type.c acl_to_text.c \
61	acl_valid.c acl_size.c
62
63LIBACL_CFILES = \
64	acl_to_any_text.c acl_entries.c acl_check.c acl_error.c acl_cmp.c \
65	acl_extended_fd.c acl_extended_file.c acl_equiv_mode.c acl_from_mode.c
66
67INTERNAL_CFILES = \
68	__acl_to_any_text.c __acl_to_xattr.c __acl_from_xattr.c \
69	__acl_reorder_obj_p.c __libobj.c __apply_mask_to_mode.c
70
71
72default: $(LTLIBRARY)
73
74include $(BUILDRULES)
75
76install: default
77	$(INSTALL_LTLIB_DEV)
78
79install-dev: default
80	$(INSTALL_LTLIB_DEV)
81
82install-lib: default
83	$(INSTALL_LTLIB)
84