-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
218 lines (182 loc) · 6.71 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
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
define jsim_version
grep "String version" jsim/JSim.java | sed -e "s/\./-/g" -e 's/.*"\(.*\)".*/jsim-\1/'
endef
define jade_version
grep "String version" jade/Jade.java | sed -e "s/\./-/g" -e 's/.*"\(.*\)".*/jade-\1/'
endef
define bsim_version
grep "String version" bsim/BSim.java | sed -e "s/\./-/g" -e 's/.*"\(.*\)".*/bsim-\1/'
endef
define ant_version
grep "String version" fsm/Ant.java | sed -e "s/\./-/g" -e 's/.*"\(.*\)".*/ant-\1/'
endef
define elevator_version
grep "String version" fsm/Elevator.java | sed -e "s/\./-/g" -e 's/.*"\(.*\)".*/elevator-\1/'
endef
define tmsim_version
grep "String version" tmsim/TMSim.java | sed -e "s/\./-/g" -e 's/.*"\(.*\)".*/tmsim-\1/'
endef
ETAGS = etags
JAVAC = javac -cp .
JAR = jar
%.class:%.java
$(JAVAC) $<
ANT = fsm/Ant.class \
fsm/AntPanel.class \
fsm/FSM.class \
fsm/Maze.class \
ELEVATOR = \
fsm/Elevator.class \
fsm/ElevatorPanel.class \
fsm/ElevatorDiagram.class \
fsm/FSM.class \
fsm/Lemming.class
BSIM = bsim/BSim.class \
bsim/Beta.class \
bsim/Macro.class \
bsim/Memory.class \
bsim/Program.class \
bsim/Symbol.class
GUI = gui/EditBuffer.class \
gui/EditCanvas.class \
gui/EditFrame.class \
gui/EditPanel.class \
gui/GuiDialog.class \
gui/GuiFrame.class \
gui/GuiObservable.class \
gui/POSTStream.class \
gui/ProgressTracker.class \
gui/Transform.class \
gui/UI.class \
gui/UndoList.class
JSIM = jsim/JSim.class
BATCHSIM = jsim/BatchSim.class \
jsim/BatchSimNetlistConsumer.class
VSIM = verilog/Identifier.class \
verilog/Number.class \
verilog/Token.class \
verilog/VerilogSource.class \
verilog/VSim.class
TMSIM = tmsim/TMSim.class \
tmsim/TMPanel.class \
tmsim/TMAction.class \
tmsim/TMTape.class
NETLIST = \
netlist/Analysis.class \
netlist/CapacitorPrototype.class \
netlist/DependentSourcePrototype.class \
netlist/DevicePrototype.class \
netlist/Identifier.class \
netlist/IndependentSourcePrototype.class \
netlist/InductorPrototype.class \
netlist/Model.class \
netlist/MosfetPrototype.class \
netlist/Netlist.class \
netlist/NetlistConsumer.class \
netlist/Node.class \
netlist/Number.class \
netlist/Parameter.class \
netlist/PlotRequest.class \
netlist/ResistorPrototype.class \
netlist/Subcircuit.class \
netlist/SubcircuitCall.class \
netlist/SubcircuitObject.class \
netlist/Token.class \
netlist/VerifyData.class
PLOT = plot/AnalogPlotCoordinate.class \
plot/DigitalPlotCoordinate.class \
plot/Plot.class \
plot/PlotCanvas.class \
plot/PlotCoordinate.class \
plot/PlotData.class
SIMULATION = \
simulation/FlattenNetwork.class \
simulation/EmuCapacitor.class \
simulation/EmuDevice.class \
simulation/EmuMOSModel.class \
simulation/EmuMeter.class \
simulation/EmuMosfet.class \
simulation/EmuNetwork.class \
simulation/EmuNode.class \
simulation/EmuRegion.class \
simulation/EmuResistor.class \
simulation/Event.class \
simulation/HistoryRequest.class \
simulation/Network.class \
simulation/Node.class \
simulation/SimDLatch.class \
simulation/SimDReg.class \
simulation/SimDevice.class \
simulation/SimEvent.class \
simulation/SimLogicDevice.class \
simulation/SimLookupTable.class \
simulation/SimMemory.class \
simulation/SimNetwork.class \
simulation/SimNode.class \
simulation/SimSource.class \
simulation/SpiceAMSource.class \
simulation/SpiceCCCS.class \
simulation/SpiceCCVS.class \
simulation/SpiceCapacitor.class \
simulation/SpiceCell.class \
simulation/SpiceDependentSource.class \
simulation/SpiceDevice.class \
simulation/SpiceExpSource.class \
simulation/SpiceIndependentCurrentSource.class \
simulation/SpiceIndependentSource.class \
simulation/SpiceIndependentVoltageSource.class \
simulation/SpiceInductor.class \
simulation/SpiceMOSModel.class \
simulation/SpiceMOSModel_L1.class \
simulation/SpiceMOSModel_L3.class \
simulation/SpiceModel.class \
simulation/SpiceMosfet.class \
simulation/SpiceMosfetDiode.class \
simulation/SpiceNetwork.class \
simulation/SpiceNode.class \
simulation/SpicePWLSource.class \
simulation/SpicePulseSource.class \
simulation/SpiceResistor.class \
simulation/SpiceSFFMSource.class \
simulation/SpiceSinSource.class \
simulation/SpiceSource.class \
simulation/SpiceStateDevice.class \
simulation/SpiceVCCS.class \
simulation/SpiceVCVS.class \
simulation/TimingInfo.class \
simulation/TCDComparator.class \
simulation/TPDComparator.class
all: bsim.jar jsim.jar ant.jar tmsim.jar
bsim.jar: bsim.manifest $(BSIM) $(GUI)
$(JAR) cfm bsim.jar bsim.manifest bsim/*.class gui/*.class icons/*.gif
jsim.jar: jsim.manifest $(JSIM) $(GUI) $(NETLIST) $(PLOT) $(SIMULATION)
$(JAR) cfm jsim.jar jsim.manifest jsim/*.class gui/*.class netlist/*.class plot/*.class simulation/*.class icons/*.gif
batchsim.jar: batchsim.manifest $(BATCHSIM) $(GUI) $(NETLIST) $(PLOT) $(SIMULATION)
$(JAR) cfm batchsim.jar batchsim.manifest jsim/BatchSim.class jsim/BatchSimNetlistConsumer.class gui/*.class netlist/*.class plot/*.class simulation/*.class icons/*.gif
vsim.jar: vsim.manifest $(VSIM) $(GUI) $(PLOT)
$(JAR) cfm vsim.jar vsim.manifest verilog/*.class gui/*.class plot/*.class icons/*.gif
ant.jar: ant.manifest $(ANT) $(GUI)
$(JAR) cfm ant.jar ant.manifest fsm/*.class gui/*.class icons/*.gif
tmsim.jar: tmsim.manifest $(TMSIM) $(GUI)
$(JAR) cfm tmsim.jar tmsim.manifest tmsim/*.class gui/*.class icons/*.gif
elevator.jar: elevator.manifest $(ELEVATOR) $(GUI) fsm/*.gif fsm/*.mid
$(JAR) cfm elevator.jar elevator.manifest fsm/*.class fsm/*.gif fsm/*.mid gui/*.class icons/*.gif
TAGS::
$(ETAGS) $(JSIM:.class=.java) $(BSIM:.class=.java) $(ANT:.class=.java) $(ELEVATOR:.class=.java) $(GUI:.class=.java) $(PLOT:.class=.java) $(NETLIST:.class=.java) $(SIMULATION:.class=.java)
archives:: jsim.tgz bsim.tgz ant.tgz tmsim.tgz
jsim.tgz::
tar cozf archive/`$(jsim_version)`.tgz $(JSIM:.class=.java) $(GUI:.class=.java) $(PLOT:.class=.java) $(NETLIST:.class=.java) $(SIMULATION:.class=.java) icons/*.gif
bsim.tgz::
tar cozf archive/`$(bsim_version)`.tgz $(BSIM:.class=.java) $(GUI:.class=.java) icons/*.gif
ant.tgz::
tar cozf archive/`$(ant_version)`.tgz $(ANT:.class=.java) $(GUI:.class=.java) icons/*.gif
elevator.tgz::
tar cozf archive/`$(elevator_version)`.tgz $(ELEVATOR:.class=.java) $(GUI:.class=.java) icons/*.gif
tmsim.tgz::
tar cozf archive/`$(tmsim_version)`.tgz $(TMSIM:.class=.java) $(GUI:.class=.java) icons/*.gif
jcad.tgz::
tar cozf jcad.tgz Makefile *.manifest $(JSIM:.class=.java) $(BSIM:.class=.java) $(ANT:.class=.java) $(ELEVATOR:.class=.java) $(GUI:.class=.java) $(PLOT:.class=.java) $(NETLIST:.class=.java) $(SIMULATION:.class=.java) $(TMSIM:.class=.java) icons/*.gif
clean::
rm */*.class */*~
rsync::
rsync -e ssh -avz --delete --exclude="*.class" Makefile *.manifest fsm bsim gui icons jade jlb jsim netlist plot schematic Labs osiris.lcs.mit.edu:/home/6.004/Courseware/jcad