# $Id: Makefile,v 1.2 1997/01/05 06:40:44 chip Exp $

#
# *** IMPORTANT ***
#
# You will need to comment out the "include".  Then uncomment
# and tune the configuration settings just below it.
#

#include /local/libexec/Make.sysdefs

########################################
#OPTIM = -O
##DEBUG = -g
#STRICT = -Wall
#INSTALL = install -c
#INST_PROG = $(INSTALL) -m 755
#INST_DATA = $(INSTALL) -m 644
#DIR_BIN = /usr/local/bin
#DIR_MAN1 = /usr/local/man/man1
########################################

CFLAGS = $(DEBUG) $(OPTIM) $(STRICT)
LDFLAGS = $(DEBUG)
LIBS =


all : cgi-postin

cgi-postin : cgi-postin.o
	$(CC) $(LDFLAGS) -o $@ cgi-postin.o $(LIBS)

cgi-postin.o : cgi-postin.c


install : $(DIR_BIN)/cgi-postin $(DIR_MAN1)/cgi-postin.1

$(DIR_BIN)/cgi-postin : cgi-postin
	$(INST_PROG) $? $@

$(DIR_MAN1)/cgi-postin.1 : cgi-postin.1
	$(INST_DATA) $? $@


clean :
	rm -f cgi-postin *.o
	@test ! -d RCS || ( set -x ; rcsclean )


SRCS = Makefile cgi-postin.c cgi-postin.1 testit

srcs : $(SRCS)

tar : $(SRCS)
	tar cvf cgi-postin.tar $(SRCS)

