added mac makefiles

ulab-original
jsorg71 17 years ago
parent 4125491367
commit 5bec95f123

@ -0,0 +1,51 @@
DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp
all: kerberos
world: base
${MAKE} -C sesman
base:
${MAKE} -C vnc -f Makefile.osx
${MAKE} -C libxrdp -f Makefile.osx
${MAKE} -C xrdp -f Makefile.osx
${MAKE} -C rdp -f Makefile.osx
${MAKE} -C xup -f Makefile.osx
nopam: base
${MAKE} -C sesman nopam
${MAKE} -C sesman tools
kerberos: base
${MAKE} -C sesman -f Makefile.osx kerberos
${MAKE} -C sesman -f Makefile.osx tools
clean:
${MAKE} -C vnc -f Makefile.osx clean
${MAKE} -C libxrdp -f Makefile.osx clean
${MAKE} -C xrdp -f Makefile.osx clean
${MAKE} -C rdp -f Makefile.osx clean
${MAKE} -C sesman -f Makefile.osx clean
${MAKE} -C xup -f Makefile.osx clean
install:
mkdir -p $(DESTDIR)
mkdir -p $(CFGDIR)
mkdir -p $(PIDDIR)
mkdir -p $(MANDIR)
mkdir -p $(DOCDIR)
${MAKE} -C vnc install
${MAKE} -C libxrdp install
${MAKE} -C xrdp install
${MAKE} -C rdp install
${MAKE} -C sesman install
${MAKE} -C xup install
${MAKE} -C docs install
if [ -d /etc/pam.d ]; then install instfiles/pam.d/sesman/etc/pam.d/sesman; fi
install instfiles/xrdp_control.sh $(DESTDIR)/xrdp_control.sh

@ -0,0 +1,48 @@
# libxrdp makefile
LIBXRDPOBJ = libxrdp.o xrdp_tcp.o xrdp_iso.o xrdp_mcs.o \
xrdp_sec.o xrdp_rdp.o xrdp_orders.o \
xrdp_bitmap_compress.o xrdp_channel.o \
os_calls.o ssl_calls.o file.o
DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp
DEFINES = -DXRDP_CFG_FILE=\"$(CFGDIR)/xrdp.ini\" \
-DXRDP_KEY_FILE=\"$(CFGDIR)/rsakeys.ini\"
LIBXRDP = libxrdp.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 = -lcrypto
CC = gcc
all: $(LIBXRDP)
static: $(LIBXRDPOBJ)
$(AR) rvu libxrdp.a $(LIBXRDPOBJ)
ranlib libxrdp.a
$(LIBXRDP): $(LIBXRDPOBJ)
$(CC) $(LDFLAGS) -o $(LIBXRDP) $(LIBXRDPOBJ) $(LIBS)
clean:
rm -f $(LIBXRDPOBJ) libxrdp.a $(LIBXRDP)
install:
install $(LIBXRDP) $(DESTDIR)/$(LIBXRDP)
file.o: ../common/file.c
$(CC) $(C_OS_FLAGS) ../common/file.c
os_calls.o: ../common/os_calls.c
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
ssl_calls.o: ../common/ssl_calls.c
$(CC) $(C_OS_FLAGS) ../common/ssl_calls.c

@ -0,0 +1,39 @@
# librdp makefile
RDPOBJ = ssl_calls.o os_calls.o rdp.o rdp_tcp.o rdp_iso.o rdp_mcs.o rdp_sec.o \
rdp_orders.o rdp_bitmap.o rdp_rdp.o rdp_lic.o
DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp
DEFINES =
LIBRDP = librdb.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
LIBS += -lcrypto
CC = gcc
all: $(LIBRDP)
$(LIBRDP): $(RDPOBJ)
$(CC) $(LDFLAGS) -o $(LIBRDP) $(RDPOBJ) $(LIBS)
clean:
rm -f $(RDPOBJ) $(LIBRDP)
os_calls.o: ../common/os_calls.c
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
ssl_calls.o: ../common/ssl_calls.c
$(CC) $(C_OS_FLAGS) ../common/ssl_calls.c
install:
install $(LIBRDP) $(DESTDIR)/$(LIBRDP)

