From: cherierm Date: Tue, 19 Aug 2008 15:54:35 +0000 (+0000) Subject: samples of makefile for cpp wrappers examples. X-Git-Tag: v3.3~210 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8bbd1fffddc380176e537b8c0d0542536e8d8a63?ds=sidebyside samples of makefile for cpp wrappers examples. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5897 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/cxx/autoDestination/makefile b/examples/cxx/autoDestination/makefile new file mode 100644 index 0000000000..12a9dd7962 --- /dev/null +++ b/examples/cxx/autoDestination/makefile @@ -0,0 +1,20 @@ +CXX = g++ +PREFIX = /home/mcherier/com/loria/SimGridX +INCLUDES =-I$(PREFIX)/lib -I$(PREFIX)/examples/autoDestination +SRCDIR = $(PREFIX)/examples/autoDestination +CXXFLAGS = -Wall -pedantic -D_DEBUG $(INCLUDES) +LDFLAGS = -L$(PREFIX)/lib +LDLIBS = -lSimGridX + +PROG = autoDestination + +OBJECTS = BasicTask.o FinalizeTask.o Forwarder.o Slave.o Master.o Main.o + +all: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(PROG) + +%.o: $(SRCDIR)/%.cxx + $(CXX) -c $(CXXFLAGS) $(SRCDIR)/$*.cxx + +clean: + rm *.o \ No newline at end of file diff --git a/examples/cxx/basic/makefile b/examples/cxx/basic/makefile new file mode 100644 index 0000000000..37c9a283d5 --- /dev/null +++ b/examples/cxx/basic/makefile @@ -0,0 +1,20 @@ +CXX = g++ +PREFIX = /home/mcherier/com/loria/SimGridX +INCLUDES =-I$(PREFIX)/lib -I$(PREFIX)/examples/basic +SRCDIR = $(PREFIX)/examples/basic +CXXFLAGS = -Wall -pedantic -D_DEBUG $(INCLUDES) +LDFLAGS = -L$(PREFIX)/lib +LDLIBS = -lSimGridX + +PROG = basic + +OBJECTS = BasicTask.o FinalizeTask.o Slave.o Forwarder.o Master.o Main.o + +all: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(PROG) + +%.o: $(SRCDIR)/%.cxx + $(CXX) -c $(CXXFLAGS) $(SRCDIR)/$*.cxx + +clean: + rm *.o \ No newline at end of file diff --git a/examples/cxx/comm_time/makefile b/examples/cxx/comm_time/makefile new file mode 100644 index 0000000000..7f346037eb --- /dev/null +++ b/examples/cxx/comm_time/makefile @@ -0,0 +1,20 @@ +CXX = g++ +PREFIX = /home/mcherier/com/loria/SimGridX +INCLUDES =-I$(PREFIX)/lib -I$(PREFIX)/examples/comm_time +SRCDIR = $(PREFIX)/examples/comm_time +CXXFLAGS = -Wall -pedantic -D_DEBUG $(INCLUDES) +LDFLAGS = -L$(PREFIX)/lib +LDLIBS = -lSimGridX + +PROG = comm_time + +OBJECTS = CommTimeTask.o FinalizeTask.o Slave.o Master.o Main.o + +all: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(PROG) + +%.o: $(SRCDIR)/%.cxx + $(CXX) -c $(CXXFLAGS) $(SRCDIR)/$*.cxx + +clean: + rm *.o \ No newline at end of file diff --git a/examples/cxx/explicitDestination/makefile b/examples/cxx/explicitDestination/makefile new file mode 100644 index 0000000000..ce084d02dd --- /dev/null +++ b/examples/cxx/explicitDestination/makefile @@ -0,0 +1,20 @@ +CXX = g++ +PREFIX = /home/mcherier/com/loria/SimGridX +INCLUDES =-I$(PREFIX)/lib -I$(PREFIX)/examples/explicitDestination +SRCDIR = $(PREFIX)/examples/explicitDestination +CXXFLAGS = -Wall -pedantic -D_DEBUG $(INCLUDES) +LDFLAGS = -L$(PREFIX)/lib +LDLIBS = -lSimGridX + +PROG = explicitDestination + +OBJECTS = BasicTask.o FinalizeTask.o Slave.o Forwarder.o Master.o Main.o + +all: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(PROG) + +%.o: $(SRCDIR)/%.cxx + $(CXX) -c $(CXXFLAGS) $(SRCDIR)/$*.cxx + +clean: + rm *.o \ No newline at end of file diff --git a/examples/cxx/ping_pong/makefile b/examples/cxx/ping_pong/makefile new file mode 100644 index 0000000000..be78cd896e --- /dev/null +++ b/examples/cxx/ping_pong/makefile @@ -0,0 +1,20 @@ +CXX = g++ +PREFIX = /home/mcherier/com/loria/SimGridX +INCLUDES =-I$(PREFIX)/lib -I$(PREFIX)/examples/ping_pong +SRCDIR = $(PREFIX)/examples/ping_pong +CXXFLAGS = -Wall -pedantic -D_DEBUG $(INCLUDES) +LDFLAGS = -L$(PREFIX)/lib +LDLIBS = -lSimGridX + +PROG = ping_pong + +OBJECTS = PingPongTask.o Sender.o Receiver.o Main.o + +all: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(PROG) + +%.o: $(SRCDIR)/%.cxx + $(CXX) -c $(CXXFLAGS) $(SRCDIR)/$*.cxx + +clean: + rm *.o \ No newline at end of file diff --git a/examples/cxx/suspend/makefile b/examples/cxx/suspend/makefile new file mode 100644 index 0000000000..ff1bda6d7f --- /dev/null +++ b/examples/cxx/suspend/makefile @@ -0,0 +1,20 @@ +CXX = g++ +PREFIX = /home/mcherier/com/loria/SimGridX +INCLUDES =-I$(PREFIX)/lib -I$(PREFIX)/examples/suspend +SRCDIR = $(PREFIX)/examples/suspend +CXXFLAGS = -Wall -pedantic -D_DEBUG $(INCLUDES) +LDFLAGS = -L$(PREFIX)/lib +LDLIBS = -lSimGridX + +PROG = suspend + +OBJECTS = DreamMaster.o LazyGuy.o Main.o + +all: $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(PROG) + +%.o: $(SRCDIR)/%.cxx + $(CXX) -c $(CXXFLAGS) $(SRCDIR)/$*.cxx + +clean: + rm *.o \ No newline at end of file