hit_analyse_v2/Scripts_20210119/Makefile
Blake Leverington 6f25f8675f fixed folders
2021-01-25 12:58:41 +01:00

39 lines
715 B
Makefile

ROOTCFLAGS := $(shell root-config --cflags)
ROOTLIBS := $(shell root-config --libs)
ROOTGLIBS := $(shell root-config --glibs)
GSLCFLAGS := $(shell gsl-config --cflags)
GSLLIBS := $(shell gsl-config --libs)
GSLGLIBS := $(shell gsl-config --glibs)
LDFLAGS = -O
LIBS += $(ROOTLIBS) $(GSLLIBS)
CFLAGS += $(ROOTCFLAGS) $(GSLCFLAGS) #-std=gnu++11
# Not sure why Minuit isn't being included -- put in by hand
#
LIBS += -lMinuit
all: hit_analyse_v2
hit_analyse_v2: hit_analyse_v2.o
g++ -o hit_analyse_v2 hit_analyse_v2.o $(LDFLAGS) $(LIBS)
%.o: %.c
g++ ${CFLAGS} -c -g $<
test:
@echo $(ROOTCFLAGS)
@echo $(LDFLAGS)
@echo $(LIBS)
clean:
-rm -f *.o