@ -0,0 +1,77 @@
# sesman $(MAKE)file
SESMANOBJ = sesman.o config.o sig.o session.o env.o \
os_calls.o d3des.o list.o file.o log.o access.o \
scp.o scp_v0.o scp_v1.o thread.o lock.o
SESSVCOBJ = sessvc.o os_calls.o
DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp
DEFINES = -DSESMAN_CFG_FILE=\"$(CFGDIR)/sesman.ini\" \
-DSESMAN_PID_FILE=\"$(PIDDIR)/sesman.pid\"
CFLAGS = -Wall -O2 -I../common -I/usr/include/nptl -I./libscp $(DEFINES)
LDFLAGS = -L./libscp -lpthread -ldl -lscp
C_OS_FLAGS = $(CFLAGS) -c
CC = gcc
all: libscp_ pam tools
nopam: libscp_ no-pam tools
kerberos: libscp_ kerberos-base tools
no-pam: $(SESMANOBJ) verify_user.o
$(MAKE) -C libscp
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user.o -lcrypt
pam: $(SESMANOBJ) verify_user_pam.o
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_pam.o -lpam
pam_userpass: $(SESMANOBJ) verify_user_pam_userpass.o
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_pam_userpass.o -lpam -lpam_userpass
kerberos-base: $(SESMANOBJ) verify_user_kerberos.o
$(CC) $(LDFLAGS) -o sesman $(SESMANOBJ) verify_user_kerberos.o -lkrb5
sessvc: $(SESSVCOBJ)
$(CC) $(LDFLAGS) -o sessvc $(SESSVCOBJ)
tools: sessvc
$(MAKE) -C tools -f Makefile.osx
libscp_:
$(MAKE) -C libscp -f Makefile.osx
clean:
rm -f $(SESMANOBJ) verify_user.o verify_user_pam.o verify_user_pam_userpass.o sesman sesrun.o sesrun sessvc.o sessvc
$(MAKE) -C tools -f Makefile.osx clean
$(MAKE) -C libscp -f Makefile.osx clean
install:
install sesman $(DESTDIR)/sesman
install startwm.sh $(DESTDIR)/startwm.sh
install sesman.ini $(CFGDIR)/sesman.ini
install sessvc $(DESTDIR)/sessvc
$(MAKE) -C tools install
$(MAKE) -C libscp install
os_calls.o: ../common/os_calls.c
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
d3des.o: ../common/d3des.c
$(CC) $(C_OS_FLAGS) ../common/d3des.c
list.o: ../common/list.c
$(CC) $(C_OS_FLAGS) ../common/list.c
file.o: ../common/file.c
$(CC) $(C_OS_FLAGS) ../common/file.c
log.o: ../common/log.c
$(CC) $(C_OS_FLAGS) -DLOG_ENABLE_THREAD ../common/log.c

@ -0,0 +1,45 @@
# libscp makefile
LIBSCPOBJ = libscp_vX.o libscp_v0.o \
libscp_v1s.o libscp_v1c.o \
libscp_init.o libscp_lock.o libscp_tcp.o \
libscp_session.o libscp_connection.o \
os_calls.o
DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp
DESTDIRDEB = /tmp
LIBSCPLNAME = libscp.dylib
LIBSCPSONAME = libscp.1.dylib
LIBSCPFNAME = libscp.0.0.dylib
DEFINES = -DSESMAN_CFG_FILE=\"$(CFGDIR)/sesman.ini\" \
-DSESMAN_PID_FILE=\"$(PIDDIR)/sesman.pid\" \
-DSESMAN_SESSVC_FILE=\"sessvc\"
CFLAGS = -Wall -O2 -I../../common -I/usr/include/nptl -fPIC -fno-common $(DEFINES)
LDFLAGS = -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -lpthread
C_OS_FLAGS = $(CFLAGS) -c
CC = gcc
all: $(LIBSCPOBJ)
$(CC) $(LDFLAGS) -o $(LIBSCPFNAME) $(LIBSCPOBJ)
ln -f -s $(LIBSCPFNAME) $(LIBSCPLNAME)
clean:
rm -f $(LIBSCPOBJ) $(LIBSCPFNAME) $(LIBSCPLNAME)
install:
install $(LIBSCPFNAME) $(DESTDIR)/$(LIBSCPFNAME)
ln -f -s $(LIBSCPFNAME) $(DESTDIR)/$(LIBSCPLNAME)
installdeb:
install $(LIBSCPFNAME) $(DESTDIRDEB)/usr/lib/xrdp/$(LIBSCPFNAME)
ln -f -s $(LIBSCPFNAME) $(DESTDIRDEB)/usr/lib/xrdp/$(LIBSCPLNAME)
os_calls.o: ../../common/os_calls.c
$(CC) $(C_OS_FLAGS) ../../common/os_calls.c

