summaryrefslogtreecommitdiffstats
path: root/sesman/tools
diff options
context:
space:
mode:
authorilsimo <ilsimo>2007-05-06 21:02:25 +0000
committerilsimo <ilsimo>2007-05-06 21:02:25 +0000
commitf22b5b42a74314af8c4232c86ccce968c6a37ce5 (patch)
tree83da9d21acb9b9c8bb04414228a85153ec972259 /sesman/tools
parentd0e066ee8b0d428f6876bc32a97ce1e70420a65e (diff)
downloadxrdp-proprietary-f22b5b42a74314af8c4232c86ccce968c6a37ce5.tar.gz
xrdp-proprietary-f22b5b42a74314af8c4232c86ccce968c6a37ce5.zip
making libscp a real library
some fixes in configuration options
Diffstat (limited to 'sesman/tools')
-rw-r--r--sesman/tools/Makefile27
-rw-r--r--sesman/tools/sesrun.c1
2 files changed, 15 insertions, 13 deletions
diff --git a/sesman/tools/Makefile b/sesman/tools/Makefile
index 585327d2..46ec9e50 100644
--- a/sesman/tools/Makefile
+++ b/sesman/tools/Makefile
@@ -1,15 +1,16 @@
# sesman tools makefile
-SESTESTOBJ = sestest.o tcp.o \
- os_calls.o d3des.o list.o file.o \
- libscp_v1c.o
+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
DEFINES = -DLIBSCP_CLIENT
-CFLAGS = -Wall -O2 -I../../common -I../ -I/usr/include/nptl $(DEFINES)
-LDFLAGS = -L /usr/gnu/lib -I/usr/include/nptl -L/usr/lib/nptl -lpthread -ldl $(DEFINES)
+CFLAGS = -Wall -O2 -I../../common -I../ -I/usr/include/nptl -I../libscp $(DEFINES)
+LDFLAGS = -L /usr/gnu/lib -I/usr/include/nptl -L/usr/lib/nptl -L../libscp -lpthread -ldl -lscp -Wl,-rpath,../libscp $(DEFINES)
#LDFLAGS = -L /usr/gnu/lib -ldl $(DEFINES)
C_OS_FLAGS = $(CFLAGS) -c -g
CC = gcc
@@ -25,26 +26,26 @@ srun: $(SESRUNOBJ)
os_calls.o: ../../common/os_calls.c
$(CC) $(C_OS_FLAGS) ../../common/os_calls.c
-d3des.o: ../../common/d3des.c
+#d3des.o: ../../common/d3des.c
$(CC) $(C_OS_FLAGS) ../../common/d3des.c
-list.o: ../../common/list.c
+#list.o: ../../common/list.c
$(CC) $(C_OS_FLAGS) ../../common/list.c
-file.o: ../../common/file.c
+#file.o: ../../common/file.c
$(CC) $(C_OS_FLAGS) ../../common/file.c
-log.o: ../../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
+#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
+#libscp_v1c.o: ../libscp_v1c.c
+# $(CC) $(C_OS_FLAGS) ../libscp_v1c.c
clean:
rm -f *.o sestest sesrun
diff --git a/sesman/tools/sesrun.c b/sesman/tools/sesrun.c
index 22ccf138..7db3b670 100644
--- a/sesman/tools/sesrun.c
+++ b/sesman/tools/sesrun.c
@@ -26,6 +26,7 @@
*/
#include "sesman.h"
+#include "tcp.h"
int g_sck;
int g_pid;