ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/Makefile
Revision: 222
Committed: Thu Nov 19 19:14:16 2009 UTC (15 years, 9 months ago) by francois
File size: 1361 byte(s)
Log Message:
Divers corrections : vectorisation  toxfem et extraction de peau.

File Contents

# Content
1 # Makefile for all
2
3 ifeq ($(BONMAKE),gmake)
4 BONMAKE:=gmake
5 else
6 BONMAKE:=make
7 endif
8
9 dirs := carte/carte:geometrie/geometrie:outil/outil:sat/sat:step/step:diamesh/diamesh:mailleur/mailleur:materiau/materiau:parseur/parseur:template/template:vectorisation/vectorisation:fichier/fichier:reconstruction/reconstruction:optimisation/optimisation:toxfem/toxfem
10
11
12 ldirs := $(subst :, ,$(dirs))
13
14 .PHONY: setup build test
15
16 all: setup build
17 SHELL := /bin/sh
18
19 setup:
20 @echo Setting up modules...
21 @for i in $(ldirs); do \
22 echo $$i; \
23 cd $$i; \
24 $(BONMAKE) setup NODEP=1; \
25 cd ../..; \
26 done
27
28 build:
29 @echo Building modules...
30 @for i in $(ldirs); do \
31 echo $$i; \
32 cd $$i; \
33 $(BONMAKE) -j 2; \
34 cd ../..; \
35 done
36
37 check:
38 @echo Building modules...
39 @for i in $(ldirs); do \
40 echo $$i; \
41 cd $$i; \
42 $(BONMAKE) NODEP=1 check; \
43 cd ../..; \
44 done
45
46 clean:
47 @echo Cleaning up modules...
48 @for i in $(ldirs); do \
49 echo $$i; \
50 cd $$i; \
51 $(BONMAKE) clean NODEP=1; \
52 cd ../..; \
53 done
54
55 distclean:
56 @echo Cleaning up modules...
57 @for i in $(ldirs); do \
58 echo $$i; \
59 cd $$i; \
60 $(BONMAKE) distclean NODEP=1; \
61 cd ../..; \
62 done
63
64 realclean:
65 @echo Cleaning up modules...
66 @for i in $(ldirs); do \
67 echo $$i; \
68 cd $$i; \
69 $(BONMAKE) realclean NODEP=1; \
70 cd ../..; \
71 done