hit_analyse_v2/Scripts_20170508/Makefile
2021-01-25 12:39:07 +01:00

33 lines
583 B
Makefile

PROGNAME = analyse
#convert ## analyse
SOURCEFILES = analyse.c
OBJS = $(patsubst %.c, %.o, $(SOURCEFILES))
ROOTCFLAGS := $(shell root-config --cflags)
ROOTLIBS := $(shell root-config --libs)
ROOTGLIBS := $(shell root-config --glibs)
LDFLAGS = -O
LIBS += $(ROOTLIBS)
CFLAGS += $(ROOTCFLAGS)
# Not sure why Minuit isn't being included -- put in by hand
#
LIBS += -lMinuit
$(PROGNAME): $(OBJS)
g++ -o $@ $(OBJS) $(LDFLAGS) $(LIBS)
%.o: %.c
g++ ${CFLAGS} -c -g $<
test:
@echo $(ROOTCFLAGS)
clean:
-rm -f ${PROGNAME} ${OBJS}