Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
samples of makefile for cpp wrappers examples.
[simgrid.git] / examples / cxx / comm_time / makefile
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