2005-12-02 06:24:41 +03:00
|
|
|
# libxrdp makefile
|
2005-06-28 07:11:35 +04:00
|
|
|
LIBXRDPOBJ = libxrdp.o xrdp_tcp.o xrdp_iso.o xrdp_mcs.o \
|
|
|
|
xrdp_sec.o xrdp_rdp.o xrdp_orders.o \
|
|
|
|
xrdp_bitmap_compress.o \
|
2005-11-19 07:21:26 +03:00
|
|
|
os_calls.o ssl_calls.o file.o
|
2005-06-28 07:11:35 +04:00
|
|
|
|
2005-12-02 06:24:41 +03:00
|
|
|
DESTDIR = /usr/local/xrdp
|
|
|
|
CFGDIR = /etc/xrdp
|
|
|
|
PIDDIR = /var/run
|
|
|
|
MANDIR = /usr/local/man
|
|
|
|
DOCDIR = /usr/doc/xrdp
|
|
|
|
|
2005-12-02 07:57:51 +03:00
|
|
|
DEFINES = -DXRDP_CFG_FILE=\"$(CFGDIR)/xrdp.ini\" \
|
|
|
|
-DXRDP_KEY_FILE=\"$(CFGDIR)/rsakeys.ini\"
|
2005-12-02 06:24:41 +03:00
|
|
|
|
|
|
|
CFLAGS = -Wall -O2 -I../common -fPIC $(DEFINES)
|
2006-03-13 03:58:12 +03:00
|
|
|
#CFLAGS += -DXRDP_DEBUG
|
2005-11-19 07:21:26 +03:00
|
|
|
C_OS_FLAGS = $(CFLAGS) -c
|
2005-11-20 09:02:28 +03:00
|
|
|
LDFLAGS = -shared
|
2005-11-26 03:57:58 +03:00
|
|
|
LIBS = -ldl
|
|
|
|
LIBS += -lcrypto
|
2005-06-28 07:11:35 +04:00
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
all: libxrdp
|
|
|
|
|
|
|
|
static: $(LIBXRDPOBJ)
|
|
|
|
$(AR) rvu libxrdp.a $(LIBXRDPOBJ)
|
|
|
|
ranlib libxrdp.a
|
|
|
|
|
|
|
|
libxrdp: $(LIBXRDPOBJ)
|
|
|
|
$(CC) $(LDFLAGS) -o libxrdp.so $(LIBXRDPOBJ) $(LIBS)
|
|
|
|
strip libxrdp.so
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(LIBXRDPOBJ) libxrdp.a libxrdp.so
|
|
|
|
|
2005-12-02 06:24:41 +03:00
|
|
|
install:
|
|
|
|
install libxrdp.so $(DESTDIR)/libxrdp.so
|
|
|
|
|
2006-03-04 04:02:09 +03:00
|
|
|
installdeb:
|
2006-08-07 10:03:29 +04:00
|
|
|
install libxrdp.so $(DESTDIRDEB)/usr/lib/xrdp/libxrdp.so
|
2006-03-04 04:02:09 +03:00
|
|
|
|
2005-12-10 04:35:35 +03:00
|
|
|
file.o: ../common/file.c
|
2005-11-19 07:21:26 +03:00
|
|
|
$(CC) $(C_OS_FLAGS) ../common/file.c
|
|
|
|
|
2005-12-10 04:35:35 +03:00
|
|
|
os_calls.o: ../common/os_calls.c
|
2005-11-19 07:21:26 +03:00
|
|
|
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
|
|
|
|
|
2005-11-26 03:57:58 +03:00
|
|
|
|
2005-12-10 04:35:35 +03:00
|
|
|
ssl_calls.o: ../common/ssl_calls.c
|
2005-11-19 07:21:26 +03:00
|
|
|
$(CC) $(C_OS_FLAGS) ../common/ssl_calls.c
|