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/libscp | |
parent | 41254913673f07318811c1cc06e5ee80b19d87fd (diff) | |
download | xrdp-proprietary-5bec95f1237477e6a7c7cd8ad264b6bfbe4a174c.tar.gz xrdp-proprietary-5bec95f1237477e6a7c7cd8ad264b6bfbe4a174c.zip |
added mac makefiles
Diffstat (limited to 'sesman/libscp')
-rw-r--r-- | sesman/libscp/Makefile.osx | 45 |
1 files changed, 45 insertions, 0 deletions
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 |