SHELL = /bin/sh # decide on compiler and flags depending on host CC = g++ CFLAGS=-fPIC -pthread ALL_CFLAGS = -Wall -O6 $(CFLAGS) OBJS = Loop.o My-Selection.o My-Histos.o LIBS = $(PAM_LIB)/libyoda.so $(PAM_LIB)/libDarthVader.so $(PAM_LIB)/libPamLevel2.so `root-config --cflags --glibs` INCS =-I `root-config --incdir` -I$(PAM_INC) -I$(PAM_INC)/yoda/ -I./ EXE = Loop.exe # pattern rule to compile object files from C files # might not work with make programs other than GNU make %.o : %.cpp Makefile $(CC) $(ALL_CFLAGS) $(INCS) -c $< -o $@ all: $(EXE) $(EXE): $(OBJS) Makefile $(CC) $(ALL_CFLAGS) $(INCS) $(OBJS) $(LIBS) -o $(EXE) .PHONY : clean clean: rm -f $(OBJS) $(EXE)