2 AUTOMAKE_OPTIONS = 1.0 foreign
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 \
9 localedir = $(datadir)/locale
10 DEFS = -DLOCALEDIR=\"$(localedir)\" -I. -I$(srcdir) -I.. @DEFS@
12 # These files are unneeded for some reason, listed in
13 # order of appearance:
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)
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
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 \
30 # We build libshadow for our tools.
32 noinst_LIBRARIES = libshadow.a
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 \
39 libshadow_a_LIBADD = @LIBOBJS@
41 INCLUDES = -I$(top_srcdir)/lib
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
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.
56 rm -f $(libdir)/libshadow.so