CFITSIO = $(FITSIOROOT) CPP = g++ CC = gcc CFLAGS = -Wall -I$(CFITSIO) $(shell root-config --cxx --cflags --evelibs) -O3 # CFLAGS2 = -Wall -I$(CFITSIO) $(shell root-config --evelibs) -O3 LIBS = -L$(CFITSIO) -lcfitsio -lm $(shell root-config --glibs) -lTreeViewer -L$ROOTSYS/lib -lCore GLIBS = GLIBS += OBJECTS = DrawHistFit.o HEADERS = #Change the name to the .cc file, copy it and replace the previous name with the new one in the Makefile file. ALL : DrawHistFit.exe echo "Listo!" DrawHistFit.exe : $(OBJECTS) $(CPP) $(OBJECTS) -o DrawHistFit.exe $(LIBS) $(GLIBS) $(CFLAGS) DrawHistFit.o : DrawHistFit.cc $(HEADERS) $(CPP) -c DrawHistFit.cc -o DrawHistFit.o $(CFLAGS) clean: rm -f *~ *.o *.exe