-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmakefile
33 lines (22 loc) · 818 Bytes
/
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
CFLAGS = $(USERFLAGS)
all: serial parallel tests leewiswall
run:
./LeeWiswall.out 10
./NelderTest.out 10
./DistParNelderTest.out 10 1
serial: NelderMead.o
g++ $(CFLAGS) -o NelderTest.out NelderMead_Driver.cpp NelderMead.o
tests: NelderMead.o
g++ $(CFLAGS) -o tests.out tests.cpp NelderMead.o
parallel: DistParNelderMead.o
mpicxx $(CFLAGS) -o DistParNelderTest.out DistParNelderMead_Driver.cpp DistParNelderMead.o
leewiswall: LeeWiswall.o
mpicxx $(CFLAGS) -o LeeWiswall.out LeeWiswall_Driver.cpp LeeWiswall.o
NelderMead.o: NelderMead.cpp NelderMead.hpp
g++ $(CFLAGS) -c NelderMead.cpp
DistParNelderMead.o: DistParNelderMead.cpp DistParNelderMead.hpp
mpicxx $(CFLAGS) -c DistParNelderMead.cpp
LeeWiswall.o: LeeWiswall.cpp LeeWiswall.hpp
mpicxx $(CFLAGS) -c LeeWiswall.cpp
clean:
rm -f *.o *.out