Browse Source

use the newly imported libssh2 so this makes it mostly self contained..

tags/ggatessh-v1.0.0
John-Mark Gurney 4 years ago
parent
commit
fb496005f8
1 changed files with 16 additions and 3 deletions
  1. +16
    -3
      ggatessh/Makefile

+ 16
- 3
ggatessh/Makefile View File

@@ -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>

Loading…
Cancel
Save