/ [pam-modules] / trunk / pam_sql / Makefile.am
To checkout: svn checkout http://svn.gnu.org.ua/sources/pam-modules/trunk/pam_sql/Makefile.am
Puszcza

Contents of /trunk/pam_sql/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 63 - (show annotations)
Thu Mar 13 13:53:32 2008 UTC (13 years, 7 months ago) by gray
File size: 2332 byte(s)
* configure.ac (PAM_COMMON_INCLUDES): Add -I${top_srcdir}/lib.
(AC_OUTPUT): Add lib/Makefile.
* doc/pam-modules.texi: Document `transform' option.
* Make.rules: New file.

* lib/mem.c, lib/slist.c, lib/log.c, lib/converse.c,
lib/graypam.h, lib/Makefile.am, lib/transform.c.

* pam_regex/pam_regex.c: Implement user name transformations.

* pam_fshadow/Makefile.am, pam_sql/Makefile.am:
Add ../lib/libgraypam.la to LDADD
* pam_fshadow/pam_fshadow.c, pam_sql/pam_mysql.c,
pam_sql/pam_pgsql.c, pam_sql/pam_sql.c: Use functions from ../lib.

1 # Copyright (C) 2005, 2006, 2008 Sergey Poznyakoff
2 #
3 # This file is free software; as a special exception the author gives
4 # unlimited permission to copy and/or distribute it, with or without
5 # modifications, as long as this notice is preserved.
6 #
7 # This program is distributed in the hope that it will be useful, but
8 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
11 pamdir=@PAMDIR@
12 pam_PROGRAMS = @SQL_MODULES@
13 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = pam_mysql.la pam_pgsql.la
14 EXTRA_PROGRAMS = pam_mysql.la pam_pgsql.la
15 EXTRA_DIST = sha1.h sha1.c pam_sql.c md5.c md5.h
16 LDADD = ../lib/libgraypam.la
17 pam_mysql_la_SOURCES = pam_mysql.c pam_sql.c
18 pam_mysql_la_LDADD = -lpam @MYSQLLIBS@
19 pam_pgsql_la_SOURCES = pam_pgsql.c pam_sql.c
20 pam_pgsql_la_LDADD = -lpam @PGSQLLIBS@
21 AM_LDFLAGS = -version-info @VI_CURRENT@:@VI_REVISION@:@VI_AGE@
22
23 AM_CPPFLAGS=-DSYSCONFDIR=\"${sysconfdir}\"
24 INCLUDES=@PAM_COMMON_INCLUDES@
25 NORMAL_UNINSTALL = list='$(pam_PROGRAMS)' ;\
26 for mod in $$list ;\
27 do \
28 name=`expr $$mod : '\(.*\)\.la'`; \
29 rm -f $(DESTDIR)$(pamdir)/$${name}.a \
30 $(DESTDIR)$(pamdir)/$${name}.so.@VI_CURRENT@.@VI_REVISION@.@VI_AGE@; \
31 done
32
33 pam_mysql.lo: $(srcdir)/pam_sql.c $(srcdir)/sha1.c $(srcdir)/sha1.h
34 pam_pgsql.lo: $(srcdir)/pam_sql.c
35
36 pam_mysql.lo: $(srcdir)/pam_mysql.c
37 $(LIBTOOL) --mode=compile $(CC) -o$@ -c -DHAVE_CONFIG_H \
38 $(CFLAGS) $(AM_CFLAGS) $(INCLUDES) $(CPPFLAGS) $(AM_CPPFLAGS) \
39 -DMODULE_NAME=\"pam_mysql\" $<
40
41 pam_pgsql.lo: $(srcdir)/pam_pgsql.c
42 $(LIBTOOL) --mode=compile $(CC) -o$@ -c -DHAVE_CONFIG_H \
43 $(CFLAGS) $(AM_CFLAGS) $(INCLUDES) $(CPPFLAGS) $(AM_CPPFLAGS) \
44 -DMODULE_NAME=\"pam_pgsql\" $<
45
46 pam_mysql.la$(EXEEXT): pam_mysql.lo sha1.lo md5.lo
47 $(LIBTOOL) --mode=link $(CC) -module -export-dynamic \
48 $(AM_LDFLAGS) $(pam_mysql_la_LDFLAGS) $(LDFLAGS) \
49 -o $@ pam_mysql.lo sha1.lo md5.lo $(pam_mysql_la_LDADD) $(AM_LDADD) $(LDADD) \
50 -rpath $(pamdir)
51
52 pam_pgsql.la$(EXEEXT): pam_pgsql.lo
53 $(LIBTOOL) --mode=link $(CC) -module -export-dynamic \
54 $(AM_LDFLAGS) $(pam_pgsql_la_LDFLAGS) $(LDFLAGS) \
55 -o $@ $< $(pam_pgsql_la_LDADD) $(AM_LDADD) $(LDADD) \
56 -rpath $(pamdir)

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20