xrdp/libxrdp/Makefile

36 lines
707 B
Makefile
Raw Normal View History

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
CFLAGS = -Wall -O2 -I../common -fPIC
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-11-19 12:21:26 +08:00
file.o:
$(CC) $(C_OS_FLAGS) ../common/file.c
os_calls.o:
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
2005-11-26 08:57:58 +08:00
2005-11-19 12:21:26 +08:00
ssl_calls.o:
$(CC) $(C_OS_FLAGS) ../common/ssl_calls.c