@ -0,0 +1,65 @@
# sesman tools makefile
SESTESTOBJ = sestest.o \
os_calls.o
# d3des.o list.o file.o \
# libscp_v1c.o tcp.o
SESRUNOBJ = sesrun.o config.o tcp.o \
os_calls.o d3des.o list.o file.o log.o
DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp
DEFINES = -DLIBSCP_CLIENT
CFLAGS = -Wall -O2 -I../../common -I../ -I../libscp $(DEFINES)
LDFLAGS = -L../libscp -lpthread -ldl -lscp $(DEFINES)
#LDFLAGS = -L /usr/gnu/lib -ldl $(DEFINES)
C_OS_FLAGS = $(CFLAGS) -c -g
CC = gcc
all: stest srun
stest: $(SESTESTOBJ)
$(CC) $(LDFLAGS) -o sestest $(SESTESTOBJ)
srun: $(SESRUNOBJ)
$(CC) $(LDFLAGS) -o sesrun $(SESRUNOBJ)
os_calls.o: ../../common/os_calls.c
$(CC) $(C_OS_FLAGS) ../../common/os_calls.c
#d3des.o: ../../common/d3des.c
$(CC) $(C_OS_FLAGS) ../../common/d3des.c
#list.o: ../../common/list.c
$(CC) $(C_OS_FLAGS) ../../common/list.c
#file.o: ../../common/file.c
$(CC) $(C_OS_FLAGS) ../../common/file.c
log.o: ../../common/log.c
$(CC) $(C_OS_FLAGS) ../../common/log.c
#tcp.o: tcp.c
# $(CC) $(C_OS_FLAGS) ../tcp.c
config.o: ../config.c
$(CC) $(C_OS_FLAGS) ../config.c
#libscp_v1c.o: ../libscp_v1c.c
# $(CC) $(C_OS_FLAGS) ../libscp_v1c.c
clean:
rm -f *.o sestest sesrun
install:
install sesrun $(DESTDIR)/sesrun
install sestest $(DESTDIR)/sestest
installdeb:
install sesrun $(DESTDIRDEB)/usr/lib/xrdp/sesrun
install sestest $(DESTDIRDEB)/usr/lib/xrdp/sestest

@ -0,0 +1,37 @@
# libvnc makefile
VNCOBJ = vnc.o os_calls.o d3des.o
DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp
DEFINES =
VNCLIB = libvnc.dylib
CFLAGS = -Wall -O2 -I../common -fPIC $(DEFINES)
C_OS_FLAGS = $(CFLAGS) -c -g
LDFLAGS = -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress
LIBS =
CC = gcc
all: $(VNCLIB)
$(VNCLIB): $(VNCOBJ)
$(CC) $(LDFLAGS) -o $(VNCLIB) $(VNCOBJ) $(LIBS)
clean:
rm -f $(VNCOBJ) $(VNCLIB)
os_calls.o: ../common/os_calls.c
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
d3des.o: ../common/d3des.c
$(CC) $(C_OS_FLAGS) ../common/d3des.c
install:
install $(VNCLIB) $(DESTDIR)/$(VNCLIB)

@ -0,0 +1,35 @@
# 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)
$(CC) $(LDFLAGS) -o $(LIBXUP) $(XUPOBJ) $(LIBS)
clean:
rm -f $(XUPOBJ) $(LIBXUP)
os_calls.o: ../common/os_calls.c
$(CC) $(C_OS_FLAGS) ../common/os_calls.c
install:
install $(LIBXUP) $(DESTDIR)/$(LIBXUP)
Loading…
Cancel
Save