2007-04-07 20:20:08 +04:00
|
|
|
# sesman tools makefile
|
2008-07-30 14:58:30 +04:00
|
|
|
SESTESTOBJ = sestest.o \
|
|
|
|
os_calls.o log.o
|
|
|
|
# d3des.o list.o file.o \
|
|
|
|
# libscp_v1c.o tcp.o
|
2007-04-07 20:20:08 +04:00
|
|
|
|
|
|
|
SESRUNOBJ = sesrun.o config.o tcp.o \
|
|
|
|
os_calls.o d3des.o list.o file.o log.o
|
2006-11-24 23:46:45 +03:00
|
|
|
|
2008-07-30 14:58:30 +04:00
|
|
|
SESADMINOBJ = sesadmin.o \
|
|
|
|
os_calls.o log.o
|
|
|
|
|
2007-05-23 09:53:03 +04:00
|
|
|
CFGDIR = /etc/xrdp
|
|
|
|
PIDDIR = /var/run
|
|
|
|
MANDIR = /usr/local/man
|
2008-05-04 09:19:34 +04:00
|
|
|
LIBDIR = /usr/local/lib/xrdp
|
|
|
|
BINDIR = /usr/local/bin
|
2007-05-23 09:53:03 +04:00
|
|
|
|
2006-11-24 23:46:45 +03:00
|
|
|
DEFINES = -DLIBSCP_CLIENT
|
|
|
|
|
2008-02-21 18:50:31 +03:00
|
|
|
#CFLAGS = -Wall -O2 -I../../common -I../ -I/usr/include/nptl -I../libscp $(DEFINES)
|
|
|
|
CFLAGS = -Wall -g -I../../common -I../ -I/usr/include/nptl -I../libscp $(DEFINES)
|
2008-05-04 09:19:34 +04:00
|
|
|
LDFLAGS = -L/usr/gnu/lib -L/usr/lib/nptl -L../libscp -lpthread -ldl -lscp -Wl,-rpath,$(LIBDIR)
|
2007-04-07 20:20:08 +04:00
|
|
|
#LDFLAGS = -L /usr/gnu/lib -ldl $(DEFINES)
|
2008-07-30 14:58:30 +04:00
|
|
|
C_OS_FLAGS = $(CFLAGS) -c -g
|
2006-11-24 23:46:45 +03:00
|
|
|
CC = gcc
|
|
|
|
|
2008-09-12 00:23:15 +04:00
|
|
|
all: xrdp-sestest xrdp-sesrun xrdp-sesadmin
|
2007-04-07 20:20:08 +04:00
|
|
|
|
2008-05-04 09:19:34 +04:00
|
|
|
xrdp-sestest: $(SESTESTOBJ)
|
|
|
|
$(CC) $(LDFLAGS) -o xrdp-sestest $(SESTESTOBJ)
|
2006-11-24 23:46:45 +03:00
|
|
|
|
2008-05-04 09:19:34 +04:00
|
|
|
xrdp-sesrun: $(SESRUNOBJ)
|
|
|
|
$(CC) $(LDFLAGS) -o xrdp-sesrun $(SESRUNOBJ)
|
2006-11-24 23:46:45 +03:00
|
|
|
|
2008-07-30 14:58:30 +04:00
|
|
|
xrdp-sesadmin: $(SESADMINOBJ)
|
|
|
|
$(CC) $(LDFLAGS) -o xrdp-sesadmin $(SESADMINOBJ)
|
|
|
|
|
2008-05-04 09:19:34 +04:00
|
|
|
clean:
|
2008-07-30 14:58:30 +04:00
|
|
|
rm -f *.o xrdp-sestest xrdp-sesrun xrdp-sesadmin
|
2006-11-24 23:46:45 +03:00
|
|
|
|
2008-05-04 09:19:34 +04:00
|
|
|
install:
|
|
|
|
install xrdp-sesrun $(BINDIR)/xrdp-sesrun
|
|
|
|
install xrdp-sestest $(BINDIR)/xrdp-sestest
|
|
|
|
|
|
|
|
d3des.o: ../../common/d3des.c
|
2006-11-24 23:46:45 +03:00
|
|
|
$(CC) $(C_OS_FLAGS) ../../common/d3des.c
|
|
|
|
|
2008-05-04 09:19:34 +04:00
|
|
|
list.o: ../../common/list.c
|
2006-11-24 23:46:45 +03:00
|
|
|
$(CC) $(C_OS_FLAGS) ../../common/list.c
|
|
|
|
|
2008-05-04 09:19:34 +04:00
|
|
|
file.o: ../../common/file.c
|
2006-11-24 23:46:45 +03:00
|
|
|
$(CC) $(C_OS_FLAGS) ../../common/file.c
|
|
|
|
|
2008-05-04 09:19:34 +04:00
|
|
|
os_calls.o: ../../common/os_calls.c
|
|
|
|
$(CC) $(C_OS_FLAGS) ../../common/os_calls.c
|
|
|
|
|
2007-05-07 01:02:25 +04:00
|
|
|
log.o: ../../common/log.c
|
2007-04-07 20:20:08 +04:00
|
|
|
$(CC) $(C_OS_FLAGS) ../../common/log.c
|
|
|
|
|
|
|
|
config.o: ../config.c
|
|
|
|
$(CC) $(C_OS_FLAGS) ../config.c
|