2005-12-02 06:24:41 +03:00
|
|
|
# libvnc makefile
|
2005-03-13 04:17:30 +03:00
|
|
|
VNCOBJ = vnc.o os_calls.o d3des.o
|
2005-12-02 06:24:41 +03: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 04:17:30 +03:00
|
|
|
C_OS_FLAGS = $(CFLAGS) -c
|
2004-11-28 07:56:58 +03:00
|
|
|
LDFLAGS = -shared
|
|
|
|
LIBS = -ldl
|
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
all: vnc
|
|
|
|
|
|
|
|
vnc: $(VNCOBJ)
|
|
|
|
$(CC) $(LDFLAGS) -o libvnc.so $(VNCOBJ) $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
2005-01-07 04:05:30 +03:00
|
|
|
rm -f $(VNCOBJ) libvnc.so
|
2005-03-13 04:17:30 +03:00
|
|
|
|
2005-12-10 04:40:09 +03:00
|
|
|
os_calls.o: ../common/os_calls.c
|
2005-03-13 04:17:30 +03:00
|
|
|
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
|
|
|
|
|
2005-12-10 04:40:09 +03:00
|
|
|
d3des.o: ../common/d3des.c
|
2005-03-13 04:17:30 +03:00
|
|
|
$(CC) $(C_OS_FLAGS) ../common/d3des.c
|
2005-12-02 06:24:41 +03:00
|
|
|
|
|
|
|
install:
|
|
|
|
install libvnc.so $(DESTDIR)/libvnc.so
|
|
|
|
|
2006-03-04 04:02:09 +03:00
|
|
|
installdeb:
|
2006-08-07 10:03:29 +04:00
|
|
|
install libvnc.so $(DESTDIRDEB)/usr/lib/xrdp/libvnc.so
|