2005-01-30 07:34:19 +03:00
|
|
|
|
2005-10-06 23:21:18 +04:00
|
|
|
SESMANOBJ = sesman.o config.o tcp.o sig.o session.o env.o \
|
2005-11-16 07:32:21 +03:00
|
|
|
os_calls.o d3des.o list.o file.o log.o
|
2005-01-30 07:34:19 +03:00
|
|
|
|
2005-10-09 23:53:51 +04:00
|
|
|
SESRUNOBJ = sesrun.o config.o tcp.o \
|
2005-11-16 07:32:21 +03:00
|
|
|
os_calls.o d3des.o list.o file.o log.o
|
2005-10-09 23:53:51 +04:00
|
|
|
|
2005-01-30 07:34:19 +03:00
|
|
|
CFLAGS = -Wall -O2 -I../common
|
|
|
|
LDFLAGS = -L /usr/gnu/lib
|
2005-11-16 07:32:21 +03:00
|
|
|
C_OS_FLAGS = $(CFLAGS) -c
|
2005-01-30 07:34:19 +03:00
|
|
|
CC = gcc
|
|
|
|
|
2005-10-09 23:57:16 +04:00
|
|
|
all: pam tools
|
2005-01-30 07:34:19 +03:00
|
|
|
|
2005-09-20 05:34:53 +04:00
|
|
|
nopam: $(SESMANOBJ) verify_user.o
|
2005-07-07 07:08:03 +04:00
|
|
|
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user.o -ldl -lcrypt
|
|
|
|
|
|
|
|
pam: $(SESMANOBJ) verify_user_pam.o
|
|
|
|
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_pam.o -ldl -lpam
|
|
|
|
|
|
|
|
pam_userpass: $(SESMANOBJ) verify_user_pam_userpass.o
|
|
|
|
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_pam_userpass.o -ldl -lpam -lpam_userpass
|
2005-01-30 07:34:19 +03:00
|
|
|
|
2005-11-16 07:32:21 +03:00
|
|
|
kerberos: $(SESMANOBJ) verify_user_kerberos.o
|
|
|
|
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_kerberos.o -ldl -lkrb5
|
|
|
|
|
2005-10-11 08:17:06 +04:00
|
|
|
tools: $(SESRUNOBJ)
|
2005-10-09 23:53:51 +04:00
|
|
|
$(CC) $(LDFLAGS) -o sesrun $(SESRUNOBJ) -ldl
|
|
|
|
|
2005-01-30 07:34:19 +03:00
|
|
|
clean:
|
2005-11-16 07:32:21 +03:00
|
|
|
rm -f $(SESMANOBJ) verify_user.o verify_user_pam.o verify_user_pam_userpass.o verify_user_kerberos.o sesman sesrun.o sesrun
|
|
|
|
|
|
|
|
os_calls.o:
|
|
|
|
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
|
|
|
|
|
|
|
|
d3des.o:
|
|
|
|
$(CC) $(C_OS_FLAGS) ../common/d3des.c
|
|
|
|
|
|
|
|
list.o:
|
|
|
|
$(CC) $(C_OS_FLAGS) ../common/list.c
|
|
|
|
|
|
|
|
file.o:
|
|
|
|
$(CC) $(C_OS_FLAGS) ../common/file.c
|
|
|
|
|
|
|
|
log.o:
|
|
|
|
$(CC) $(C_OS_FLAGS) ../common/log.c
|