# Makefile for pam_vsd # Copyright (c) 2001 Idaya Ltd. # Contributed by Nick Burrett # This file is part of the Virtual Server Administrator (FreeVSD) # FreeVSD is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # FreeVSD 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 General Public License for more details. # You should have received a copy of the GNU General Public License # along with FreeVSD; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. prefix=@prefix@ exec_prefix=@exec_prefix@ datadir=@datadir@ includedir=@includedir@ infodir=@infodir@ libdir=@libdir@ libexecdir=@libexecdir@ localstatedir=@localstatedir@ bindir=@bindir@ mandir=@mandir@ oldincludedir=@oldincludedir@ sbindir=@sbindir@ sharedstatedir=@sharedstatedir@ srcdir=@srcdir@ sysconfdir=@sysconfdir@ top_srcdir=@top_srcdir@ LIBS=@LIBS@ CC=@CC@ CFLAGS=@CFLAGS@ BISON=@BISON@ AR=@AR@ INSTALL=@INSTALL@ VPATH=$(srcdir) SHELL=/bin/sh TFLAGS=@tflags@ all: pam_vsd.so pam_vsd.o: pam_vsd.c $(CC) -I. -I$(srcdir) $(CFLAGS) $(TFLAGS) -c $< -o $@ pam_vsd.so: pam_vsd.o $(CC) -shared -o $@ pam_vsd.o -L../libvsd -lvsd install: pam_vsd.so if [ ! -d ${ROOT}/$(datadir)/freevsd/skel-repo ]; then \ mkdir ${ROOT}/$(datadir)/freevsd/skel-repo; \ fi if [ ! -d ${ROOT}/$(datadir)/freevsd/skel-repo/lib ]; then \ mkdir ${ROOT}/$(datadir)/freevsd/skel-repo/lib; \ fi if [ ! -d ${ROOT}/$(datadir)/freevsd/skel-repo/lib/security ]; then \ mkdir ${ROOT}/$(datadir)/freevsd/skel-repo/lib/security; \ fi $(INSTALL) -m 0644 pam_vsd.so ${ROOT}/$(datadir)/freevsd/skel-repo/lib/security uninstall: rm -f ${ROOT}/$(datadir)/freevsd/skel-repo/lib/security/pam_vsd.so proto: cat *.c | awk -f mkproto.awk > proto.h clean: -rm -f *~ *.o *.so distclean: clean -rm -f configure config.cache config.h config.h.in config.log -rm -f Makefile