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.

83 lines
1.6 KiB

  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 analyse analyse_batch plot
  14. plot: plot.o
  15. g++ -o plot plot.o $(LDFLAGS) $(LIBS)
  16. %.o: %.c
  17. g++ ${CFLAGS} -c -g $<
  18. plotdata_intensity_proton: plotdata_intensity_proton.o
  19. g++ -o plotdata_intensity_proton plotdata_intensity_proton.o $(LDFLAGS) $(LIBS)
  20. %.o: %.c
  21. g++ ${CFLAGS} -c -g $<
  22. plotdata_intensity_carbon: plotdata_intensity_carbon.o
  23. g++ -o plotdata_intensity_carbon plotdata_intensity_carbon.o $(LDFLAGS) $(LIBS)
  24. %.o: %.c
  25. g++ ${CFLAGS} -c -g $<
  26. analyse: analyse.o
  27. g++ -o analyse analyse.o $(LDFLAGS) $(LIBS)
  28. %.o: %.c
  29. g++ ${CFLAGS} -c -g $<
  30. convert: convert.o
  31. g++ -o convert convert.o $(LDFLAGS) $(LIBS)
  32. %.o: %.c
  33. g++ ${CFLAGS} -c -g $<
  34. convert_batch: convert_batch.o
  35. g++ -o convert_batch convert_batch.o $(LDFLAGS) $(LIBS)
  36. %.o: %.c
  37. g++ ${CFLAGS} -c -g $<
  38. analyse_batch: analyse_batch.o
  39. g++ -o analyse_batch analyse_batch.o $(LDFLAGS) $(LIBS)
  40. %.o: %.c
  41. g++ ${CFLAGS} -c -g $<
  42. analyse2: analyse2.o
  43. g++ -o analyse2 analyse2.o $(LDFLAGS) $(LIBS)
  44. %.o: %.c
  45. g++ ${CFLAGS} -c -g $<
  46. test:
  47. @echo $(ROOTCFLAGS)
  48. @echo $(LDFLAGS)
  49. @echo $(LIBS)
  50. clean:
  51. -rm -f *.o