# @(#)Makefile for nocando.c 31 AUG 2000 Rob Thomas robt@cymru.com
#
# This makefile will generate the binary for the nocando
# program.  See the README file for more information or
# type "make help".
#

# Stuff to be tweaked for your system, e.g. set CC=/usr/local/bin/gcc, etc.

#CC=/bin/cc
CFLAGS=-O
OUTPUT_BINARY=nocando

# What syslog facility do you wish to use?  You may have other apps (e.g.
# the TCP wrappers, etc.) that also utilize the local facilities.  Check
# your /etc/syslog.conf first!

SYSFAC=LOG_LOCAL3

# Okay, decision time here.  Do you want the output to say "Hello, Full Name
# as seen in GECOS field of /etc/passwd", or simply "Hello, loginname"?  It
# may be a security hole to display the full name of an user, particularly
# if this is a cracker beating on your door.
# To reveal only the loginname, leave VBOSE=0.  To display the fullname,
# set VBOSE=1.

VBOSE=0

# Everything below this line should be fine as-is.

nocando : nocando.c
	@echo "nocando: building binary"
	$(CC) $(CFLAGS) -DSYSLOG_FAC=$(SYSFAC) -DVERBOSE=$(VBOSE) nocando.c -o \
              $(OUTPUT_BINARY)
	@strip $(OUTPUT_BINARY)
	@chmod 111 nocando
	@echo "nocando: build complete"
	@echo

help :
	@/bin/cat README | pg
	@echo

clean :
	@rm -f *.o nocando
	@echo
