2005-12-02 11:24:41 +08:00
|
|
|
# libvnc makefile
|
2005-03-13 09:17:30 +08:00
|
|
|
VNCOBJ = vnc.o os_calls.o d3des.o
|
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
|
|
|
|
|
|
|
|
DEFINES =
|
|
|
|
|
|
|
|
CFLAGS = -Wall -O2 -I../common -fPIC $(DEFINES)
|
2005-03-13 09:17:30 +08:00
|
|
|
C_OS_FLAGS = $(CFLAGS) -c
|
2004-11-28 12:56:58 +08:00
|
|
|
LDFLAGS = -shared
|
|
|
|
LIBS = -ldl
|
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
all: vnc
|
|
|
|
|
|
|
|
vnc: $(VNCOBJ)
|
|
|
|
$(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
|
|
|
|
|
|
|
os_calls.o:
|
|
|
|
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
|
|
|
|
|
|
|
|
d3des.o:
|
|
|
|
$(CC) $(C_OS_FLAGS) ../common/d3des.c
|
2005-12-02 11:24:41 +08:00
|
|
|
|
|
|
|
install:
|
|
|
|
install libvnc.so $(DESTDIR)/libvnc.so
|
|
|
|
|