xrdp/sesman/Makefile.osx

78 lines
2.1 KiB
Makefile
Raw Normal View History

2007-09-28 02:09:29 +08:00
# sesman $(MAKE)file
SESMANOBJ = sesman.o config.o sig.o session.o env.o \
os_calls.o d3des.o list.o file.o log.o access.o \
scp.o scp_v0.o scp_v1.o thread.o lock.o
SESSVCOBJ = sessvc.o os_calls.o
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\" \
-DSESMAN_PID_FILE=\"$(PIDDIR)/sesman.pid\"
CFLAGS = -Wall -O2 -I../common -I/usr/include/nptl -I./libscp $(DEFINES)
LDFLAGS = -L./libscp -lpthread -ldl -lscp
C_OS_FLAGS = $(CFLAGS) -c
CC = gcc
all: libscp_ pam tools
nopam: libscp_ no-pam tools
kerberos: libscp_ kerberos-base tools
no-pam: $(SESMANOBJ) verify_user.o
2008-03-17 07:57:20 +08:00
$(MAKE) -C libscp
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user.o -lcrypt
2007-09-28 02:09:29 +08:00
pam: $(SESMANOBJ) verify_user_pam.o
2008-03-17 07:57:20 +08:00
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_pam.o -lpam
2007-09-28 02:09:29 +08:00
pam_userpass: $(SESMANOBJ) verify_user_pam_userpass.o
2008-03-17 07:57:20 +08:00
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_pam_userpass.o -lpam -lpam_userpass
2007-09-28 02:09:29 +08:00
kerberos-base: $(SESMANOBJ) verify_user_kerberos.o
2008-03-17 07:57:20 +08:00
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_kerberos.o -lkrb5
2007-09-28 02:09:29 +08:00
sessvc: $(SESSVCOBJ)
2008-03-17 07:57:20 +08:00
$(CC) $(LDFLAGS) -o sessvc $(SESSVCOBJ)
2007-09-28 02:09:29 +08:00
tools: sessvc
2008-03-17 07:57:20 +08:00
$(MAKE) -C tools -f Makefile.osx
2007-09-28 02:09:29 +08:00
libscp_:
2008-03-17 07:57:20 +08:00
$(MAKE) -C libscp -f Makefile.osx
2007-09-28 02:09:29 +08:00
clean:
2008-03-17 07:57:20 +08:00
rm -f $(SESMANOBJ) verify_user.o verify_user_pam.o verify_user_pam_userpass.o sesman sesrun.o sesrun sessvc.o sessvc
$(MAKE) -C tools -f Makefile.osx clean
$(MAKE) -C libscp -f Makefile.osx clean
2007-09-28 02:09:29 +08:00
install:
2008-03-17 07:57:20 +08:00
install sesman $(DESTDIR)/sesman
install startwm.sh $(DESTDIR)/startwm.sh
install sesman.ini $(CFGDIR)/sesman.ini
install sessvc $(DESTDIR)/sessvc
$(MAKE) -C tools install
$(MAKE) -C libscp install
2007-09-28 02:09:29 +08:00
os_calls.o: ../common/os_calls.c
2008-03-17 07:57:20 +08:00
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
2007-09-28 02:09:29 +08:00
d3des.o: ../common/d3des.c
2008-03-17 07:57:20 +08:00
$(CC) $(C_OS_FLAGS) ../common/d3des.c
2007-09-28 02:09:29 +08:00
list.o: ../common/list.c
2008-03-17 07:57:20 +08:00
$(CC) $(C_OS_FLAGS) ../common/list.c
2007-09-28 02:09:29 +08:00
file.o: ../common/file.c
2008-03-17 07:57:20 +08:00
$(CC) $(C_OS_FLAGS) ../common/file.c
2007-09-28 02:09:29 +08:00
log.o: ../common/log.c
2008-03-17 07:57:20 +08:00
$(CC) $(C_OS_FLAGS) -DLOG_ENABLE_THREAD ../common/log.c