###CFLAGS = -g -O2      ## General debugging.
CFLAGS = -g          ## Use this if you want to debug the spice matrix
###CFLAGS = -O2		## Use this for "release"
DEFINES = -DDEBUGGA
INCLUDES = 
LIBS = -lstdc++

SIMULATION = Simulation.o Application.o gnuplot_i.o  
CC=g++

.cc.o:
      #	$(CC) -c -Wa,-a=$(*).lst,-ggdb $(CFLAGS) $(DEFINES) $(INCLUDES) $<
	$(CC) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $<

all::	Simulation


Simulation.o:	Simulation.cc  


Application.o:   App_SpiceTest.hpp App_TestRC.hpp  App_TestRC1.hpp  App_TestRLC.hpp App_CMChoke.hpp App_DualCMChoke.hpp App_Observer.hpp  Application.cc Simulation.hpp gnuplot_i.hpp




gnuplot_i.o:	gnuplot_i.cc gnuplot_i.hpp




Simulation: $(SIMULATION)
       # $(CC) -o $@ -Wl,-Map=$@.map,--cref $(CFLAGS) $(SIMULATION) $(LIBS)
	$(CC) -o $@ $(CFLAGS) $(SIMULATION) $(LIBS)

