-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.inc
132 lines (119 loc) · 3.5 KB
/
Makefile.inc
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
###########
# Options #
###########
# Final exe name
EXE = circuit
# Folder to place headers and objects.
DIST = build
# Included Directories
INCLUDES = \
-Isrc/ \
-Isrc/Circuit \
-Isrc/Wire \
-Isrc/Component \
-Isrc/Observer \
-Isrc/CircuitIterator \
-Isrc/CircuitEvaluator \
-Isrc/BaseCircuits \
-Isrc/Exceptions \
-Isrc/gc/include \
-Isrc/sparsehash
GC_LIB = src/gc/lib/
GC_INCLUDE = src/gc/include/
# Compiler
CXX = g++
CXXFLAGS = -g -fpermissive $(INCLUDES)
# Linker
LD = g++
LDFLAGS = -g
# Makedepend
DEP = makedepend
DEPFLAGS = -m -Y
CIRCUIT_LIBRARY = src/BaseCircuits/
# List of object files for linking and building the dist folder
OBJS = \
src/Circuit/Circuit.o \
src/Wire/State.o \
src/Wire/Wire.o \
src/Component/CustomComponent.o \
src/Component/Component.o \
src/Component/BlackBox.o \
src/Observer/Observable.o \
src/Observer/Observer.o \
src/Observer/UpdateCounter.o \
src/Observer/ComponentProbe.o \
src/CircuitIterator/CircuitIterator.o \
src/CircuitIterator/BFSIterator.o \
src/CircuitIterator/DelayCircuitIterator.o \
src/CircuitEvaluator/NormalEvaluator.o \
src/CircuitEvaluator/DelayEvaluator.o \
src/CircuitEvaluator/CircuitRefresher.o \
src/CircuitEvaluator/Debugger.o \
src/Exceptions/WireError.o \
src/Exceptions/CircuitEvalError.o \
src/Exceptions/ComponentError.o
# These files will be copied to the distribution folder
# when building it.
DIST_FILES = \
src/CircuitSimulator.h \
src/CircuitWireDecs.h \
src/Wire/State.h \
src/Wire/Wire.h \
src/Circuit/Circuit.h \
src/Component/CustomComponent.h \
src/Component/Component.h \
src/Component/BlackBox.h \
src/Observer/Observable.h \
src/Observer/Observer.h \
src/Observer/ObserverDecs.h \
src/Observer/UpdateCounter.h \
src/Observer/ComponentProbe.h \
src/CircuitIterator/CircuitIterator.h \
src/CircuitIterator/BFSIterator.h \
src/CircuitIterator/DelayCircuitIterator.h \
src/CircuitEvaluator/NormalEvaluator.h \
src/CircuitEvaluator/DelayEvaluator.h \
src/CircuitEvaluator/CircuitRefresher.h \
src/CircuitEvaluator/Debugger.h \
src/Exceptions/Exceptions.h \
src/Exceptions/CircuitEvalError.h \
src/Exceptions/WireError.h \
src/Exceptions/ComponentError.h \
src/BaseCircuits/BaseCircuits.h \
src/sparsehash/sparse_hash_map.h \
src/sparsehash/sparse_hash_set.h \
src/sparsehash/sparsetable.h \
src/sparsehash/template_util.h \
src/sparsehash/type_traits.h \
src/sparsehash/hashtable-common.h \
src/sparsehash/libc_allocator_with_realloc.h \
src/sparsehash/sparseconfig.h \
src/sparsehash/sparsehashtable.h
# These files will NOT be copied to the distribution folder
# when building it.
OTHER_FILES = \
src/Exceptions/WireError.cpp \
src/Exceptions/CircuitEvalError.cpp \
src/Exceptions/ComponentError.cpp \
src/CircuitIterator/CircuitIterator.cpp \
src/CircuitIterator/BFSIterator.cpp \
src/CircuitIterator/DelayCircuitIterator.cpp \
src/CircuitEvaluator/NormalEvaluator.cpp \
src/CircuitEvaluator/DelayEvaluator.cpp \
src/CircuitEvaluator/CircuitRefresher.cpp \
src/CircuitEvaluator/Debugger.cpp \
src/Observer/ComponentProbe.cpp \
src/Observer/UpdateCounter.cpp \
src/Observer/Observable.cpp \
src/Observer/Observer.cpp \
src/Circuit/Circuit.cpp \
src/Wire/Wire.cpp \
src/Wire/State.cpp \
src/Component/Component.cpp \
src/Component/CustomComponent.cpp \
src/Component/BlackBox.cpp
# List of Source Files for the dependency generator
SRCS = $(DIST_FILES) $(OTHER_FILES)
# List of all source files
# Mainly so that I can do linecounts and searches easily
ALL = Makefile Makefile.inc Makefile.real $(SRCS)