# Makefile made for BSD only at the moment
CC ?= gcc
STRIP ?= strip
OBJS = getopt.o getopt1.o cmdwatch.o
all : startup $(OBJS)
@$(CC) -o cmdwatch $(OBJS) -lcurses
@strip cmdwatch
@echo " done."
startup :
@echo -n "Making cmdwatch..."
getopt.o : getopt.c
@$(CC) -c getopt.c
getopt1.o : getopt1.c
@$(CC) -c getopt1.c
cmdwatch.o : cmdwatch.c
@$(CC) -c cmdwatch.c
clean :
@echo "Making clean..."
@rm -f *.o cmdwatch
install : all
@install cmdwatch ${PREFIX}/bin/
@install -m 444 cmdwatch.1 ${PREFIX}/man/man1/
@echo "Installing cmdwatch"
uninstall :
@rm ${PREFX}/bin/cmdwatch
syntax highlighted by Code2HTML, v. 0.9.1