xrdp/libxrdp/Makefile

45 lines
1.0 KiB
Makefile
Raw Normal View History

2005-12-02 11:24:41 +08:00
# libxrdp makefile
2008-04-30 14:14:03 +08:00
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 \
2006-12-30 13:04:13 +08:00
xrdp_bitmap_compress.o xrdp_channel.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
2008-05-03 07:41:31 +08:00
CFGDIR = /etc/xrdp
2008-04-30 14:14:03 +08:00
LIBDIR = /usr/local/lib/xrdp
2005-12-02 11:24:41 +08:00
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
2008-05-03 07:41:31 +08:00
all: libxrdp.so
2005-06-28 11:11:35 +08:00
static: $(LIBXRDPOBJ)
$(AR) rvu libxrdp.a $(LIBXRDPOBJ)
ranlib libxrdp.a
2008-05-03 07:41:31 +08:00
libxrdp.so: $(LIBXRDPOBJ)
2005-06-28 11:11:35 +08:00
$(CC) $(LDFLAGS) -o libxrdp.so $(LIBXRDPOBJ) $(LIBS)
clean:
rm -f $(LIBXRDPOBJ) libxrdp.a libxrdp.so
2005-12-02 11:24:41 +08:00
install:
2008-04-30 14:14:03 +08:00
install libxrdp.so $(LIBDIR)/libxrdp.so
2006-03-04 09:02:09 +08:00
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
ssl_calls.o: ../common/ssl_calls.c
2005-11-19 12:21:26 +08:00
$(CC) $(C_OS_FLAGS) ../common/ssl_calls.c