-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmakefile
62 lines (50 loc) · 1.48 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#-------------------------------------------------------------------------------------------
#
# makefile: This is the primary make file controlling the build
# of the ParaDiS parallel code and associated utilities.
#
# Usage:
# make build paradis executable and support utilities
# make clean remove executable and object files
# make depend update makefile dependencies
#
#-------------------------------------------------------------------------------------------
BINDIR = ./bin
OBJDIR = ./obj
#-------------------------------------------------------------------------------------------
.PHONY: all
all: $(OBJDIR) $(BINDIR)
( cd src ; $(MAKE) -j; )
( cd utils ; $(MAKE) -j; )
.PHONY: clean
clean:
rm -rf $(OBJDIR) $(BINDIR) .DS_Store */.DS_Store
( cd src ; $(MAKE) clean ; )
( cd utils ; $(MAKE) clean ; )
( cd tests ; $(MAKE) clean ; )
( cd python; $(MAKE) clean ; )
.PHONY: ext
ext:
( cd ./ext; $(MAKE); )
.PHONY: depend
depend:
( cd src ; $(MAKE) $@ ; cd .. ; )
.PHONY: purify
purify: $(BINDIR)
( cd src ; $(MAKE) $@ ; cd .. ; )
.PHONY: prof
prof: $(BINDIR)
( cd src ; $(MAKE) $@ ; cd .. ; )
.PHONY: rebuild
rebuild: clean $(OBJDIR) $(BINDIR)
( cd src ; $(MAKE) -j; )
( cd utils ; $(MAKE) -j; )
.PHONY: rebuild_all
rebuild_all: clean $(OBJDIR) $(BINDIR)
( cd ext ; $(MAKE) clean ; $(MAKE) ; )
( cd src ; $(MAKE) -j; )
( cd utils ; $(MAKE) -j; )
$(OBJDIR) :
mkdir -p $(OBJDIR)
$(BINDIR) :
mkdir -p $(BINDIR)