xrdp/sesman/tools/Makefile.osx

66 lines
1.5 KiB
Makefile
Raw Normal View History

2007-09-27 22:09:29 +04:00
# 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)
2008-03-17 02:57:20 +03:00
$(CC) $(LDFLAGS) -o sestest $(SESTESTOBJ)
2007-09-27 22:09:29 +04:00
srun: $(SESRUNOBJ)
2008-03-17 02:57:20 +03:00
$(CC) $(LDFLAGS) -o sesrun $(SESRUNOBJ)
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
#d3des.o: ../../common/d3des.c
2008-03-17 02:57:20 +03:00
# $(CC) $(C_OS_FLAGS) ../../common/d3des.c
2007-09-27 22:09:29 +04:00
#list.o: ../../common/list.c
2008-03-17 02:57:20 +03:00
# $(CC) $(C_OS_FLAGS) ../../common/list.c
2007-09-27 22:09:29 +04:00
#file.o: ../../common/file.c
2008-03-17 02:57:20 +03:00
# $(CC) $(C_OS_FLAGS) ../../common/file.c
2007-09-27 22:09:29 +04:00
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
2008-03-17 02:57:20 +03:00
$(CC) $(C_OS_FLAGS) ../config.c
2007-09-27 22:09:29 +04:00
#libscp_v1c.o: ../libscp_v1c.c
# $(CC) $(C_OS_FLAGS) ../libscp_v1c.c
clean:
2008-03-17 02:57:20 +03:00
rm -f *.o sestest sesrun
2007-09-27 22:09:29 +04:00
install:
2008-03-17 02:57:20 +03:00
install sesrun $(DESTDIR)/sesrun
install sestest $(DESTDIR)/sestest
2007-09-27 22:09:29 +04:00
installdeb:
2008-03-17 02:57:20 +03:00
install sesrun $(DESTDIRDEB)/usr/lib/xrdp/sesrun
install sestest $(DESTDIRDEB)/usr/lib/xrdp/sestest