#
# T.C.F.S. Library 0.1 $Revision: 1.1 $
#
# Authors:	Giuseppe Cattaneo, <cattaneo@udsab.dia.unisa.it>
#		Giuseppe Persiano, <giuper@udsab.dia.unisa.it>
#		Luigi Catuogno, <luicat@mikonos.dia.unisa.it>
#		Angelo Celentano, <angcel@mikonos.dia.unisa.it>
#		Andrea Cozzolino, <andcoz@mikonos.dia.unisa.it>
#		Aniello Del Sorbo, <anidel@mikonos.dia.unisa.it>
#		Ermelindo Mauriello, <ermmau@mikonos.dia.unisa.it>
#
# Permission  to use,  copy,  and modify this  software  without fee
# is hereby granted, provided that this entire notice is included in
# all  copies  of  any  software  which  is  or includes  a copy  or
# modification of this  software and in all copies of the supporting
# documentation for such software.
#
# This  software maybe  be used for  any purpose provided  the above 
# copyright  notice  is  retained.  It is  supplied as  is, with  no 
# warranty expressed or implied.
#/

#
#       $Source: /home/luicat/linux/fs/tcfs/contrib/utils/lib/RCS/Makefile,v $
#        $State: Exp $
#
#     $Revision: 1.1 $
#       $Author: luicat $
#         $Date: 1998/01/05 14:54:58 $
#       $Locker: luicat $
#/

# -+-_== 

OBJS=src/tcfs_keymaint.o src/tcfs_dbmaint.o src/encode.o src/decode.o \
	src/md5.o src/md5_if.o src/md5.o src/des.o src/gentcfskey.o

DEFINES=-DGDBM_SUPPORT
CC=gcc
CFLAGS=-g $(DEFINES) -I/usr/src/linux -Iinclude

all: lib 

lib: $(OBJS)
	ar lqv libtcfs.a $(OBJS)
	ranlib libtcfs.a

pam_module: pam_tcfs.o lib
	$(LD) -x -shared pam_tcfs.o \
	-L. -lpam -ldl -lpam_misc -lgdbm -ltcfs -o pam_tcfs.so

install: lib
	install -o root -g root -m644 libtcfs.a /usr/lib
	install -o root -g root -m644 include/tcfs* /usr/include

clean:
	@rm -f *.a *.so src/*.o
