-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
41 lines (35 loc) · 1.49 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
35
36
37
38
39
40
41
#/*
#2018 Maximilian Wittmer
#
#https://github.com/Wittmaxi/ZENeural/blob/master/LICENSE
#
#*/
all: test
compile_header:
-mkdir ./build
echo "#ifndef zeneural_included_" > ./build/zeneural.hpp
echo "#define zeneural_inlcuded_" >> ./build/zeneural.hpp
cat ./library/header/includes.hpp >> ./build/zeneural.hpp
cat ./library/header/internals/util/assert.hpp | grep -v "^#" >> ./build/zeneural.hpp
cat ./library/header/internals/util/ThreadScheduler.hpp | grep -v "^#" >> ./build/zeneural.hpp
cat ./library/header/internals/util/numbers.hpp | grep -v "^#" >> ./build/zeneural.hpp
cat ./library/header/internals/util/normalization.hpp | grep -v "^#" >> ./build/zeneural.hpp
cat ./library/header/internals/Neuron.hpp | grep -v "^#" >> ./build/zeneural.hpp
cat ./library/header/internals/Layer.hpp | grep -v "^#" >> ./build/zeneural.hpp
cat ./library/header/NeuralNetwork.hpp | grep -v "^#" >> ./build/zeneural.hpp
cat ./library/header/VanillaRecurrentNetwork.hpp | grep -v "^#" >> ./build/zeneural.hpp
cat ./library/header/Perceptron.hpp | grep -v "^#" >> ./build/zeneural.hpp
cat ./library/header/internals/typedefs.hpp | grep -v "^#" >> ./build/zeneural.hpp
echo "#endif" >> ./build/zeneural.hpp
install: compile_header
sudo cp ./build/zeneural.hpp /usr/include/zeneural.hpp
test:
make -C ./library/tests #make the unit tests
full_test:
make valgrind -C ./library/tests
make test_cov -C ./library/tests
make test -C ./library/tests
debug:
g++ ./library/*.cpp -o test -g
gdb ./test