33 lines
584 B
Plaintext
33 lines
584 B
Plaintext
PROGNAME = convert
|
|
#convert ## analyse
|
|
SOURCEFILES = convert.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}
|
|
|