-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 785 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 785 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
include common.mk
CXX_PRJ:=..
SRC:=src
LIB:=lib
all: libopendnn
libopendnn: clean
@mkdir -p lib
@echo "TARGET: $(TARGET)"
$(MAKE) -C $(SRC) $@.so
$(MAKE) -C test
@echo "libopendnn.so is built successfully"
@echo "=====================================\\n"
@echo "Use following commands to set the path or"
@echo "run make install for copying to system path\\n"
@echo "export PATH:=/path/to/include/opendnn.h"
@echo "export LD_LIBRARY_PATH:=/path/to/libopendnn.so"
install: libopendnn
@echo "\n====================================="
@echo "Warning: This process will copy libopendnn.so and opendnn.h into system path"
sudo cp lib/* /usr/lib/
sudo cp include/* /usr/include/
clean:
$(MAKE) -C test clean
$(MAKE) -C $(SRC) clean
$(MUTE) rm -f $(LIB)/*.so $(LIB)/*.a