Pipe fitting
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.

24 lines
753B

  1. CC=cc
  2. override CFLAGS+=-std=c99 -Wall -pedantic -O2 -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE
  3. LDFLAGS=-lcrypto -lssl
  4. PREFIX=/usr/local
  5. MANPREFIX=${PREFIX}/share/man
  6. it:
  7. ${CC} -s tubes.c ${CFLAGS} ${LDFLAGS} -o tubes
  8. install: it
  9. echo installing executable to ${DESTDIR}${PREFIX}/bin
  10. mkdir -p ${DESTDIR}${PREFIX}/bin
  11. cp -f tubes ${DESTDIR}${PREFIX}/bin
  12. chmod 755 ${DESTDIR}${PREFIX}/bin/tubes
  13. echo installing manpage to ${DESTDIR}/${MANPREFIX}/man1
  14. cp -f tubes.1 ${DESTDIR}/${MANPREFIX}/man1
  15. chmod 644 ${DESTDIR}/${MANPREFIX}/man1/tubes.1
  16. uninstall:
  17. echo removing executable file from ${DESTDIR}${PREFIX}/bin
  18. rm -f ${DESTDIR}${PREFIX}/bin/tubes
  19. echo removing manpage from ${DESTDIR}/${MANPREFIX}/man1
  20. rm -f ${DESTDIR}/${MANPREFIX}/man1/tubes.1