13399f6744b79d0787dc63786d97b608510b1fdd
[unres.git] / source / ga / Makefile
1
2 CC              := ifort
3 CFLAGS          := 
4
5 BUILD_DIR       := build        
6
7 CLUSTER         := matrix
8
9 # CLUSTER options:  matrix, piasek, galera
10
11 .PHONY: all checkdirs clean
12
13 all: checkdirs checktpl build/unresga
14
15 build/unresga:GA.f
16         $(CC) $(CFLAGS) GA.f -o $@
17
18
19 checkdirs: $(BUILD_DIR)
20
21
22 $(BUILD_DIR):
23         @mkdir -p $@
24
25
26 checktpl:
27         @echo "";echo "==] building $(CLUSTER) version [=="
28         @echo ""
29         @cp input-templates/*.pdb $(BUILD_DIR)
30         @cp input-templates/$(CLUSTER)/* $(BUILD_DIR)
31
32 clean:
33         @rm -rf $(BUILD_DIR)