2007-06-29 11:39:44 +08:00
|
|
|
# libscp makefile
|
2007-05-07 05:02:25 +08:00
|
|
|
LIBSCPOBJ = libscp_vX.o libscp_v0.o \
|
|
|
|
libscp_v1s.o libscp_v1c.o \
|
|
|
|
libscp_init.o libscp_lock.o libscp_tcp.o \
|
2007-09-17 23:26:23 +08:00
|
|
|
libscp_session.o libscp_connection.o \
|
2008-07-30 18:58:30 +08:00
|
|
|
os_calls.o \
|
2008-09-12 04:23:15 +08:00
|
|
|
libscp_v1s_mng.o libscp_v1c_mng.o
|
2007-05-07 05:02:25 +08:00
|
|
|
|
|
|
|
CFGDIR = /etc/xrdp
|
|
|
|
PIDDIR = /var/run
|
|
|
|
MANDIR = /usr/local/man
|
2008-05-04 13:19:34 +08:00
|
|
|
LIBDIR = /usr/local/lib/xrdp
|
2007-05-07 05:02:25 +08:00
|
|
|
|
2007-06-29 11:39:44 +08:00
|
|
|
LIBSCPLNAME = libscp.so
|
|
|
|
LIBSCPSONAME = $(LIBSCPLNAME).1
|
|
|
|
LIBSCPFNAME = $(LIBSCPSONAME).0.0
|
2007-05-07 05:02:25 +08:00
|
|
|
|
2008-05-07 11:22:52 +08:00
|
|
|
DEFINES = -DSESMAN_CFG_FILE=\"$(CFGDIR)/sesman.ini\" \
|
2008-05-04 13:19:34 +08:00
|
|
|
-DSESMAN_PID_FILE=\"$(PIDDIR)/xrdp-sesman.pid\" \
|
|
|
|
-DSESMAN_SESSVC_FILE=\"xrdp-sessvc\"
|
2007-05-07 05:02:25 +08:00
|
|
|
|
2008-02-21 23:50:31 +08:00
|
|
|
#CFLAGS = -Wall -O2 -I../../common -I/usr/include/nptl -fPIC $(DEFINES)
|
|
|
|
CFLAGS = -Wall -g -I../../common -I/usr/include/nptl -fPIC $(DEFINES)
|
2007-06-29 11:39:44 +08:00
|
|
|
LDFLAGS = -shared -L/usr/gnu/lib -L/usr/lib/nptl -lpthread
|
2007-05-07 05:02:25 +08:00
|
|
|
C_OS_FLAGS = $(CFLAGS) -c
|
|
|
|
CC = gcc
|
|
|
|
|
2008-05-04 13:19:34 +08:00
|
|
|
all: libscp.so
|
|
|
|
|
|
|
|
libscp.so: $(LIBSCPOBJ)
|
2007-05-07 05:02:25 +08:00
|
|
|
$(CC) $(LDFLAGS) -o $(LIBSCPFNAME) $(LIBSCPOBJ)
|
2007-07-03 12:18:23 +08:00
|
|
|
ln -f -s $(LIBSCPFNAME) $(LIBSCPLNAME)
|
2007-05-07 05:02:25 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(LIBSCPOBJ) $(LIBSCPFNAME) $(LIBSCPLNAME)
|
|
|
|
|
|
|
|
install:
|
2008-07-30 18:58:30 +08:00
|
|
|
install -D $(LIBSCPFNAME) $(LIBDIR)/$(LIBSCPFNAME)
|
2008-05-04 13:19:34 +08:00
|
|
|
ln -f -s $(LIBSCPFNAME) $(LIBDIR)/$(LIBSCPLNAME)
|
2007-05-07 05:02:25 +08:00
|
|
|
|
|
|
|
os_calls.o: ../../common/os_calls.c
|
|
|
|
$(CC) $(C_OS_FLAGS) ../../common/os_calls.c
|