#####################################################################
#
#   Makefile for the GNU cfengine  (C) Mark Burgess 1994
#
#   It should not be necessary to run make manually. To install
#   cfengine you should cd to the directory containing this
#   file and run "./configure". configure will invoke "make"
#   automatically after generating the makefile. If you want to
#   fine tune it afterwards, type CTRL-C to stop the installation
#   and run make manually.
#
#####################################################################

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

SCI_CC = -cckr

AR = ar
RANLIB = ranlib

#
# 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
#

CC=gcc
CFLAGS=-DLINUX -O2  -DDEBIAN

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

all: libpub.a

libpub.a: ${OBJ}
	$(AR) cru $@ $(OBJ)
	$(RANLIB) $@

distclean: mostlyclean
	rm -f Makefile

mostlyclean:
	rm -f *.o
	rm -f libpub.a

.c.o: 
	${CC} -c ${CFLAGS} $(DBGFLAG) ${INCLUDE} $<

