summaryrefslogtreecommitdiffstats
path: root/sesman/tools/Makefile
blob: 210bdc2cb8b30f1665b8da1cb39bb30844500fe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# sesman tools makefile
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

DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp

DEFINES = -DLIBSCP_CLIENT

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

all: stest srun

stest: $(SESTESTOBJ)
	$(CC) $(LDFLAGS) -o sestest $(SESTESTOBJ)

srun: $(SESRUNOBJ)
	$(CC) $(LDFLAGS) -o sesrun $(SESRUNOBJ)

os_calls.o: ../../common/os_calls.c
	$(CC) $(C_OS_FLAGS) ../../common/os_calls.c

#d3des.o: ../../common/d3des.c
	$(CC) $(C_OS_FLAGS) ../../common/d3des.c

#list.o: ../../common/list.c
	$(CC) $(C_OS_FLAGS) ../../common/list.c

#file.o: ../../common/file.c
	$(CC) $(C_OS_FLAGS) ../../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

config.o: ../config.c
	$(CC) $(C_OS_FLAGS) ../config.c

#libscp_v1c.o: ../libscp_v1c.c
#	$(CC) $(C_OS_FLAGS) ../libscp_v1c.c

clean:
	rm -f *.o sestest sesrun

install:
	install sesrun $(DESTDIR)/sesrun
	install sestest $(DESTDIR)/sestest

installdeb:
	install sesrun $(DESTDIRDEB)/usr/lib/xrdp/sesrun
	install sestest $(DESTDIRDEB)/usr/lib/xrdp/sestest