xrdp/libxrdp/Makefile

52 lines
1.1 KiB
Makefile
Raw Normal View History

2005-12-02 11:24:41 +08:00
# libxrdp makefile
2005-06-28 11:11:35 +08: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 12:21:26 +08:00
os_calls.o ssl_calls.o file.o
2005-06-28 11:11:35 +08:00
2005-12-02 11:24:41 +08:00
DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp
2005-12-02 12:57:51 +08:00
DEFINES = -DXRDP_CFG_FILE=\"$(CFGDIR)/xrdp.ini\" \
-DXRDP_KEY_FILE=\"$(CFGDIR)/rsakeys.ini\"
2005-12-02 11:24:41 +08:00
CFLAGS = -Wall -O2 -I../common -fPIC $(DEFINES)
2006-03-13 08:58:12 +08:00
#CFLAGS += -DXRDP_DEBUG
2005-11-19 12:21:26 +08:00
C_OS_FLAGS = $(CFLAGS) -c
2005-11-20 14:02:28 +08:00
LDFLAGS = -shared
2005-11-26 08:57:58 +08:00
LIBS = -ldl
LIBS += -lcrypto
2005-06-28 11:11:35 +08: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 11:24:41 +08:00
install:
install libxrdp.so $(DESTDIR)/libxrdp.so
2006-03-04 09:02:09 +08:00
installdeb:
install libxrdp.so $(DESTDIRDEB)/usr/xrdp/libxrdp.so
file.o: ../common/file.c
2005-11-19 12:21:26 +08:00
$(CC) $(C_OS_FLAGS) ../common/file.c
os_calls.o: ../common/os_calls.c
2005-11-19 12:21:26 +08:00
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
2005-11-26 08:57:58 +08:00
ssl_calls.o: ../common/ssl_calls.c
2005-11-19 12:21:26 +08:00
$(CC) $(C_OS_FLAGS) ../common/ssl_calls.c