logo

openpt

Fake a pseudo-terminal for testsuites

Makefile (491B)


  1. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils-openpt@hacktivis.me>
  2. # SPDX-License-Identifier: MIT
  3. PREFIX ?= /usr/local
  4. BINDIR ?= ${PREFIX}/bin
  5. MANDIR ?= ${PREFIX}/share/man
  6. openpt: openpt.c
  7. ${CC} -std=c99 ${CFLAGS} -o $@ $< ${LDFLAGS}
  8. .PHONY: clean
  9. clean:
  10. rm openpt
  11. .PHONY: install
  12. install: openpt
  13. mkdir -p ${DESTDIR}${BINDIR}/
  14. cp -p openpt ${DESTDIR}/${BINDIR}/openpt
  15. mkdir -p ${DESTDIR}${MANDIR}/man1/
  16. cp -p openpt.1 ${DESTDIR}/${MANDIR}/man1/openpt.1