You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
672 B

#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 -f ${BIN}
@echo "${BIN} cleaned"