-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
96 lines (73 loc) · 2.02 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#===============================================================================
# Project: Nural_network
# File: make.makefile
# Author: Alex Labontu
# Date: 2/22/2019 11:19:39 AM
# Desc:
#
# cd C:\Work_Station\Nural_networks\tutorial
#
#===============================================================================
flags = -g -ansi -fno-gnu-keywords -pedantic -std=gnu++11
Warnings = -Wall -W -Wfloat-equal -Winline -Wunreachable-code -Wredundant-decls -Wconversion -Wwrite-strings -Wcast-qual -Woverloaded-virtual -Weffc++
Includes =
Libs =
Bins =
Statics = -static-libgcc -static-libstdc++
main.exe: makefile ofile/main.o ofile/Neural_net.o ofile/Neuron.o
@echo.
@echo.
-mv *.h.gch ofile/
-mv *\*.h.gch ofile/
@echo.
@echo.
g++ ofile/*.o -omain.exe -Dos=$(os) $(flags) $(Warnings) $(Includes) $(Libs) $(Bins) $(Statics)
@echo.
@echo.
ofile/main.o: main.cpp Neural_net.h Neuron.h
@echo.
@echo.
g++ -c main.cpp Neural_net.h -Dos=$(os) $(flags) $(Warnings) $(Includes) $(Libs) $(Bins) $(Statics)
@echo.
@echo.
-mkdir ofile
-mv *.o ofile/
ofile/Neural_net.o: Neural_net.cpp Neural_net.h Neuron.h
@echo.
@echo.
g++ -c Neural_net.cpp Neural_net.h -Dos=$(os) $(flags) $(Warnings) $(Includes) $(Libs) $(Bins) $(Statics)
@echo.
@echo.
-mkdir ofile
-mv *.o ofile/
ofile/Neuron.o: Neuron.cpp Neuron.h
@echo.
@echo.
g++ -c Neuron.cpp Neuron.h -Dos=$(os) $(flags) $(Warnings) $(Includes) $(Libs) $(Bins) $(Statics)
@echo.
@echo.
-mkdir ofile
-mv *.o ofile/
#===============================================================================
training.exe: training.cpp
@echo.
@echo.
g++ training.cpp -otraining.exe -Dos=$(os) $(flags) $(Warnings) $(Includes) $(Libs) $(Bins) $(Statics)
@echo.
@echo.
train:
training.exe > temp.txt
clean:
-rm ofile/*
-rm *.exe
clear:
-rm ofile/*
-rm *.exe
play:
./main.exe
move:
-mv src\*.h.gch ofile/
-mv *.h.gch ofile/
-mv *.o ofile/
raw:
g++ main.cpp Neural_net.cpp Neuron.cpp -omain.exe -Dos=$(os) $(flags) $(Warnings) $(Includes) $(Libs) $(Bins) $(Statics)