Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
samples of makefile for cpp wrappers examples.
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 19 Aug 2008 15:54:35 +0000 (15:54 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 19 Aug 2008 15:54:35 +0000 (15:54 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5897 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/cxx/autoDestination/makefile [new file with mode: 0644]
examples/cxx/basic/makefile [new file with mode: 0644]
examples/cxx/comm_time/makefile [new file with mode: 0644]
examples/cxx/explicitDestination/makefile [new file with mode: 0644]
examples/cxx/ping_pong/makefile [new file with mode: 0644]
examples/cxx/suspend/makefile [new file with mode: 0644]

diff --git a/examples/cxx/autoDestination/makefile b/examples/cxx/autoDestination/makefile
new file mode 100644 (file)
index 0000000..12a9dd7
--- /dev/null
@@ -0,0 +1,20 @@
+CXX = g++\r
+PREFIX = /home/mcherier/com/loria/SimGridX\r
+INCLUDES =-I$(PREFIX)/lib -I$(PREFIX)/examples/autoDestination\r
+SRCDIR = $(PREFIX)/examples/autoDestination\r
+CXXFLAGS = -Wall -pedantic -D_DEBUG $(INCLUDES)\r
+LDFLAGS = -L$(PREFIX)/lib \r
+LDLIBS = -lSimGridX \r
+\r
+PROG = autoDestination\r
+\r
+OBJECTS = BasicTask.o FinalizeTask.o Forwarder.o Slave.o Master.o Main.o\r
+\r
+all: $(OBJECTS)\r
+       $(CXX) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(PROG) \r
+\r
+%.o: $(SRCDIR)/%.cxx\r
+       $(CXX) -c $(CXXFLAGS) $(SRCDIR)/$*.cxx\r
+       \r
+clean:\r
+       rm *.o
\ No newline at end of file
diff --git a/examples/cxx/basic/makefile b/examples/cxx/basic/makefile
new file mode 100644 (file)
index 0000000..37c9a28
--- /dev/null
@@ -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 (file)
index 0000000..7f34603
--- /dev/null
@@ -0,0 +1,20 @@
+CXX = g++\r
+PREFIX = /home/mcherier/com/loria/SimGridX\r
+INCLUDES =-I$(PREFIX)/lib -I$(PREFIX)/examples/comm_time\r
+SRCDIR = $(PREFIX)/examples/comm_time\r
+CXXFLAGS = -Wall -pedantic -D_DEBUG $(INCLUDES)\r
+LDFLAGS = -L$(PREFIX)/lib \r
+LDLIBS = -lSimGridX \r
+\r
+PROG = comm_time\r
+\r
+OBJECTS = CommTimeTask.o FinalizeTask.o Slave.o Master.o Main.o\r
+\r
+all: $(OBJECTS)\r
+       $(CXX) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(PROG) \r
+\r
+%.o: $(SRCDIR)/%.cxx\r
+       $(CXX) -c $(CXXFLAGS) $(SRCDIR)/$*.cxx\r
+       \r
+clean:\r
+       rm *.o
\ No newline at end of file
diff --git a/examples/cxx/explicitDestination/makefile b/examples/cxx/explicitDestination/makefile
new file mode 100644 (file)
index 0000000..ce084d0
--- /dev/null
@@ -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 (file)
index 0000000..be78cd8
--- /dev/null
@@ -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 (file)
index 0000000..ff1bda6
--- /dev/null
@@ -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