Makefile changes

This commit is contained in:
jsorg71 2005-11-19 04:21:26 +00:00
parent 7c69e43493
commit 55c9687858
3 changed files with 30 additions and 10 deletions

View File

@ -2,13 +2,12 @@
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 \
../common/os_calls.o \
../common/ssl_calls.o \
../common/file.o
os_calls.o ssl_calls.o file.o
CFLAGS = -Wall -O2 -I../common -fPIC
LDFLAGS = -shared
LIBS = -ldl -lcrypto
C_OS_FLAGS = $(CFLAGS) -c
LDFLAGS = -ldl -shared
LIBS = -lcrypto
CC = gcc
all: libxrdp
@ -24,3 +23,12 @@ libxrdp: $(LIBXRDPOBJ)
clean:
rm -f $(LIBXRDPOBJ) libxrdp.a libxrdp.so
file.o:
$(CC) $(C_OS_FLAGS) ../common/file.c
os_calls.o:
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
ssl_calls.o:
$(CC) $(C_OS_FLAGS) ../common/ssl_calls.c

View File

@ -21,3 +21,4 @@ os_calls.o:
ssl_calls.o:
$(CC) $(C_OS_FLAGS) ../common/ssl_calls.c

View File

@ -1,15 +1,13 @@
# 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 \
../common/list.o \
../common/file.o \
../common/os_calls.o \
../common/thread_calls.o
list.o file.o os_calls.o thread_calls.o
#CFLAGS = -Wall -O2 -I../common -I../libxrdp -DXRDP_DEBUG
CFLAGS = -Wall -O2 -I../common -I../libxrdp
C_OS_FLAGS = $(CFLAGS) -c
LDFLAGS = -L/usr/gnu/lib -L../libxrdp -Wl,-rpath,.
LIBS = -ldl -lpthread -lxrdp
CC = gcc
@ -22,3 +20,16 @@ xrdp: $(XRDPOBJ)
clean:
rm -f $(XRDPOBJ) xrdp
list.o:
$(CC) $(C_OS_FLAGS) ../common/list.c
file.o:
$(CC) $(C_OS_FLAGS) ../common/file.c
os_calls.o:
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
thread_calls.o:
$(CC) $(C_OS_FLAGS) ../common/thread_calls.c