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.

47 lines
1.0 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) -L/cvmfs/lhcb.cern.ch/lib/lcg/releases/LCG_95/tbb/2019_U1/x86_64-slc6-gcc8-opt/include
  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. OBJS = convert_clean.o init.o align_ethercat.o read_bpm.o
  14. all: convert_clean
  15. convert_clean: $(OBJS)
  16. g++ -o convert_clean $(OBJS) $(LDFLAGS) $(LIBS)
  17. %.o: %.c
  18. g++ ${CFLAGS} -c -g $<
  19. init.o: init.c init.h
  20. g++ ${CFLAGS} -c init.c
  21. align_ethercat.o: align_ethercat.c align_ethercat.h
  22. g++ ${CFLAGS} -c align_ethercat.c
  23. read_bpm.o: read_bpm.c read_bpm.h
  24. g++ ${CFLAGS} -c read_bpm.c
  25. test:
  26. @echo $(ROOTCFLAGS)
  27. @echo $(LDFLAGS)
  28. @echo $(LIBS)
  29. clean:
  30. -rm -f *.o