ROOTCFLAGS = $(shell root-config --cflags) ROOTLIBS = $(shell root-config --libs) ROOTGLIBS = $(shell root-config --glibs) all: viewpeds viewadcs viewpeds.o: viewpeds.cc Makefile $(CXX) $(CXXFLAGS) -pg -c -g viewpeds.cc $(ROOTCFLAGS) viewpeds: viewpeds.o $(CXX) -pg -o viewpeds viewpeds.o $(ROOTLIBS) $(ROOTGLIBS) viewpeds1.o: viewpeds1.cc Makefile $(CXX) $(CXXFLAGS) -pg -c -g viewpeds1.cc $(ROOTCFLAGS) viewpeds1: viewpeds1.o $(CXX) -pg -o viewpeds1 viewpeds1.o $(ROOTLIBS) $(ROOTGLIBS) viewadcs.o: viewadcs.cc Makefile $(CXX) $(CXXFLAGS) -pg -c -g viewadcs.cc $(ROOTCFLAGS) viewadcs: viewadcs.o $(CXX) -pg -o viewadcs viewadcs.o $(ROOTLIBS) $(ROOTGLIBS) viewtdcs.o: viewtdcs.cc Makefile $(CXX) $(CXXFLAGS) -pg -c -g viewtdcs.cc $(ROOTCFLAGS) viewtdcs: viewtdcs.o $(CXX) -pg -o viewtdcs viewtdcs.o $(ROOTLIBS) $(ROOTGLIBS) viewtdcs1.o: viewtdcs1.cc Makefile $(CXX) $(CXXFLAGS) -pg -c -g viewtdcs1.cc $(ROOTCFLAGS) viewtdcs1: viewtdcs1.o $(CXX) -pg -o viewtdcs1 viewtdcs1.o $(ROOTLIBS) $(ROOTGLIBS) viewadcs1.o: viewadcs1.cc Makefile $(CXX) $(CXXFLAGS) -pg -c -g viewadcs1.cc $(ROOTCFLAGS) viewadcs1: viewadcs1.o $(CXX) -pg -o viewadcs1 viewadcs1.o $(ROOTLIBS) $(ROOTGLIBS)