xrdp/sesman/tools/Makefile

55 lines
1.3 KiB
Makefile
Raw Normal View History

# sesman tools makefile
2008-05-04 13:19:34 +08:00
SESTESTOBJ = sestest.o os_calls.o log.o
SESRUNOBJ = sesrun.o config.o tcp.o \
os_calls.o d3des.o list.o file.o log.o
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
2008-05-04 13:19:34 +08:00
LIBDIR = /usr/local/lib/xrdp
BINDIR = /usr/local/bin
DEFINES = -DLIBSCP_CLIENT
2008-02-21 23:50:31 +08:00
#CFLAGS = -Wall -O2 -I../../common -I../ -I/usr/include/nptl -I../libscp $(DEFINES)
CFLAGS = -Wall -g -I../../common -I../ -I/usr/include/nptl -I../libscp $(DEFINES)
2008-05-04 13:19:34 +08:00
LDFLAGS = -L/usr/gnu/lib -L/usr/lib/nptl -L../libscp -lpthread -ldl -lscp -Wl,-rpath,$(LIBDIR)
#LDFLAGS = -L /usr/gnu/lib -ldl $(DEFINES)
2008-05-04 13:19:34 +08:00
C_OS_FLAGS = $(CFLAGS) -c
CC = gcc
2008-05-04 13:19:34 +08:00
all: xrdp-sestest xrdp-sesrun
2008-05-04 13:19:34 +08:00
xrdp-sestest: $(SESTESTOBJ)
$(CC) $(LDFLAGS) -o xrdp-sestest $(SESTESTOBJ)
2008-05-04 13:19:34 +08:00
xrdp-sesrun: $(SESRUNOBJ)
$(CC) $(LDFLAGS) -o xrdp-sesrun $(SESRUNOBJ)
2008-05-04 13:19:34 +08:00
clean:
rm -f *.o xrdp-sestest xrdp-sesrun
2008-05-04 13:19:34 +08:00
install:
install xrdp-sesrun $(BINDIR)/xrdp-sesrun
install xrdp-sestest $(BINDIR)/xrdp-sestest
d3des.o: ../../common/d3des.c
$(CC) $(C_OS_FLAGS) ../../common/d3des.c
2008-05-04 13:19:34 +08:00
list.o: ../../common/list.c
$(CC) $(C_OS_FLAGS) ../../common/list.c
2008-05-04 13:19:34 +08:00
file.o: ../../common/file.c
$(CC) $(C_OS_FLAGS) ../../common/file.c
2008-05-04 13:19:34 +08:00
os_calls.o: ../../common/os_calls.c
$(CC) $(C_OS_FLAGS) ../../common/os_calls.c
log.o: ../../common/log.c
$(CC) $(C_OS_FLAGS) ../../common/log.c
config.o: ../config.c
$(CC) $(C_OS_FLAGS) ../config.c