xrdp/xup/Makefile.osx

36 lines
629 B
Makefile
Raw Normal View History

2007-09-27 22:09:29 +04:00
# libxup makefile
XUPOBJ = os_calls.o xup.o
DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp
DEFINES =
LIBXUP = libxup.dylib
CFLAGS = -Wall -O2 -I../common -fPIC $(DEFINES)
#CFLAGS += -DXRDP_DEBUG
C_OS_FLAGS = $(CFLAGS) -c
LDFLAGS = -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress
LIBS = -ldl
CC = gcc
all: $(LIBXUP)
$(LIBXUP): $(XUPOBJ)
2008-03-17 02:57:20 +03:00
$(CC) $(LDFLAGS) -o $(LIBXUP) $(XUPOBJ) $(LIBS)
2007-09-27 22:09:29 +04:00
clean:
2008-03-17 02:57:20 +03:00
rm -f $(XUPOBJ) $(LIBXUP)
2007-09-27 22:09:29 +04:00
os_calls.o: ../common/os_calls.c
2008-03-17 02:57:20 +03:00
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
2007-09-27 22:09:29 +04:00
install:
2008-03-17 02:57:20 +03:00
install $(LIBXUP) $(DESTDIR)/$(LIBXUP)
2007-09-27 22:09:29 +04:00