# -*- 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= sysconfdir=${prefix}/etc exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include mandir=${prefix}/man bindir=${exec_prefix}/bin sbindir=${exec_prefix}/sbin top_builddir=. top_srcdir=. LIBS=-ldb41 -lldap -pipe -no-cpp-precomp -L/usr/lib/mysql -lmysqlclient -lz -lm INSTALL=/usr/bin/install -c -o root -g wheel INSTALL_PROGRAM=install -s -o root -g wheel -m 555 INSTALL_DATA=install -o root -g wheel -m 444 INSTALL_SCRIPT=install -o root -g wheel -m 555 CPPFLAGS=-I. -I/usr/include/mysql -fno-omit-frame-pointer -pipe -no-cpp-precomp -I/usr/local/include/db41 -DDEFAULT_HOME_CONF=\"${prefix}/etc/home.conf\" CC=cc #-DDEFAULT_HOME_CONF=\"${sysconfdir}/home.conf\" NSS_VERSION=1 SOCKET_LIBS= HOME_PROXY= home_proxy NSS_LIB=#nss_home_proxy.la all: Makefile libhome.la compat home.conf.0 home_finger \ ${HOME_PROXY} ${NSS_LIB} home_su nss: ${NSS_LIB} OBJS= homeuser$U.o error$U.o hparam$U.o rewrite$U.o cleanup$U.o wrap$U.o tools$U.o hsystem$U.o expand$U.o hldap$U.o hproxy$U.o hmysql$U.o cache3$U.o rewritedb$U.o LTOBJS= homeuser$U.lo error$U.lo hparam$U.lo rewrite$U.lo cleanup$U.lo wrap$U.lo tools$U.lo hsystem$U.lo expand$U.lo hldap$U.lo hproxy$U.lo hmysql$U.lo cache3$U.lo rewritedb$U.lo 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} ${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 home_proxy: home_proxy.c libhome.la ${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/ ${INSTALL_DATA} home_proxy.8 ${mandir}/man8/ install-lib:: all ${LIBTOOL} --mode=install ${INSTALL_DATA} libhome.la ${libdir}/ test "" = "" || \ ${LIBTOOL} --mode=install ${INSTALL_DATA} ${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}/ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} home_proxy ${sbindir}/ # ${LIBTOOL} --mode=install ${INSTALL_DATA} ${NSS_LIB} ${libdir}/ install-nss:: 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 = ./ltmain.sh libtool: $(LIBTOOL_DEPS) $(SHELL) ./config.status --recheck