data analysis scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
715 B

  1. ROOTCFLAGS := $(shell root-config --cflags)
  2. ROOTLIBS := $(shell root-config --libs)
  3. ROOTGLIBS := $(shell root-config --glibs)
  4. GSLCFLAGS := $(shell gsl-config --cflags)
  5. GSLLIBS := $(shell gsl-config --libs)
  6. GSLGLIBS := $(shell gsl-config --glibs)
  7. LDFLAGS = -O
  8. LIBS += $(ROOTLIBS) $(GSLLIBS)
  9. CFLAGS += $(ROOTCFLAGS) $(GSLCFLAGS) #-std=gnu++11
  10. # Not sure why Minuit isn't being included -- put in by hand
  11. #
  12. LIBS += -lMinuit
  13. all: hit_analyse_v2
  14. hit_analyse_v2: hit_analyse_v2.o
  15. g++ -o hit_analyse_v2 hit_analyse_v2.o $(LDFLAGS) $(LIBS)
  16. %.o: %.c
  17. g++ ${CFLAGS} -c -g $<
  18. test:
  19. @echo $(ROOTCFLAGS)
  20. @echo $(LDFLAGS)
  21. @echo $(LIBS)
  22. clean:
  23. -rm -f *.o