-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 1013 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
CC = g++
#ROOTCFLAGS := $(shell root-config --cflags)
#ROOTLIBS := $(shell root-config --libs)
#ROOTGLIBS := $(shell root-config --glibs)
ROOTSYS := /Users/oka/root
ROOTCFLAGS := $(shell $(ROOTSYS)/bin/root-config --cflags) ## Write implicitly for xcode. Rewrite some day using ./configure or cmake.
ROOTLIBS := $(shell $(ROOTSYS)/bin/root-config --libs)
ROOTGLIBS := $(shell $(ROOTSYS)/bin/root-config --glibs)
ROOTCINT := $(ROOTSYS)/bin/rootcint
GRPLOTFLAGS := -I./include
GRPLOTLIBS := -L./lib -lTRint_gr
DICT := grplot_dict.cc
grplot: TRint_gr linkdef
$(CC) [email protected] $(ROOTCFLAGS) $(ROOTLIBS) $(READLINELIBS) $(GRPLOTFLAGS) $(GRPLOTLIBS) -o $@
linkdef: include/TRint_gr.h linkdef.h
$(ROOTCINT) -f $(DICT) -c $(ROOTCFLAGS) $(GRPLOTFLAGS) $^
TRint_gr: linkdef
$(CC) src/[email protected] $(ROOTCFLAGS) $(ROOTLIBS) $(READLINELIBS) $(GRPLOTFLAGS) -shared $(DICT) -o lib/[email protected]
.SUFFIXES: .o .cc clean
.cc.o:
$(CC) -o $@ $(ROOTCFLAGS) -c $(ROOTLIBS) $(READLINELIBS) $(GRPLOTFLAGS) $<
clean:
rm *.o *.pcm $(DICT)