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.

45 lines
839 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: convert_clean hit_analyse
  14. hit_analyse: hit_analyse.o
  15. g++ -o hit_analyse hit_analyse.o $(LDFLAGS) $(LIBS)
  16. %.o: %.c
  17. g++ ${CFLAGS} -c -g $<
  18. convert_clean: convert_clean.o
  19. g++ -o convert_clean convert_clean.o $(LDFLAGS) $(LIBS)
  20. %.o: %.c
  21. g++ ${CFLAGS} -c -g $<
  22. test:
  23. @echo $(ROOTCFLAGS)
  24. @echo $(LDFLAGS)
  25. @echo $(LIBS)
  26. clean:
  27. -rm -f *.o