head	1.5;
access;
symbols
	charm6_1:1.5
	charm_6_0_1:1.5
	charm5_9:1.3;
locks; strict;
comment	@# @;


1.5
date	2009.02.11.23.29.40;	author gioachin;	state Exp;
branches;
next	1.4;
commitid	W7ezABFhnakYA4Ct;

1.4
date	2008.04.13.05.36.42;	author schak;	state Exp;
branches;
next	1.3;
commitid	3ek5aF3FmlLDqUYs;

1.3
date	2004.11.21.00.59.53;	author gioachin;	state Exp;
branches;
next	1.2;

1.2
date	2004.10.24.03.11.09;	author gioachin;	state Exp;
branches;
next	1.1;

1.1
date	2004.09.24.21.57.48;	author gioachin;	state Exp;
branches;
next	;


desc
@@


1.5
log
@updated test for python paper
@
text
@CHARMDIR = ../../..
CHARMC = $(CHARMDIR)/bin/charmc $(OPTS)
INCL = -I/usr/include/python/
LIBS = -lpthread -lutil -ldl -lm -lpython2.5
INCLC = -I$(CHARMDIR)/include/
MODULES = -module PythonCCS -module charmdebug_python
PYMODULE = $(CHARMDIR)/lib/libmodulePythonCCS.a

OBJS = server.o


all: server client

server: $(OBJS)
	$(CHARMC) $(INCL) -language charm++ -o server $(OBJS) $(LIBS) $(MODULES)

server.decl.h: server.ci $(PYMODULE) $(CHARMDIR)/bin/charmxi
	$(CHARMC) $<

client: client.C
	g++ $(INCLC) $(OPTS) -o $@@ $^ $(PYMODULE)

clean:
	rm -f *.decl.h *.def.h *.o server client charmrun *~


server.o: server.C server.decl.h server.h
	$(CHARMC) -c $<

test: all
	./charmrun ./server ++remote-shell ssh ++server ++server-port 1234 +p2 $(OPTS) &
	./client localhost 1234 4 1 0 <python.code
	sleep 2
	./charmrun ./server ++remote-shell ssh ++server ++server-port 1234 +p2 $(OPTS) &
	./client localhost 1234 4 0 0 <python.code
@


1.4
log
@server takes granularity as argument
client is more flexible
@
text
@d1 1
a1 1
CHARMDIR=$(HOME)/installations/charm/net-linux-amd64
d32 1
a32 1
	./client localhost 1234 <python.code
d34 2
a35 3
	./client localhost 1234 <python.code
	sleep 2
	./client localhost 1234 kill <python.code
@


1.3
log
@program working with the new interface
@
text
@d1 2
a2 1
CHARMC = ../../../../bin/charmc -g
d4 4
a7 4
LIBS = /usr/lib/python/config/libpython2.3.a -lpthread -lutil -ldl -lm
INCLC = -I../../../../include/
MODULES = -module PythonCCS
PYMODULE = ../../../../lib/libmodulePythonCCS.a
d17 1
a17 1
server.decl.h: server.ci $(PYMODULE) ../../../../bin/charmxi
d20 2
a21 2
client: client.C ../../../../tmp/libs/ck-libs/pythonCCS/PythonCCS-client.C
	g++ $(INCLC) -o $@@ $^
@


1.2
log
@slight modification to the example
@
text
@d19 2
a20 2
client: client.C
	g++ $(INCLC) -o $@@ $<
@


1.1
log
@new example for python interface with a high level functionatily
@
text
@d31 1
a31 1
	./client localhost 1234
d33 1
a33 1
	./client localhost 1234
d35 1
a35 1
	./client localhost 1234 kill
@

