blob: c7035c9a9f21cb2394c6e3fd4ef2fb486db0ea0d (
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
|
# xrdp makefile
XRDPOBJ = xrdp.o xrdp_process.o xrdp_listen.o \
xrdp_bitmap.o xrdp_wm.o xrdp_painter.o \
xrdp_region.o xrdp_cache.o xrdp_font.o funcs.o \
xrdp_login_wnd.o xrdp_interface.o lang.o \
list.o file.o os_calls.o thread_calls.o
DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp
DEFINES = -DXRDP_CFG_FILE=\"$(CFGDIR)/xrdp.ini\" \
-DXRDP_PID_FILE=\"$(PIDDIR)/xrdp.pid\"
CFLAGS = -Wall -O2 -I../common -I../libxrdp $(DEFINES)
#CFLAGS += -DXRDP_DEBUG
C_OS_FLAGS = $(CFLAGS) -c
LDFLAGS = -L/usr/gnu/lib -L../libxrdp -Wl,-rpath,.
LIBS = -ldl -lpthread -lxrdp
CC = gcc
all: xrdp
xrdp: $(XRDPOBJ)
$(CC) $(LDFLAGS) -o xrdp $(XRDPOBJ) $(LIBS)
strip xrdp
clean:
rm -f $(XRDPOBJ) xrdp
install:
install ad256.bmp $(DESTDIR)/ad256.bmp
install xrdp256.bmp $(DESTDIR)/xrdp256.bmp
install cursor0.cur $(DESTDIR)/cursor0.cur
install cursor1.cur $(DESTDIR)/cursor1.cur
install Tahoma-10.fv1 $(DESTDIR)/Tahoma-10.fv1
install xrdp.ini $(CFGDIR)/xrdp.ini
install rsakeys.ini $(CFGDIR)/rsakeys.ini
install xrdp $(DESTDIR)/xrdp
installdeb:
install ad256.bmp $(DESTDIRDEB)/usr/lib/xrdp/ad256.bmp
install xrdp256.bmp $(DESTDIRDEB)/usr/lib/xrdp/xrdp256.bmp
install cursor0.cur $(DESTDIRDEB)/usr/lib/xrdp/cursor0.cur
install cursor1.cur $(DESTDIRDEB)/usr/lib/xrdp/cursor1.cur
install Tahoma-10.fv1 $(DESTDIRDEB)/usr/lib/xrdp/Tahoma-10.fv1
install xrdp.ini $(DESTDIRDEB)/etc/xrdp/xrdp.ini
install rsakeys.ini $(DESTDIRDEB)/etc/xrdp/rsakeys.ini
install xrdp $(DESTDIRDEB)/usr/lib/xrdp/xrdp
list.o: ../common/list.c
$(CC) $(C_OS_FLAGS) ../common/list.c
file.o: ../common/file.c
$(CC) $(C_OS_FLAGS) ../common/file.c
os_calls.o: ../common/os_calls.c
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
thread_calls.o: ../common/thread_calls.c
$(CC) $(C_OS_FLAGS) ../common/thread_calls.c
|