2006-02-05 03:00:34 +08:00
|
|
|
# libxup makefile
|
2007-03-25 21:42:45 +08:00
|
|
|
|
2007-05-10 12:19:08 +08:00
|
|
|
XUPOBJ = os_calls.o xup.o
|
2006-02-05 03:00:34 +08:00
|
|
|
|
2008-04-30 13:55:08 +08:00
|
|
|
LIBDIR = /usr/local/lib/xrdp
|
2006-02-05 03:00:34 +08:00
|
|
|
|
|
|
|
DEFINES =
|
|
|
|
|
|
|
|
CFLAGS = -Wall -O2 -I../common -fPIC $(DEFINES)
|
|
|
|
#CFLAGS += -DXRDP_DEBUG
|
|
|
|
C_OS_FLAGS = $(CFLAGS) -c
|
|
|
|
LDFLAGS = -shared
|
|
|
|
LIBS = -ldl
|
|
|
|
CC = gcc
|
|
|
|
|
2008-04-03 14:24:36 +08:00
|
|
|
all: libxup.so
|
2006-02-05 03:00:34 +08:00
|
|
|
|
2008-04-03 14:24:36 +08:00
|
|
|
libxup.so: $(XUPOBJ)
|
2006-02-05 03:00:34 +08:00
|
|
|
$(CC) $(LDFLAGS) -o libxup.so $(XUPOBJ) $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(XUPOBJ) libxup.so
|
|
|
|
|
|
|
|
os_calls.o: ../common/os_calls.c
|
|
|
|
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
|
|
|
|
|
|
|
|
install:
|
2008-04-30 13:55:08 +08:00
|
|
|
install libxup.so $(LIBDIR)/libxup.so
|