summaryrefslogtreecommitdiffstats
path: root/sesman/libscp/Makefile
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2008-05-04 05:19:34 +0000
committerjsorg71 <jsorg71>2008-05-04 05:19:34 +0000
commitc81817ca16dd81ca5b4fa3cba27ae4e2d49bb69d (patch)
tree667884ad454207ee1ffa9a4854d61d0018772fa3 /sesman/libscp/Makefile
parentdafe270c559e00aa339b65ea2478ffbae1e340f8 (diff)
downloadxrdp-proprietary-c81817ca16dd81ca5b4fa3cba27ae4e2d49bb69d.tar.gz
xrdp-proprietary-c81817ca16dd81ca5b4fa3cba27ae4e2d49bb69d.zip
renaming and moving install files
Diffstat (limited to 'sesman/libscp/Makefile')
-rw-r--r--sesman/libscp/Makefile23
1 files changed, 9 insertions, 14 deletions
diff --git a/sesman/libscp/Makefile b/sesman/libscp/Makefile
index 1e88c82d..c4774aae 100644
--- a/sesman/libscp/Makefile
+++ b/sesman/libscp/Makefile
@@ -5,21 +5,18 @@ LIBSCPOBJ = libscp_vX.o libscp_v0.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
+LIBDIR = /usr/local/lib/xrdp
LIBSCPLNAME = libscp.so
LIBSCPSONAME = $(LIBSCPLNAME).1
LIBSCPFNAME = $(LIBSCPSONAME).0.0
-DEFINES = -DSESMAN_CFG_FILE=\"$(CFGDIR)/sesman.ini\" \
- -DSESMAN_PID_FILE=\"$(PIDDIR)/sesman.pid\" \
- -DSESMAN_SESSVC_FILE=\"sessvc\"
+DEFINES = -DSESMAN_CFG_FILE=\"$(CFGDIR)/xrdp-sesman.ini\" \
+ -DSESMAN_PID_FILE=\"$(PIDDIR)/xrdp-sesman.pid\" \
+ -DSESMAN_SESSVC_FILE=\"xrdp-sessvc\"
#CFLAGS = -Wall -O2 -I../../common -I/usr/include/nptl -fPIC $(DEFINES)
CFLAGS = -Wall -g -I../../common -I/usr/include/nptl -fPIC $(DEFINES)
@@ -27,7 +24,9 @@ LDFLAGS = -shared -L/usr/gnu/lib -L/usr/lib/nptl -lpthread
C_OS_FLAGS = $(CFLAGS) -c
CC = gcc
-all: $(LIBSCPOBJ)
+all: libscp.so
+
+libscp.so: $(LIBSCPOBJ)
$(CC) $(LDFLAGS) -o $(LIBSCPFNAME) $(LIBSCPOBJ)
ln -f -s $(LIBSCPFNAME) $(LIBSCPLNAME)
@@ -35,12 +34,8 @@ 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)
+ install $(LIBSCPFNAME) $(LIBDIR)/$(LIBSCPFNAME)
+ ln -f -s $(LIBSCPFNAME) $(LIBDIR)/$(LIBSCPLNAME)
os_calls.o: ../../common/os_calls.c
$(CC) $(C_OS_FLAGS) ../../common/os_calls.c