Files
CASA/LoginCapture/linux/install
2005-10-11 19:51:00 +00:00
..

#######################################################################

#

#  Copyright (C) 2004 Novell, Inc.

#

#  This program 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 of the License, or (at your option) any later version.

#

#  This program 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 this program; if not, write to the Free

#  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

#

#  Author: Juan Carlos Luciani <jluciani@novell.com>

#

#######################################################################



if DEBUG

TARGET_CFG = Debug

else

TARGET_CFG = Release

endif



# handle Mono secondary dependencies

export MONO_PATH := $(MONO_PATH)



PamMod_CFILES = $(srcdir)/pam_pwcapture.c

PamMod_OBJ = pam_pwcapture.o

PamMod_CSFILES_CSC :=

PamMod_INCLUDES =

PamMod_RESOURCES =

PamMod_CFLAGS = $(CFLAGS)

PamMod_LIBS =

PamMod_LIBPATH =



EXTRA_DIST = $(PamMod_CFILES)



CUR_DIR := $(shell pwd)



all: pam_pwcapture.so



pam_pwcapture.so: $(PamMod_CFILES)

	$(mkinstalldirs) ../Common/$(TARGET_CFG)

	$(mkinstalldirs) bin/$(TARGET_CFG)

	$(CC) -shared -lpam -lpam_misc -o bin/$(TARGET_CFG)/$@ $(PamMod_CFILES)

	cp bin/$(TARGET_CFG)/$@ ../Common/$(TARGET_CFG)/$@

	

install-exec-local: pam_pwcapture.so

	$(mkinstalldirs) $(DESTDIR)$(libdir)

	$(INSTALL_PROGRAM) bin/$(TARGET_CFG)/pam_pwcapture.so $(DESTDIR)$(libdir)/



uninstall-local:

	cd $(DESTDIR)$(libdir); rm -f pam_pwcapture.so

	rmdir $(DESTDIR)$(libdir)



#installcheck-local: install

#	$(mkinstalldirs) $(DESTDIR)$(libdir)

#	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir)

#	cd $(DESTDIR)$(libdir); $(MONO)



CLEAN_FILES = bin/$(TARGET_CFG)/pam_pwcapture.so



clean-local:

	rm -rf *.dbg *.exe *.so *.o *.dll $(CLEAN_FILES) $(COMMON_CLEAN_FILES)



distclean-local:



maintainer-clean-local:

	rm -f Makefile.in