2005-12-02 06:24:41 +03:00
|
|
|
# sesman makefile
|
2006-10-15 17:08:08 +04:00
|
|
|
|
2007-05-07 01:02:25 +04:00
|
|
|
SESMANOBJ = sesman.o config.o sig.o session.o env.o \
|
2006-05-26 17:10:14 +04:00
|
|
|
os_calls.o d3des.o list.o file.o log.o access.o \
|
2007-05-07 01:02:25 +04:00
|
|
|
scp.o scp_v0.o scp_v1.o thread.o lock.o
|
2005-01-30 07:34:19 +03:00
|
|
|
|
2007-04-07 20:20:08 +04:00
|
|
|
SESSVCOBJ = sessvc.o os_calls.o
|
2005-10-09 23:53:51 +04:00
|
|
|
|
2005-12-02 06:24:41 +03:00
|
|
|
DESTDIR = /usr/local/xrdp
|
|
|
|
CFGDIR = /etc/xrdp
|
|
|
|
PIDDIR = /var/run
|
|
|
|
MANDIR = /usr/local/man
|
|
|
|
DOCDIR = /usr/doc/xrdp
|
|
|
|
|
|
|
|
DEFINES = -DSESMAN_CFG_FILE=\"$(CFGDIR)/sesman.ini\" \
|
2007-09-17 19:28:51 +04:00
|
|
|
-DSESMAN_PID_FILE=\"$(PIDDIR)/sesman.pid\"
|
2005-12-02 06:24:41 +03:00
|
|
|
|
2007-05-07 01:02:25 +04:00
|
|
|
CFLAGS = -Wall -O2 -I../common -I/usr/include/nptl -I./libscp $(DEFINES)
|
2007-06-29 07:39:44 +04:00
|
|
|
LDFLAGS = -L/usr/gnu/lib -L/usr/lib/nptl -L./libscp -Wl,-rpath,. -lpthread -ldl -lscp
|
2005-11-16 07:32:21 +03:00
|
|
|
C_OS_FLAGS = $(CFLAGS) -c
|
2005-01-30 07:34:19 +03:00
|
|
|
CC = gcc
|
|
|
|
|
2007-05-14 08:56:10 +04:00
|
|
|
all: libscp_ pam tools
|
2005-01-30 07:34:19 +03:00
|
|
|
|
2007-05-14 08:56:10 +04:00
|
|
|
nopam: libscp_ no-pam tools
|
2006-02-09 21:01:41 +03:00
|
|
|
|
2007-05-14 08:56:10 +04:00
|
|
|
kerberos: libscp_ kerberos-base tools
|
2006-02-09 21:01:41 +03:00
|
|
|
|
|
|
|
no-pam: $(SESMANOBJ) verify_user.o
|
2007-05-07 01:02:25 +04:00
|
|
|
make -C libscp
|
2007-04-07 20:20:08 +04:00
|
|
|
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user.o -lcrypt
|
2005-07-07 07:08:03 +04:00
|
|
|
|
|
|
|
pam: $(SESMANOBJ) verify_user_pam.o
|
2007-04-07 20:20:08 +04:00
|
|
|
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_pam.o -lpam
|
2005-07-07 07:08:03 +04:00
|
|
|
|
|
|
|
pam_userpass: $(SESMANOBJ) verify_user_pam_userpass.o
|
2007-04-07 20:20:08 +04:00
|
|
|
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_pam_userpass.o -lpam -lpam_userpass
|
2005-01-30 07:34:19 +03:00
|
|
|
|
2006-02-09 21:01:41 +03:00
|
|
|
kerberos-base: $(SESMANOBJ) verify_user_kerberos.o
|
2007-04-07 20:20:08 +04:00
|
|
|
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_kerberos.o -lkrb5
|
|
|
|
|
|
|
|
sessvc: $(SESSVCOBJ)
|
2007-09-17 19:28:51 +04:00
|
|
|
$(CC) $(LDFLAGS) -o sessvc $(SESSVCOBJ)
|
2005-11-16 07:32:21 +03:00
|
|
|
|
2007-04-07 20:20:08 +04:00
|
|
|
tools: sessvc
|
2006-11-24 23:46:45 +03:00
|
|
|
make -C tools
|
2005-10-09 23:53:51 +04:00
|
|
|
|
2007-05-14 08:56:10 +04:00
|
|
|
libscp_:
|
2007-05-07 01:02:25 +04:00
|
|
|
make -C libscp
|
|
|
|
|
2005-01-30 07:34:19 +03:00
|
|
|
clean:
|
2007-04-07 20:20:08 +04:00
|
|
|
rm -f $(SESMANOBJ) verify_user.o verify_user_pam.o verify_user_pam_userpass.o sesman sesrun.o sesrun sessvc.o sessvc
|
2006-11-24 23:46:45 +03:00
|
|
|
make -C tools clean
|
2007-05-07 01:02:25 +04:00
|
|
|
make -C libscp clean
|
2005-12-02 06:24:41 +03:00
|
|
|
|
|
|
|
install:
|
|
|
|
install sesman $(DESTDIR)/sesman
|
2005-12-02 07:57:51 +03:00
|
|
|
install startwm.sh $(DESTDIR)/startwm.sh
|
2005-12-02 06:24:41 +03:00
|
|
|
install sesman.ini $(CFGDIR)/sesman.ini
|
2007-04-07 20:20:08 +04:00
|
|
|
install sessvc $(DESTDIR)/sessvc
|
2006-11-24 23:46:45 +03:00
|
|
|
make -C tools install
|
2007-05-07 01:02:25 +04:00
|
|
|
make -C libscp install
|
2005-11-16 07:32:21 +03:00
|
|
|
|
2006-03-04 04:02:09 +03:00
|
|
|
installdeb:
|
2006-08-09 08:02:51 +04:00
|
|
|
install sesman $(DESTDIRDEB)/usr/lib/xrdp/sesman
|
|
|
|
install startwm.sh $(DESTDIRDEB)/usr/lib/xrdp/startwm.sh
|
2006-03-04 04:02:09 +03:00
|
|
|
install sesman.ini $(DESTDIRDEB)/etc/xrdp/sesman.ini
|
|
|
|
|
2005-12-10 04:38:46 +03:00
|
|
|
os_calls.o: ../common/os_calls.c
|
2005-11-16 07:32:21 +03:00
|
|
|
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
|
|
|
|
|
2005-12-10 04:38:46 +03:00
|
|
|
d3des.o: ../common/d3des.c
|
2005-11-16 07:32:21 +03:00
|
|
|
$(CC) $(C_OS_FLAGS) ../common/d3des.c
|
|
|
|
|
2005-12-10 04:38:46 +03:00
|
|
|
list.o: ../common/list.c
|
2005-11-16 07:32:21 +03:00
|
|
|
$(CC) $(C_OS_FLAGS) ../common/list.c
|
|
|
|
|
2005-12-10 04:38:46 +03:00
|
|
|
file.o: ../common/file.c
|
2005-11-16 07:32:21 +03:00
|
|
|
$(CC) $(C_OS_FLAGS) ../common/file.c
|
|
|
|
|
2005-12-10 04:38:46 +03:00
|
|
|
log.o: ../common/log.c
|
2006-07-14 00:15:21 +04:00
|
|
|
$(CC) $(C_OS_FLAGS) -DLOG_ENABLE_THREAD ../common/log.c
|