PROGRAM = not_working CXXFLAGS = $(shell root-config --cflags) ROOTLIBS = $(shell root-config --libs) -lXMLIO LIBS = $(ROOTLIBS) GCC = /usr/bin/g++ -g all:$(PROGRAM) #Linker: not_working:$(PROGRAM).o $(GCC) $(OPT) $(CXXFLAGS) $(PROGRAM).o -o $(PROGRAM) $(LIBS) #Compiler: not_working.o:$(PROGRAM).cxx $(GCC) $(OPT) $(CXXFLAGS) -c $(PROGRAM).cxx #Cleanup: clean: rm -f *.d rm -f *.o rm -f *.so rm -f $(PROGRAM)