# # 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/dim CPPFLAGS = -O3 -Wall -DOS_LINUX $(INCDIRS) LDLIBS = -lstdc++ -lpthread -lfl -lreadline -ltermcap hvcontrol: $(OBJECTS) ../../Evidence/DIM/linux/libdim.a # $(CC) $(CPPFLAGS) -o $@ $(OBJECTS) $(LIBS) clean: @rm -f $(OBJECTS) @rm -f *.d @rm -f *~ -include Dep.d # Implicit rules #%.o : %.cc # $(CC) $(CPPFLAGS) $(INCDIRS) -c -o $@ $< #%.o : %.cpp # $(CC) $(CPPFLAGS) $(INCDIRS) -c -o $@ $< %.d : @echo "Generating dependencies" $@ @$(CC) -MM $(SOURCES) $(INCDIRS) \ | sed 's/^\(.*\).o:/$@ \1.o:/' > $@