6 all: clean options abduco
9 @echo abduco build options
:
10 @echo
"CFLAGS = ${CFLAGS}"
11 @echo
"LDFLAGS = ${LDFLAGS}"
15 cp config.def.h config.h
19 @
${CC} -c
${CFLAGS} $<
21 ${OBJ}: config.h config.mk
25 @
${CC} -o
$@
${OBJ} ${LDFLAGS}
28 @make CFLAGS
='${DEBUG_CFLAGS}'
32 @
rm -f abduco
${OBJ} abduco-
${VERSION}.
tar.gz
35 @echo creating
dist tarball
36 @mkdir
-p abduco-
${VERSION}
37 @cp
-R LICENSE Makefile README config.def.h config.mk \
38 ${SRC} debug.c client.c server.c forkpty-aix.c abduco
.1 abduco-
${VERSION}
39 @
tar -cf abduco-
${VERSION}.
tar abduco-
${VERSION}
40 @gzip abduco-
${VERSION}.
tar
41 @
rm -rf abduco-
${VERSION}
44 @echo stripping executable
46 @echo installing executable file to
${DESTDIR}${PREFIX}/bin
47 @mkdir
-p
${DESTDIR}${PREFIX}/bin
48 @cp
-f abduco
${DESTDIR}${PREFIX}/bin
49 @chmod
755 ${DESTDIR}${PREFIX}/bin
/abduco
50 @echo installing manual page to
${DESTDIR}${MANPREFIX}/man1
51 @mkdir
-p
${DESTDIR}${MANPREFIX}/man1
52 @sed
"s/VERSION/${VERSION}/g" < abduco
.1 > ${DESTDIR}${MANPREFIX}/man1
/abduco
.1
53 @chmod
644 ${DESTDIR}${MANPREFIX}/man1
/abduco
.1
56 @echo removing executable file from
${DESTDIR}${PREFIX}/bin
57 @
rm -f
${DESTDIR}${PREFIX}/bin
/abduco
58 @echo removing manual page from
${DESTDIR}${MANPREFIX}/man1
59 @
rm -f
${DESTDIR}${MANPREFIX}/man1
/abduco
.1
61 .PHONY
: all options
clean dist install uninstall debug