|
|
@ -11,14 +11,17 @@ SCOPE=rlwrap ngnutmeg
|
|
|
|
OBJS=switch.o
|
|
|
|
OBJS=switch.o
|
|
|
|
bin: switch.m
|
|
|
|
bin: switch.m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# run spice in batch mode, generate raw waveform file
|
|
|
|
%.raw: %.spice
|
|
|
|
%.raw: %.spice
|
|
|
|
$(SPICE) < $< -r $@
|
|
|
|
$(SPICE) < $< -r $@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# plot raw waveform file
|
|
|
|
%.plot: %.raw
|
|
|
|
%.plot: %.raw
|
|
|
|
$(SCOPE) $<
|
|
|
|
$(SCOPE) $<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# running spice interactively, plot waveform from its .CONTROL card
|
|
|
|
%.plot2: %.spice
|
|
|
|
%.plot2: %.spice
|
|
|
|
$(SPICE) < $<
|
|
|
|
$(SPICE) $<
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
clean:
|
|
|
|
rm -f *.raw *~ DEADJOE
|
|
|
|
rm -f *.raw *~ DEADJOE
|
|
|
|