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.
 
 
 
 

35 lines
766 B

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