-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·27 lines (20 loc) · 798 Bytes
/
Copy pathMakefile
File metadata and controls
executable file
·27 lines (20 loc) · 798 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
SUBDIRS := kernel
KERNELHEADERS := $(wildcard kernel/*.h kernel/*.hpp kernel/*.inl cuda/*.h cuda/*.hpp cuda/*.inl)
KERNELSOURCES := $(wildcard kernel/*.cpp cuda/*.cpp cuda/*.cu)
PYTHONSOURCES := $(wildcard g6k/*.pxd g6k/*.pyx)
all: Makefile.local kernel/libG6K.so g6k/siever.so
rebuild:
./rebuild.sh $(G6KREBUILDARGS)
Makefile.local:
./rebuild.sh --onlyconf $(G6KREBUILDARGS)
kernel/libG6K.so: Makefile.local $(KERNELHEADERS) $(KERNELSOURCES)
$(MAKE) -C kernel libG6K.so
g6k/siever.so: Makefile.local kernel/libG6K.so $(KERNELHEADERS) $(PYTHONSOURCES)
-rm g6k/*.cpp g6k/*.so
python setup.py clean
python setup.py build_ext --inplace
clean: Makefile.local
for dir in "${SUBDIRS}"; do make -C "$${dir}" clean; done
-rm -rf build
-rm -f g6k/*.cpp g6k/*.so
.PHONY: all $(SUBDIRS) clean