Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: a82fd71690
Fetching contributors…

Cannot retrieve contributors at this time

executable file 37 lines (26 sloc) 0.669 kB
#TTY-Clock MakeFile
#Under BSD License
#See clock.c for the license detail.
SRC = ttyclock.c
CC = cc
BIN = tty-clock
INSTALLPATH = /usr/local/bin/
CFLAGS = -Wall -g
LDFLAGS = -lncurses
tty-clock : ${SRC}
@echo "build ${SRC}"
@echo "CC ${CFLAGS} ${LDFLAGS} ${SRC}"
@${CC} ${CFLAGS} ${LDFLAGS} ${SRC} -o ${BIN}
install : ${BIN}
@echo "installing binary file to ${INSTALLPATH}${BIN}"
@cp ${BIN} ${INSTALLPATH}
@chmod 755 ${INSTALLPATH}${BIN}
@echo "installed"
uninstall :
@echo "uninstalling binary file (${INSTALLPATH}${BIN})"
@rm -f ${INSTALLPATH}${BIN}
@echo "${BIN} uninstalled"
clean :
@echo "cleaning ${BIN}"
@rm ${BIN}
@echo "${BIN} cleaned"
Jump to Line
Something went wrong with that request. Please try again.