|
|
@@ -2,6 +2,8 @@ |
|
|
|
|
|
|
|
.PATH: ${.CURDIR:H}/shared |
|
|
|
|
|
|
|
LIBSSH2_DIR=../libssh2 |
|
|
|
LIBSSH2=${LIBSSH2_DIR}/src/.libs/libssh2.a |
|
|
|
PROG= ggatessh |
|
|
|
MAN= ggatessh.8 |
|
|
|
SRCS= ggatessh.c ggate.c |
|
|
@@ -9,11 +11,22 @@ SRCS= ggatessh.c ggate.c |
|
|
|
CFLAGS+= -DMAX_SEND_SIZE=32768 |
|
|
|
CFLAGS+= -DLIBGEOM |
|
|
|
CFLAGS+= -I${.CURDIR:H}/shared |
|
|
|
CFLAGS+= -I/home/freebsd/libssh2/include |
|
|
|
CFLAGS+= -I${LIBSSH2_DIR}/include |
|
|
|
#CFLAGS+= -O0 -g |
|
|
|
#CFLAGS+= -fprofile-instr-generate |
|
|
|
|
|
|
|
LDFLAGS+= -L/home/freebsd/libssh2/src/.libs |
|
|
|
LDADD= -lgeom -lutil -lpthread -lssh2 |
|
|
|
#LDFLAGS+= -L/home/freebsd/libssh2/src/.libs |
|
|
|
LDADD= -lgeom -lutil -lpthread ${LIBSSH2} -lcrypto -lssl -lz |
|
|
|
|
|
|
|
${PROG}: ${LIBSSH2} |
|
|
|
|
|
|
|
${LIBSSH2}: ${LIBSSH2_DIR}/Makefile |
|
|
|
(cd ${LIBSSH2_DIR} && make -j 4) |
|
|
|
|
|
|
|
${LIBSSH2_DIR}/Makefile: ${LIBSSH2_DIR}/configure |
|
|
|
(cd ${LIBSSH2_DIR} && ./configure) |
|
|
|
|
|
|
|
${LIBSSH2_DIR}/configure: ${LIBSSH2_DIR}/configure.ac |
|
|
|
(cd ${LIBSSH2_DIR} && autoreconf -fi) |
|
|
|
|
|
|
|
.include <bsd.prog.mk> |