## ## Makefile for KtJet examples. ## ## B. Waugh 2005-07-22 ## # Default executable to compile EXECUTABLE = Example1 # Location of KtJet installation KTDIR = $(HOME)/local # Location of CLHEP installation CLHEPDIR = /usr/local #CLHEPDIR = /usr/local/CLHEP-1.9.2.0 # Following line may be needed if using version 1 of CLHEP #CLHEP1FLAG = -DCLHEP1 # Uncomment if library compiled with double precision #KTFLAGS = -DKTDOUBLEPRECISION # Programs and flags CXX = g++ CXXFLAGS = -O0 -ansi RM = rm -f # Assign or Add variables CXXFLAGS += -I$(KTDIR)/include -I$(CLHEPDIR)/include CXXFLAGS += $(CLHEP1FLAG) $(KTFLAGS) LIBS = -L$(KTDIR)/lib -lKtEvent -L$(CLHEPDIR)/lib -lCLHEP GARBAGE = *.o .PHONY: clean default: $(EXECUTABLE) % : %.o $(CXX) -o $@ $@.o $(CXXFLAGS) $(LIBS) %.o : %.cxx $(CXX) $(CXXFLAGS) -c $< clean : $(RM) $(GARBAGE)