# # Makefile hvcontrol # SOURCES = hvcontrol.cpp src/HV.cc src/HVConfig.cc src/HVCalib.cc src/ProcessIO.cc ../pixelmap/Pixel.cc ../pixelmap/PixelMap.cc ../drsdaq/SlowData.cc ../Evidence/Evidence.cc OBJECTS = $(addsuffix .o, $(basename $(SOURCES))) INCDIRS = -I. -I./src -I../Evidence/DIM/ CPPFLAGS = -O3 -Wall -DOS_LINUX $(INCDIRS) LDLIBS = -lstdc++ -lpthread -lfl -lreadline -ltermcap hvcontrol: $(OBJECTS) ../Evidence/DIM/libdim.a clean: @rm -f $(OBJECTS) @rm -f *.d @rm -f *~ -include Dep.d # Implicit rules %.d : @echo "Generating dependencies" $@ @$(CC) -MM $(SOURCES) $(INCDIRS) \ | sed 's/^\(.*\).o:/$@ \1.o:/' > $@