#####################################################################
#
#   Makefile for the GNU cfengine  (C) Mark Burgess 1994
#
#####################################################################

srcdir = @srcdir@
VPATH = @srcdir@

OBJ = getopt.o    \
      getopt1.o   \
      full-write.o\
      regex.o     \
      md5.o       \
      md5c.o

SCI_CC = -cckr

CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@
AR = ar
RANLIB = @RANLIB@

RM = rm -f

#
# Note that if you are compiling with gcc -- you will almost certainly
# need the ADDITIONAL CFLAGS  -w
#
# On solaris, you can remove the -w flag is you're not using the
# GNU compiler
#


#####################################################################
# Rules
######################################################################

all: libcfpub.a

install: all
	@echo "Nothing to install"

libcfpub.a: ${OBJ}
	${AR} cru $@ ${OBJ}
	-${RANLIB} $@

clean:
	${RM} ${OBJ}


distclean: clean
	${RM} Makefile *.o
	${RM} libcfpub.a libpub.a

.c.o: 
	${CC} -c ${CPPFLAGS} ${CFLAGS} ${DEFS} $<

