]> granicus.if.org Git - shadow/blob - lib/Makefile.am
[svn-upgrade] Integrating new upstream version, shadow (19990709)
[shadow] / lib / Makefile.am
1
2 AUTOMAKE_OPTIONS = 1.0 foreign
3
4 noinst_HEADERS = commonio.h defines.h dialchk.h dialup.h \
5  faillog.h getdef.h groupio.h md5.h pam_defs.h port.h prototypes.h \
6  pwauth.h pwio.h rcsid.h sgroupio.h shadowio.h snprintf.h \
7  tcfsio.h
8
9 localedir = $(datadir)/locale
10 DEFS = -DLOCALEDIR=\"$(localedir)\" -I. -I$(srcdir) -I.. @DEFS@
11
12 # These files are unneeded for some reason, listed in
13 # order of appearance:
14 #
15 # sources which are not really needed (are they in libc???)
16 # sources for dbm support (not yet used)
17 # sources for LIBOBJS (which are normally in libc)
18 # misc header sources
19
20 EXTRA_DIST = grdbm.c gsdbm.c pwdbm.c spdbm.c \
21  grpack.c gspack.c pwpack.c sppack.c \
22  gshadow_.h shadow_.h lastlog_.h snprintf.h
23
24 EXTRA_libshadow_a_SOURCESS = grent.c pwent.c \
25  mkdir.c rename.c rmdir.c strdup.c strcasecmp.c strerror.c strstr.c \
26  putgrent.c putpwent.c putspent.c \
27  sgetgrent.c sgetpwent.c sgetspent.c snprintf.c \
28  md5.c md5crypt.c
29
30 # We build libshadow for our tools.
31
32 noinst_LIBRARIES = libshadow.a
33
34 libshadow_a_SOURCES = commonio.c dialchk.c dialup.c encrypt.c \
35  fputsx.c getdef.c getpass.c groupio.c gshadow.c lockpw.c port.c \
36  pwauth.c pwio.c rad64.c sgroupio.c shadow.c shadowio.c utent.c \
37  tcfsio.c
38
39 libshadow_a_LIBADD = @LIBOBJS@
40
41 INCLUDES = -I$(top_srcdir)/lib
42
43 # shared library support
44 libdir = ${exec_prefix}/lib
45 #lib_PROGRAMS = libshadow.la
46 lib_LTLIBRARIES = libshadow.la
47 libshadow_la_SOURCES = ${libshadow_a_SOURCES}
48 #libshadow_la_LIBADD = @LTLIBOBJS@
49 #libshadow_la_LDFLAGS = -version-info 0:0:0 -rpath $(libdir)
50 libshadow_la_LDFLAGS = -version-info 0:0:0
51
52 # remove the libshadow.so -> libshadow.so.x.x symlink, because this
53 # library is for internal use by this package only.  Shadow support
54 # is in libc and no one should be using -lshadow anymore.
55 install-exec-hook:
56         rm -f $(libdir)/libshadow.so
57