Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile - teed - A multiplex relay tee(1) daemon.
git clone git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d…
Log
Files
Refs
Tags
README
LICENSE
---
Makefile (935B)
---
1 # teed - a tee(1) like multiplexer using unix sockets
2 # See LICENSE file for copyright and license details.
3 .POSIX:
4
5 NAME = teed
6 VERSION = 0.1
7
8 PREFIX = /usr/local
9 BINDIR = ${PREFIX}/bin
10 MANDIR = ${PREFIX}/share/man/man8
11
12 TEED_CFLAGS = -D_DEFAULT_SOURCE -I. -I/usr/include ${CFLAGS}
13 TEED_LDFLAGS = -L/usr/lib -L. ${LDFLAGS}
14
15 SRC = teed.c
16 OBJ = ${SRC:.c=.o}
17
18 all: ${NAME}
19
20 .c.o:
21 ${CC} ${TEED_CFLAGS} -c $<
22
23 ${OBJ}:
24
25 ${NAME}: ${OBJ}
26 ${CC} -o $@ ${OBJ} ${TEED_LDFLAGS}
27
28 clean:
29 rm -f ${NAME} ${OBJ}
30
31 install: all
32 mkdir -p "${DESTDIR}${BINDIR}"
33 cp -f ${NAME} "${DESTDIR}${BINDIR}"
34 chmod 755 "${DESTDIR}${BINDIR}/${NAME}"
35 mkdir -p "${DESTDIR}${MANDIR}"
36 cp -f ${NAME}.8 "${DESTDIR}${MANDIR}"
37 chmod 644 "${DESTDIR}${MANDIR}/${NAME}.8"
38
39 uninstall:
40 rm -f "${DESTDIR}${BINDIR}/${NAME}"
41 rm -f "${DESTDIR}${MANDIR}/${NAME}.8"
42
43 telemetry:
44 printf "/telemetry/teed/installed\r\n" | nc bitreich.org 70
45
46 .PHONY: all clean install uninstall
47
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.