1999-01-27 01:49:19 +00:00
|
|
|
# $Id: Makefile,v 1.11 1999-01-25 15:38:39-08 bryan Exp $
|
1998-12-18 23:12:55 +00:00
|
|
|
#
|
|
|
|
# Makefile for console client progran
|
|
|
|
#
|
|
|
|
|
1999-01-14 22:06:50 +00:00
|
|
|
PROG=console
|
1999-01-13 22:38:26 +00:00
|
|
|
PREFIX=/usr/local
|
|
|
|
BIN=${PREFIX}/bin
|
|
|
|
ETC=${PREFIX}/etc
|
|
|
|
MAN=${PREFIX}/man
|
|
|
|
MANSECT=8
|
1998-12-18 23:12:55 +00:00
|
|
|
|
|
|
|
C=../conserver
|
|
|
|
|
1999-01-14 22:06:50 +00:00
|
|
|
LINCLUDE= ${INCLUDE} -I$C
|
|
|
|
CFLAGS= ${DEBUG} ${CDEFS} ${LINCLUDE}
|
1998-12-18 23:12:55 +00:00
|
|
|
|
|
|
|
HDR=
|
1999-01-13 22:38:26 +00:00
|
|
|
SRC= console.c
|
|
|
|
OBJ= console.o
|
1998-12-18 23:12:55 +00:00
|
|
|
|
|
|
|
all: ${PROG}
|
|
|
|
|
1999-01-13 22:38:26 +00:00
|
|
|
${PROG}: ${OBJ}
|
|
|
|
${CC} -o $@ ${CFLAGS} ${OBJ} ${LIBS}
|
1998-12-18 23:12:55 +00:00
|
|
|
|
|
|
|
clean: FRC
|
1999-01-27 01:49:19 +00:00
|
|
|
rm -f Makefile.bak ${PROG} *.tbl a.out *.o core errs lint.out tags
|
1998-12-18 23:12:55 +00:00
|
|
|
|
1999-01-13 22:38:26 +00:00
|
|
|
depend: ${HDR} ${SRC} FRC
|
1999-01-14 22:06:50 +00:00
|
|
|
makedepend ${CDEFS} ${LINCLUDE} ${SRC}
|
1998-12-18 23:12:55 +00:00
|
|
|
|
1999-01-13 22:38:26 +00:00
|
|
|
dirs: ${BIN}
|
1998-12-18 23:12:55 +00:00
|
|
|
|
|
|
|
install: all dirs FRC
|
1999-01-13 22:38:26 +00:00
|
|
|
${INSTALL} -cs ${PROG} ${BIN}/${PROG}
|
1998-12-18 23:12:55 +00:00
|
|
|
|
1999-01-13 22:38:26 +00:00
|
|
|
${MAN}/man${MANSECT}:
|
|
|
|
${INSTALL} -d $@
|
1998-12-18 23:12:55 +00:00
|
|
|
|
1999-01-13 22:38:26 +00:00
|
|
|
install.man: ${MAN}/man${MANSECT}
|
1999-01-27 01:49:19 +00:00
|
|
|
tbl console.man > console.tbl
|
|
|
|
${INSTALL} -c console.tbl ${MAN}/man${MANSECT}/console.${MANSECT}
|
1998-12-18 23:12:55 +00:00
|
|
|
|
1999-01-13 22:38:26 +00:00
|
|
|
lint: ${HDR} ${SRC} FRC
|
1999-01-14 22:06:50 +00:00
|
|
|
lint -h ${CDEFS} ${LINCLUDE} ${SRC}
|
1998-12-18 23:12:55 +00:00
|
|
|
|
1999-01-13 22:38:26 +00:00
|
|
|
tags: ${HDR} ${SRC}
|
|
|
|
ctags -t ${HDR} ${SRC}
|
1998-12-18 23:12:55 +00:00
|
|
|
|
1999-01-13 22:38:26 +00:00
|
|
|
/ ${BIN}:
|
|
|
|
${INSTALL} -d $@
|
1998-12-18 23:12:55 +00:00
|
|
|
|
|
|
|
FRC:
|
|
|
|
|
1999-01-13 22:38:26 +00:00
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
1998-12-18 23:12:55 +00:00
|
|
|
|
1999-01-13 22:38:26 +00:00
|
|
|
console.o: ../conserver/cons.h ../conserver/port.h ../conserver/version.h
|