-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (30 loc) · 1.08 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
INC_DIR=weilei_lib
#INC_DIR=~/working/weilei_lib
CXX=g++ -O2 -Wall -std=c++11
### -O2 -O5 -Os
#g++ `pkg-config --cflags itpp` -o hello.out hello.cpp `pkg-config --libs itpp`
START=`pkg-config --cflags itpp`
END=`pkg-config --libs itpp`
files=$(INC_DIR)/mm_read.c $(INC_DIR)/mm_read.h $(INC_DIR)/mmio.c $(INC_DIR)/mmio.h $(INC_DIR)/mm_write.c $(INC_DIR)/mm_write.h $(INC_DIR)/lib.cpp $(INC_DIR)/lib.h $(INC_DIR)/dist.c $(INC_DIR)/dist.h $(INC_DIR)/concatenation_lib.c $(INC_DIR)/concatenation_lib.h $(INC_DIR)/my_lib.h
#Makefile
command=$(CXX) $(START) -o $@ $< $(word 2,$^) $(word 4, $^) $(word 6, $^) $(word 8, $^) $(word 10, $^) $(word 12, $^) $(END)
###include all headfiles into my_lib.h
#counter_concatenation.out:counter_concatenation.c $(files)
# $(command)
css.out:css.c $(files)
$(command) -fopenmp
show-md:
make css.out
date > css.md
./css.out mode=1 debug=2 n_low=5 n_high=50 >> css.md
git add css.md
git commit -m "check md output"
git push
test.out:test.c $(files)
$(command)
sbatch-dry-run:
sbatch --test product.sh
sbatch:
sbatch product.sh
pkill-product:
pkill .product