# $FreeBSD$ .PATH: ${.CURDIR:H}/shared SUBDIR= rc.d LIBSSH2_DIR=../libssh2 LIBSSH2=${LIBSSH2_DIR}/src/.libs/libssh2.a PROG= ggatessh MAN= ggatessh.8 SRCS= ggatessh.c ggate.c CFLAGS+= -DMAX_SEND_SIZE=32768 CFLAGS+= -DLIBGEOM CFLAGS+= -I${.CURDIR:H}/shared CFLAGS+= -I${LIBSSH2_DIR}/include #CFLAGS+= -O0 -g #CFLAGS+= -fprofile-instr-generate #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 --disable-shared) ${LIBSSH2_DIR}/configure: ${LIBSSH2_DIR}/configure.ac (cd ${LIBSSH2_DIR} && autoreconf -fi) .include