-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (23 loc) · 1.2 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
CPPFLAGS=-O3 -march=native -std=c++11 -Wall -pedantic
CFLAGS=-O3 -march=native -std=c11 -Wall -pedantic
LD_FLAGS=
run_cvpr17_tf : cvpr17_tf
LD_LIBRARY_PATH=libtensorflow/lib: ./cvpr17_tf
cvpr17_tf : cvpr17_tf.o
gcc $(CFLAGS) -o cvpr17_tf cvpr17_tf.o -Llibtensorflow/lib -ltensorflow -ltensorflow_framework $(LD_FLAGS)
cvpr17_tf.o : cvpr17_tf.c libtensorflow/include
gcc $(CFLAGS) -o cvpr17_tf.o -c -Ilibtensorflow/include cvpr17_tf.c
run_mobilenet : mobilenet
LD_LIBRARY_PATH=libtensorflow/lib:/usr/local/cuda-10.0/lib64 ./mobilenet
mobilenet : mobilenet.o
gcc $(CFLAGS) -o mobilenet mobilenet.o -Llibtensorflow/lib -ltensorflow -ltensorflow_framework $(LD_FLAGS)
mobilenet.o : mobilenet.c libtensorflow/include
gcc $(CFLAGS) -o mobilenet.o -c -Ilibtensorflow/include mobilenet.c
run_config : config
LD_LIBRARY_PATH=libtensorflow/lib: ./config
config : config.o
g++ $(CPPFLAGS) -o config config.o -Llibtensorflow/lib -ltensorflow -ltensorflow_framework $(LD_FLAGS)
config.o : config.cc libtensorflow/include
g++ $(CPPFLAGS) -o config.o -c -Itensorflow/bazel-tensorflow/external/com_google_protobuf/src -Itensorflow/bazel-bin -Ilibtensorflow/include config.cc
clean :
rm -rf *.o cvpr17_tf mobilenet config