diff options
| author | jsorg71 <jsorg71> | 2007-09-27 18:09:29 +0000 |
|---|---|---|
| committer | jsorg71 <jsorg71> | 2007-09-27 18:09:29 +0000 |
| commit | 5bec95f1237477e6a7c7cd8ad264b6bfbe4a174c (patch) | |
| tree | df33831c9e5511ef5d26b19665182712f3798b9f /sesman | |
| parent | 41254913673f07318811c1cc06e5ee80b19d87fd (diff) | |
| download | xrdp-proprietary-5bec95f1237477e6a7c7cd8ad264b6bfbe4a174c.tar.gz xrdp-proprietary-5bec95f1237477e6a7c7cd8ad264b6bfbe4a174c.zip | |
added mac makefiles
Diffstat (limited to 'sesman')
| -rw-r--r-- | sesman/Makefile.osx | 77 | ||||
| -rw-r--r-- | sesman/libscp/Makefile.osx | 45 | ||||
| -rw-r--r-- | sesman/tools/Makefile.osx | 65 |
3 files changed, 187 insertions, 0 deletions
diff --git a/sesman/Makefile.osx b/sesman/Makefile.osx new file mode 100644 index 00000000..6b12dc82 --- /dev/null +++ b/sesman/Makefile.osx @@ -0,0 +1,77 @@ +# 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 + $(MAKE) -C libscp + $(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user.o -lcrypt + +pam: $(SESMANOBJ) verify_user_pam.o + $(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_pam.o -lpam + +pam_userpass: $(SESMANOBJ) verify_user_pam_userpass.o + $(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_pam_userpass.o -lpam -lpam_userpass + +kerberos-base: $(SESMANOBJ) verify_user_kerberos.o + $(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_kerberos.o -lkrb5 + +sessvc: $(SESSVCOBJ) + $(CC) $(LDFLAGS) -o sessvc $(SESSVCOBJ) + +tools: sessvc + $(MAKE) -C tools -f Makefile.osx + +libscp_: + $(MAKE) -C libscp -f Makefile.osx + +clean: + 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 + +install: + 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 + +os_calls.o: ../common/os_calls.c + $(CC) $(C_OS_FLAGS) ../common/os_calls.c + +d3des.o: ../common/d3des.c + $(CC) $(C_OS_FLAGS) ../common/d3des.c + +list.o: ../common/list.c + $(CC) $(C_OS_FLAGS) ../common/list.c + +file.o: ../common/file.c + $(CC) $(C_OS_FLAGS) ../common/file.c + +log.o: ../common/log.c + $(CC) $(C_OS_FLAGS) -DLOG_ENABLE_THREAD ../common/log.c diff --git a/sesman/libscp/Makefile.osx b/sesman/libscp/Makefile.osx new file mode 100644 index 00000000..93046306 --- /dev/null +++ b/sesman/libscp/Makefile.osx @@ -0,0 +1,45 @@ +# libscp makefile +LIBSCPOBJ = libscp_vX.o libscp_v0.o \ + libscp_v1s.o libscp_v1c.o \ + libscp_init.o libscp_lock.o libscp_tcp.o \ + libscp_session.o libscp_connection.o \ + os_calls.o + +DESTDIR = /usr/local/xrdp +CFGDIR = /etc/xrdp +PIDDIR = /var/run +MANDIR = /usr/local/man +DOCDIR = /usr/doc/xrdp + +DESTDIRDEB = /tmp + +LIBSCPLNAME = libscp.dylib +LIBSCPSONAME = libscp.1.dylib +LIBSCPFNAME = libscp.0.0.dylib + +DEFINES = -DSESMAN_CFG_FILE=\"$(CFGDIR)/sesman.ini\" \ + -DSESMAN_PID_FILE=\"$(PIDDIR)/sesman.pid\" \ + -DSESMAN_SESSVC_FILE=\"sessvc\" + +CFLAGS = -Wall -O2 -I../../common -I/usr/include/nptl -fPIC -fno-common $(DEFINES) +LDFLAGS = -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -lpthread +C_OS_FLAGS = $(CFLAGS) -c +CC = gcc + +all: $(LIBSCPOBJ) + $(CC) $(LDFLAGS) -o $(LIBSCPFNAME) $(LIBSCPOBJ) + ln -f -s $(LIBSCPFNAME) $(LIBSCPLNAME) + +clean: + rm -f $(LIBSCPOBJ) $(LIBSCPFNAME) $(LIBSCPLNAME) + +install: + install $(LIBSCPFNAME) $(DESTDIR)/$(LIBSCPFNAME) + ln -f -s $(LIBSCPFNAME) $(DESTDIR)/$(LIBSCPLNAME) + +installdeb: + install $(LIBSCPFNAME) $(DESTDIRDEB)/usr/lib/xrdp/$(LIBSCPFNAME) + ln -f -s $(LIBSCPFNAME) $(DESTDIRDEB)/usr/lib/xrdp/$(LIBSCPLNAME) + +os_calls.o: ../../common/os_calls.c + $(CC) $(C_OS_FLAGS) ../../common/os_calls.c diff --git a/sesman/tools/Makefile.osx b/sesman/tools/Makefile.osx new file mode 100644 index 00000000..8f779335 --- /dev/null +++ b/sesman/tools/Makefile.osx @@ -0,0 +1,65 @@ +# sesman tools makefile +SESTESTOBJ = sestest.o \ + os_calls.o +# d3des.o list.o file.o \ +# libscp_v1c.o tcp.o + +SESRUNOBJ = sesrun.o config.o tcp.o \ + os_calls.o d3des.o list.o file.o log.o + +DESTDIR = /usr/local/xrdp +CFGDIR = /etc/xrdp +PIDDIR = /var/run +MANDIR = /usr/local/man +DOCDIR = /usr/doc/xrdp + +DEFINES = -DLIBSCP_CLIENT + +CFLAGS = -Wall -O2 -I../../common -I../ -I../libscp $(DEFINES) +LDFLAGS = -L../libscp -lpthread -ldl -lscp $(DEFINES) +#LDFLAGS = -L /usr/gnu/lib -ldl $(DEFINES) +C_OS_FLAGS = $(CFLAGS) -c -g +CC = gcc + +all: stest srun + +stest: $(SESTESTOBJ) + $(CC) $(LDFLAGS) -o sestest $(SESTESTOBJ) + +srun: $(SESRUNOBJ) + $(CC) $(LDFLAGS) -o sesrun $(SESRUNOBJ) + +os_calls.o: ../../common/os_calls.c + $(CC) $(C_OS_FLAGS) ../../common/os_calls.c + +#d3des.o: ../../common/d3des.c + $(CC) $(C_OS_FLAGS) ../../common/d3des.c + +#list.o: ../../common/list.c + $(CC) $(C_OS_FLAGS) ../../common/list.c + +#file.o: ../../common/file.c + $(CC) $(C_OS_FLAGS) ../../common/file.c + +log.o: ../../common/log.c + $(CC) $(C_OS_FLAGS) ../../common/log.c + +#tcp.o: tcp.c +# $(CC) $(C_OS_FLAGS) ../tcp.c + +config.o: ../config.c + $(CC) $(C_OS_FLAGS) ../config.c + +#libscp_v1c.o: ../libscp_v1c.c +# $(CC) $(C_OS_FLAGS) ../libscp_v1c.c + +clean: + rm -f *.o sestest sesrun + +install: + install sesrun $(DESTDIR)/sesrun + install sestest $(DESTDIR)/sestest + +installdeb: + install sesrun $(DESTDIRDEB)/usr/lib/xrdp/sesrun + install sestest $(DESTDIRDEB)/usr/lib/xrdp/sestest |
