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.

32 lines
584 B

  1. PROGNAME = convert
  2. #convert ## analyse
  3. SOURCEFILES = convert.c
  4. OBJS = $(patsubst %.c, %.o, $(SOURCEFILES))
  5. ROOTCFLAGS := $(shell root-config --cflags)
  6. ROOTLIBS := $(shell root-config --libs)
  7. ROOTGLIBS := $(shell root-config --glibs)
  8. LDFLAGS = -O
  9. LIBS += $(ROOTLIBS)
  10. CFLAGS += $(ROOTCFLAGS)
  11. # Not sure why Minuit isn't being included -- put in by hand
  12. #
  13. LIBS += -lMinuit
  14. $(PROGNAME): $(OBJS)
  15. g++ -o $@ $(OBJS) $(LDFLAGS) $(LIBS)
  16. %.o: %.c
  17. g++ ${CFLAGS} -c -g $<
  18. test:
  19. @echo $(ROOTCFLAGS)
  20. clean:
  21. -rm -f ${PROGNAME} ${OBJS}