Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Let simgrid.dtd to be accessible from the web in order to enable automatic validation...
[simgrid.git] / examples / cxx / ping_pong / makefile
1 CXX = g++
2 PREFIX = /home/mcherier/com/loria/SimGridX
3 INCLUDES =-I$(PREFIX)/lib -I$(PREFIX)/examples/ping_pong
4 SRCDIR = $(PREFIX)/examples/ping_pong
5 CXXFLAGS = -Wall -pedantic -D_DEBUG $(INCLUDES)
6 LDFLAGS = -L$(PREFIX)/lib 
7 LDLIBS = -lSimGridX 
8
9 PROG = ping_pong
10
11 OBJECTS = PingPongTask.o Sender.o Receiver.o Main.o
12
13 all: $(OBJECTS)
14         $(CXX) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(PROG) 
15
16 %.o: $(SRCDIR)/%.cxx
17         $(CXX) -c $(CXXFLAGS) $(SRCDIR)/$*.cxx
18         
19 clean:
20         rm *.o