#
# Makefile - A Makefile for compiling the RandomCsp library.
#
# $Id: Makefile,v 1.7 2003/03/04 17:32:42 jvhemert Exp $
#

CFILES = csp.cc static_csp.cc randomcsp.cc randomcsp4.cc randomcsp3.cc model_a.cc model_b.cc model_c.cc model_d.cc model_e.cc model_f.cc model_g.cc error.cc model_rb.cc
HFILES = csp.h static_csp.h randomcsp.h randomcsp4.h randomcsp3.h model_a.h model_b.h model_c.h model_d.h model_e.h model_f.h model_g.h error.h model_rb.h

########################## NO CHANGES BELOW THIS LINE #######################

include ../Makefile.settings

librandomcsp.a: $(OFILES)
	ar -r $@ $^
	ranlib $@

include ../Makefile.common

ifeq ($(DEPENDFILE), $(wildcard $(DEPENDFILE)))
include $(DEPENDFILE)
endif

$(DEPENDFILE) depend dep:
	-@$(RM) $(DEPENDFILE)
	@echo "Creating $(DEPENDFILE)"
	@$(CC) -MM $(CFILES) > $(DEPENDFILE)
	$(MAKE)

# eof Makefile
