/ [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 61 - (show annotations)
Mon Aug 27 22:38:35 2007 UTC (14 years, 5 months ago) by gray
File size: 2297 byte(s)
Lots of fixes in pam_mysql
1 # Copyright (C) 2005, 2006 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 pam_mysql_la_SOURCES = pam_mysql.c pam_sql.c
17 pam_mysql_la_LDADD = -lpam @MYSQLLIBS@
18 pam_pgsql_la_SOURCES = pam_pgsql.c pam_sql.c
19 pam_pgsql_la_LDADD = -lpam @PGSQLLIBS@
20 AM_LDFLAGS = -version-info @VI_CURRENT@:@VI_REVISION@:@VI_AGE@
21
22 AM_CPPFLAGS=-DSYSCONFDIR=\"${sysconfdir}\"
23 INCLUDES=@PAM_COMMON_INCLUDES@
24 NORMAL_UNINSTALL = list='$(pam_PROGRAMS)' ;\
25 for mod in $$list ;\
26 do \
27 name=`expr $$mod : '\(.*\)\.la'`; \
28 rm -f $(DESTDIR)$(pamdir)/$${name}.a \
29 $(DESTDIR)$(pamdir)/$${name}.so.@VI_CURRENT@.@VI_REVISION@.@VI_AGE@; \
30 done
31
32 pam_mysql.lo: $(srcdir)/pam_sql.c $(srcdir)/sha1.c $(srcdir)/sha1.h
33 pam_pgsql.lo: $(srcdir)/pam_sql.c
34
35 pam_mysql.lo: $(srcdir)/pam_mysql.c
36 $(LIBTOOL) --mode=compile $(CC) -o$@ -c -DHAVE_CONFIG_H \
37 $(CFLAGS) $(AM_CFLAGS) $(INCLUDES) $(CPPFLAGS) $(AM_CPPFLAGS) \
38 -DMODULE_NAME=\"pam_mysql\" $<
39
40 pam_pgsql.lo: $(srcdir)/pam_pgsql.c
41 $(LIBTOOL) --mode=compile $(CC) -o$@ -c -DHAVE_CONFIG_H \
42 $(CFLAGS) $(AM_CFLAGS) $(INCLUDES) $(CPPFLAGS) $(AM_CPPFLAGS) \
43 -DMODULE_NAME=\"pam_pgsql\" $<
44
45 pam_mysql.la$(EXEEXT): pam_mysql.lo sha1.lo md5.lo
46 $(LIBTOOL) --mode=link $(CC) -module -export-dynamic \
47 $(AM_LDFLAGS) $(pam_mysql_la_LDFLAGS) $(LDFLAGS) \
48 -o $@ pam_mysql.lo sha1.lo md5.lo $(pam_mysql_la_LDADD) $(AM_LDADD) $(LDADD) \
49 -rpath $(pamdir)
50
51 pam_pgsql.la$(EXEEXT): pam_pgsql.lo
52 $(LIBTOOL) --mode=link $(CC) -module -export-dynamic \
53 $(AM_LDFLAGS) $(pam_pgsql_la_LDFLAGS) $(LDFLAGS) \
54 -o $@ $< $(pam_pgsql_la_LDADD) $(AM_LDADD) $(LDADD) \
55 -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