geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
735 B

  1. # $FreeBSD$
  2. .PATH: ${.CURDIR:H}/shared
  3. LIBSSH2_DIR=../libssh2
  4. LIBSSH2=${LIBSSH2_DIR}/src/.libs/libssh2.a
  5. PROG= ggatessh
  6. MAN= ggatessh.8
  7. SRCS= ggatessh.c ggate.c
  8. CFLAGS+= -DMAX_SEND_SIZE=32768
  9. CFLAGS+= -DLIBGEOM
  10. CFLAGS+= -I${.CURDIR:H}/shared
  11. CFLAGS+= -I${LIBSSH2_DIR}/include
  12. #CFLAGS+= -O0 -g
  13. #CFLAGS+= -fprofile-instr-generate
  14. #LDFLAGS+= -L/home/freebsd/libssh2/src/.libs
  15. LDADD= -lgeom -lutil -lpthread ${LIBSSH2} -lcrypto -lssl -lz
  16. ${PROG}: ${LIBSSH2}
  17. ${LIBSSH2}: ${LIBSSH2_DIR}/Makefile
  18. (cd ${LIBSSH2_DIR} && make -j 4)
  19. ${LIBSSH2_DIR}/Makefile: ${LIBSSH2_DIR}/configure
  20. (cd ${LIBSSH2_DIR} && ./configure)
  21. ${LIBSSH2_DIR}/configure: ${LIBSSH2_DIR}/configure.ac
  22. (cd ${LIBSSH2_DIR} && autoreconf -fi)
  23. .include <bsd.prog.mk>