Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
the makefile used on bob
[simgrid.git] / tools / tesh2 / makefile
1 PREFIX = /home/mcherier/com/loria/tesh
2 INCLUDE_DIR = $(PREFIX)/include/
3 SRC_DIR = $(PREFIX)/src/
4 OBJECTS = main.o command.o context.o reader.o runner.o xsignal.o timer.o unit.o writer.o units.o directory.o directories.o fstream.o fstreams.o excludes.o xerrno.o getpath.o variable.o str_replace.o
5 CC = gcc
6 CCFLAGS = -ggdb -g -I$(INCLUDE_DIR) -I/home/mcherier/svn/simgrid/include/ -I/home/mcherier/svn/simgrid/src/ -I/home/mcherier/svn/simgrid/src/include/ -Wall -pedantic
7 LDLIBS = simgrid 
8
9 PROG = tesh
10
11 all: $(PROG)
12
13 $(PROG): $(OBJECTS)
14         $(CC) -o $(PROG) $(OBJECTS) -L/home/mquinson/simgrid-svn-pthread/src/.libs/ -l$(LDLIBS)
15
16 %.o: $(SRC_DIR)%.c $(INCLUDE_DIR)*.h
17         $(CC) -c $(CCFLAGS) $(SRC_DIR)$*.c
18         
19 clean:
20         rm -f $(OBJECTS) $(PROG)
21         
22