2005-12-02 11:24:41 +08:00
|
|
|
# libvnc makefile
|
2007-03-25 20:18:44 +08:00
|
|
|
|
2007-05-10 12:19:08 +08:00
|
|
|
VNCOBJ = vnc.o os_calls.o d3des.o
|
2005-12-02 11:24:41 +08:00
|
|
|
|
2008-04-30 13:24:10 +08:00
|
|
|
LIBDIR = /usr/local/lib/xrdp
|
2005-12-02 11:24:41 +08:00
|
|
|
|
|
|
|
DEFINES =
|
|
|
|
|
|
|
|
CFLAGS = -Wall -O2 -I../common -fPIC $(DEFINES)
|
2007-03-25 20:18:44 +08:00
|
|
|
C_OS_FLAGS = $(CFLAGS) -c -g
|
2004-11-28 12:56:58 +08:00
|
|
|
LDFLAGS = -shared
|
|
|
|
LIBS = -ldl
|
|
|
|
CC = gcc
|
|
|
|
|
2008-04-03 14:24:36 +08:00
|
|
|
all: libvnc.so
|
2004-11-28 12:56:58 +08:00
|
|
|
|
2008-04-03 14:24:36 +08:00
|
|
|
libvnc.so: $(VNCOBJ)
|
2004-11-28 12:56:58 +08:00
|
|
|
$(CC) $(LDFLAGS) -o libvnc.so $(VNCOBJ) $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
2005-01-07 09:05:30 +08:00
|
|
|
rm -f $(VNCOBJ) libvnc.so
|
2005-03-13 09:17:30 +08:00
|
|
|
|
2005-12-10 09:40:09 +08:00
|
|
|
os_calls.o: ../common/os_calls.c
|
2005-03-13 09:17:30 +08:00
|
|
|
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
|
|
|
|
|
2005-12-10 09:40:09 +08:00
|
|
|
d3des.o: ../common/d3des.c
|
2005-03-13 09:17:30 +08:00
|
|
|
$(CC) $(C_OS_FLAGS) ../common/d3des.c
|
2005-12-02 11:24:41 +08:00
|
|
|
|
|
|
|
install:
|
2008-04-30 13:24:10 +08:00
|
|
|
install libvnc.so $(LIBDIR)/libvnc.so
|