head	1.3;
access;
symbols
	charm6_1:1.3
	charm_6_0_1:1.3
	charm6_0_1:1.3
	charm6_0:1.3
	ChaNGa_1-0:1.3
	charm5_9:1.3;
locks; strict;
comment	@# @;


1.3
date	2004.03.08.22.10.30;	author gzheng;	state Exp;
branches;
next	1.2;

1.2
date	2004.03.05.00.27.04;	author cheelee;	state Exp;
branches;
next	1.1;

1.1
date	2003.04.09.18.27.14;	author jbooth;	state Exp;
branches;
next	;


desc
@@


1.3
log
@skip mkdir if the directory already exists.
@
text
@CDIR=../../../..
CHARMC=$(CDIR)/bin/charmc $(OPTS)

HEADERS=search.h problem.h serialtree.h idastar.h search.decl.h
# Not only must the headers be present, they must be in the right place!
HEADDEP=headers search.def.h
OBJS=search.o problem.o serialtree.o idastar.o
DEST=$(CDIR)/lib/libmodulesearch.a
OPTS=-DRANDOM_STARTING_PROC

all: $(DEST)

$(DEST): $(OBJS) $(COMPAT) headers
	$(CHARMC) $(OBJS) $(COMPAT) -o $@@

headers: $(HEADERS)
	test -d $(CDIR)/include/cklibs || mkdir $(CDIR)/include/cklibs/
	cp $(HEADERS) $(CDIR)/include/cklibs/
	touch headers

search.o: search.C $(HEADDEP)
	$(CHARMC) -c search.C

problem.o: problem.C $(HEADDEP) 
	$(CHARMC) -c problem.C

serialtree.o: serialtree.C $(HEADDEP)
	$(CHARMC) -c serialtree.C

idastar.o: idastar.C $(HEADDEP)
	$(CHARMC) -c idastar.C

search.decl.h search.def.h: search.ci
	$(CHARMC) search.ci

clean:
	rm -rf *.a *.def.h *.decl.h *.o SunWS_cache $(DEST) headers
@


1.2
log
@Moved the header files for Jonathan's search library to $(CDIR)/include/cklibs
instead of the original $(CDIR)/include. This avoids a conflict with the
system's search.h (it will always assume the use of the library version) by
requiring the programmer to explicitly use #include "cklibs/search.h" when
refering to our implementation.

Tests on Cjacobi3D/jacobi.C indicate that the correct behavior is being
observed.
@
text
@d17 1
a17 1
	mkdir $(CDIR)/include/cklibs/
@


1.1
log
@Checking in my idaStar search tree library. Liberally commented, not
yet documented. I'll check in an example in the pgms directory along
with documentation later, once I can do that while waiting on data
runs.
@
text
@d5 2
a6 1
HEADDEP=$(HEADERS) search.def.h
d17 2
a18 1
	cp $(HEADERS) $(CDIR)/include/
d24 1
a24 1
problem.o: problem.C $(HEADDEP)
@

