-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (20 loc) · 753 Bytes
/
Makefile
File metadata and controls
23 lines (20 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CC=cc
override CFLAGS+=-std=c99 -Wall -pedantic -O2 -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE
LDFLAGS=-lcrypto -lssl
PREFIX=/usr/local
MANPREFIX=${PREFIX}/share/man
it:
${CC} -s tubes.c ${CFLAGS} ${LDFLAGS} -o tubes
install: it
echo installing executable to ${DESTDIR}${PREFIX}/bin
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f tubes ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/tubes
echo installing manpage to ${DESTDIR}/${MANPREFIX}/man1
cp -f tubes.1 ${DESTDIR}/${MANPREFIX}/man1
chmod 644 ${DESTDIR}/${MANPREFIX}/man1/tubes.1
uninstall:
echo removing executable file from ${DESTDIR}${PREFIX}/bin
rm -f ${DESTDIR}${PREFIX}/bin/tubes
echo removing manpage from ${DESTDIR}/${MANPREFIX}/man1
rm -f ${DESTDIR}/${MANPREFIX}/man1/tubes.1