-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (17 loc) · 941 Bytes
/
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
INCLUDE_PATH= ./eigen-3.3.4
CFLAGS=$(foreach d, $(INCLUDE_PATH), -I$d) -Wall -std=c++11
VRPN_LIBS = -lvrpn -lquat -pthread
OPTI_FLAG = -O3
GTK_LIBS = -rdynamic `pkg-config --cflags gtk+-3.0` `pkg-config --libs gtk+-3.0`
test_fdcl_nn: test_fdcl_nn.o fdcl_nn.o fdcl_softmax_layer.o fdcl_mlp_layer.o fdcl_layer.o
g++ -o test_fdcl_nn test_fdcl_nn.o fdcl_nn.o fdcl_softmax_layer.o fdcl_mlp_layer.o fdcl_layer.o -lm $(CFLAGS) $(OPTI_FLAGS)
test_fdcl_nn.o: test_fdcl_nn.cpp fdcl_nn.o
g++ -c test_fdcl_nn.cpp -lm $(CFLAGS)
fdcl_nn.o: fdcl_nn.h fdcl_nn.cpp fdcl_softmax_layer.o fdcl_mlp_layer.o fdcl_layer.o
g++ -c fdcl_nn.cpp $(CFLAGS)
fdcl_softmax_layer.o: fdcl_softmax_layer.cpp fdcl_softmax_layer.h fdcl_layer.o
g++ -c fdcl_softmax_layer.cpp $(CFLAGS)
fdcl_mlp_layer.o: fdcl_mlp_layer.cpp fdcl_mlp_layer.h fdcl_layer.o
g++ -c fdcl_mlp_layer.cpp $(CFLAGS)
fdcl_layer.o: fdcl_layer.cpp fdcl_layer.h
g++ -c fdcl_layer.cpp $(CFLAGS)