-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (18 loc) · 720 Bytes
/
Makefile
File metadata and controls
34 lines (18 loc) · 720 Bytes
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
export LIBRARIES := -lmpi -lmem -lrt -lpthread
CURABSPATH := $(shell pwd)
export CC := gcc
export AR := ar
export INCLUDES := -I$(CURABSPATH)/include -I$(CURABSPATH)/libs/smem/include -I$(CURABSPATH)/mpirun/include -I$(CURABSPATH)/libs/mem/include -I$(CURABSPATH)/libs/sem/include -I$(CURABSPATH)/libs/mpi/include
export LFLAGS := -L$(CURABSPATH)/libs
DIRS := libs mpirun
.PHONY: dirs $(DIRS)
dirs: $(DIRS)
$(DIRS):
$(MAKE) -C $@
mpirun: libs
TYPES_TO_CLEAN := *.a *.o mpirun hello test *.so *.swp *.s
DIRS_TO_CLEAN := libs/mpi libs/smem libs/mem libs/sem mpirun libs
FILES_TO_CLEAN := $(foreach DIR,$(DIRS_TO_CLEAN),$(addprefix $(DIR)/,$(TYPES_TO_CLEAN)))
.PHONY: clean
clean:
rm -f $(FILES_TO_CLEAN)