makefile
This commit is contained in:
parent
4cbd2b4a17
commit
dd1d3fa504
2 changed files with 11 additions and 1 deletions
1
assignments/01/.gitignore
vendored
1
assignments/01/.gitignore
vendored
|
@ -1,6 +1,7 @@
|
|||
lc_openmp
|
||||
lc_pthreads
|
||||
*.o
|
||||
*.tar.gz
|
||||
|
||||
dataset
|
||||
out.txt
|
|
@ -1,4 +1,4 @@
|
|||
.PHONY: all
|
||||
.PHONY: all watch-openmp clean
|
||||
|
||||
CFLAGS := -std=c11 -fopenmp=libomp -I/opt/homebrew/opt/libomp/include
|
||||
LDFLAGS := -std=c11 -fopenmp=libomp -L/opt/homebrew/opt/libomp/lib
|
||||
|
@ -6,6 +6,15 @@ RUST_SOURCES := $(shell find . -name "*.rs")
|
|||
|
||||
all: lc_openmp lc_pthreads
|
||||
|
||||
clean:
|
||||
rm -rf lc_openmp lc_pthreads zhan4854 zhan4854.tar.gz *.o
|
||||
|
||||
zhan4854.tar.gz: common.c common.h lc_openmp.c lc_pthreads.c Makefile
|
||||
mkdir -p zhan4854
|
||||
mv $^ zhan4854
|
||||
tar -czvf $@ zhan4854
|
||||
rm -r zhan4854
|
||||
|
||||
watch-openmp:
|
||||
watchexec -c clear -e Makefile,c,h 'make lc_openmp && ./lc_openmp ./dataset/small_data.csv ./dataset/small_label.csv 10 2'
|
||||
|
||||
|
|
Loading…
Reference in a new issue