# -*- Makefile -*- # Copyright 2000, 2001, 2002, 2003 Laurent Wacrenier # # This file is part of libhome # # libhome is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # libhome is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with libhome; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA # $Id: Makefile.in,v 1.53 2005/07/01 14:39:08 lwa Exp $ VERSION_INFO=1 prefix=@prefix@ sysconfdir=@sysconfdir@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ mandir=@mandir@ bindir=@bindir@ sbindir=@sbindir@ top_builddir=. top_srcdir=@top_srcdir@ LIBS=@LIBS@ INSTALL=@INSTALL@ INSTALL_PROGRAM=@INSTALL_PROGRAM@ INSTALL_DATA=@INSTALL_DATA@ INSTALL_SCRIPT=@INSTALL_SCRIPT@ CPPFLAGS=-I. @CPPFLAGS@ -DDEFAULT_HOME_CONF=\"@CONFFILE@\" CC=@CC@ #-DDEFAULT_HOME_CONF=\"${sysconfdir}/home.conf\" NSS_VERSION=@NSS_VERSION@ SOCKET_LIBS=@SOCKET_LIBS@ HOME_PROXY=@DO_PROXY@ home_proxy NSS_LIB=@DO_NSS@@NSS_PREFIX@nss_home_proxy.la all: Makefile libhome.la compat home.conf.0 home_finger @PRELOAD_LIB@ \ ${HOME_PROXY} ${NSS_LIB} home_su nss: ${NSS_LIB} OBJS=@LIBOBJS@ LTOBJS=@LTLIBOBJS@ LIBTOOL=./libtool COMPILE=${LIBTOOL} --mode=compile ${CC} ${CPPFLAGS} ${CFLAGS} LINK=${LIBTOOL} --mode=link ${CC} ${CFLAGS} hparam.o: version.h version: perl -pi -e 's/\d+/$$&+1/e if /#define MINOR/' version.h .SUFFIXES: .lo .c.lo: hparam.h ${COMPILE} -c $< libhome.la: ${LTOBJS} ${LINK} -o $@ ${LTOBJS} -rpath ${libdir} -version-info ${VERSION_INFO} ${LIBS} libhome-preload.la: libhome-preload.lo ${LTOBJS} ${LINK} -module -o $@ libhome-preload.lo -rpath ${libdir} -version-info ${VERSION_INFO} ${LTOBJS} ${LIBS} @PRELOAD_LIBS@ ${NSS_LIB}: nss_home_proxy.lo ${LTOBJS} ${LINK} -module -export-dynamic -o $@ nss_home_proxy.lo ${SOCKET_LIBS} -rpath ${libdir} -version-info ${NSS_VERSION} clean: rm -f *.o *.la *.core ktrace.out finger home.conf.0 *.lo *.loT core rm -rf home_finger home_su home_proxy rm -rf compat rm -rf .libs distclean: clean rm -f libtool rm -f config.cache config.log configure.lineno *~ rm -f config.status config.h home.conf.5 home_version.h libhome.sh rm -f stamp-h Makefile rm -rf autom4te.cache home.conf.0: home.conf.5 nroff -man home.conf.5 > home.conf.0 home_finger: home_finger.c libhome.la compat ${LINK} -o home_finger -Icompat -lcrypt home_finger.c libhome.la home_su: home_su.c libhome.la compat ${LINK} -o home_su -Icompat home_su.c libhome.la home_expire_cache: home_expire_cache.o libhome.a ${LINK} -o home_expire_cache home_expire_cache.o libhome.la @DO_PROXY@home_proxy: home_proxy.c libhome.la @DO_PROXY@ ${LINK} -o home_proxy ${CPPFLAGS} -I. home_proxy.c libhome.la install:: install-man install-lib install-man:: home.conf.5 ${INSTALL_DATA} home.conf.5 ${mandir}/man5/ @DO_PROXY@ ${INSTALL_DATA} home_proxy.8 ${mandir}/man8/ install-lib:: all ${LIBTOOL} --mode=install ${INSTALL_DATA} libhome.la ${libdir}/ test "@PRELOAD_LIB@" = "" || \ ${LIBTOOL} --mode=install ${INSTALL_DATA} @PRELOAD_LIB@ ${libdir}/ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} home_finger ${bindir}/ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} home_su ${bindir}/ -mkdir -p ${includedir}/home ${INSTALL_DATA} hpwd.h ${includedir}/home/pwd.h ${INSTALL_DATA} hpwd.h ${includedir}/home/ ${INSTALL_DATA} hparam.h ${includedir}/home/ ${INSTALL_DATA} home_version.h ${includedir}/home/ chmod +x libhome.sh ${INSTALL_SCRIPT} libhome.sh ${bindir}/ @DO_PROXY@ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} home_proxy ${sbindir}/ @DO_NSS@ ${LIBTOOL} --mode=install ${INSTALL_DATA} ${NSS_LIB} ${libdir}/ install-nss:: nss @DO_NSS@ ${LIBTOOL} --mode=install ${INSTALL_DATA} ${NSS_LIB} ${libdir}/ compat: -mkdir compat -ln -s ../hpwd.h compat/hpwd.h -ln -s ../hparam.h compat/hparam.h -ln -s hpwd.h compat/pwd.h -ln -s home_version.h compat/home_version.h #configure: configure.in # autoconf config.h.in: stamp-h.in #stamp-h.in: configure.in aclocal.m4 acconfig.h # autoheader # echo > stamp-h.in config.h: stamp-h stamp-h: config.h.in config.status ./config.status Makefile: Makefile.in config.status ./config.status config.status: configure ./config.status --recheck LIBTOOL_DEPS = @LIBTOOL_DEPS@ libtool: $(LIBTOOL_DEPS) $(SHELL) ./config.status --recheck