-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (35 loc) · 801 Bytes
/
Makefile
File metadata and controls
44 lines (35 loc) · 801 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
34
35
36
37
38
39
40
41
42
43
44
CC = gcc
Flags = --static -O3
LD = $(CC)
SRCS := $(filter-out src/c/Tensor_Python.c, $(wildcard src/c/*.c))
OBJS := $(patsubst src/c/%.c, build/%.o, $(SRCS))
all: NetworkTensorPattern
python:
python setup.py pnt --compile;
pip3 install .;
# python test/test.py;
install:
python setup.py install;
uninstall:
pip uninstall NetworkTensorPattern;
build/%.o: src/c/%.c
$(CC) $(Flags) -c $< -o $@
NetworkTensorPattern: $(OBJS)
$(LD) $(Flags) $^ -o $@ -lm
run:
bash ./test_run.sh
clean:
rm -rf NetworkTensorPattern \
**.so \
src/nettensorpat/*.so \
build/* \
**.egg-info \
src/*.egg-info \
dist \
src/*__pycache__ \
temp \
**__pycache__; \
yes | pip uninstall nettensorpat;
pypi:
python setup.py sdist bdist_wheel;
twine upload dist/*