Last change
on this file since 18090 was 18090, checked in by ghughes, 10 years ago |
start of sharedlib to compare data and Monte Carlo
|
File size:
686 bytes
|
Line | |
---|
1 | ##CXXFLAGS = -g -fPIC -I$(ROOTSYS)/include -L../../libmars.so
|
---|
2 | CXXFLAGS = -g -fPIC -I$(ROOTSYS)/include
|
---|
3 | LDFLAGS = -g -shared
|
---|
4 | LD = g++ -fPIC
|
---|
5 |
|
---|
6 | TTT = ../../libmars.so
|
---|
7 |
|
---|
8 | HDRS = MMCComp.h mclib.h
|
---|
9 |
|
---|
10 | SRCS = MMCComp.cpp mclib.cpp
|
---|
11 |
|
---|
12 | OBJS = MMCComp.o mclib.o
|
---|
13 |
|
---|
14 | ROOTLIB = $(shell root-config --glibs)
|
---|
15 |
|
---|
16 | PROGRAM = mclib.so
|
---|
17 |
|
---|
18 | all: $(PROGRAM)
|
---|
19 |
|
---|
20 | $(PROGRAM): $(OBJS)
|
---|
21 | @echo "Linking $(PROGRAM) ..."
|
---|
22 | @/bin/rm -f $(PROGRAM)
|
---|
23 | @$(LD) $(LDFLAGS) $(OBJS) $(ROOTLIB) $(TTT) -o $(PROGRAM)
|
---|
24 | @chmod 555 $(PROGRAM)
|
---|
25 | @echo "done"
|
---|
26 |
|
---|
27 | clean:; @rm -f $(OBJS) core
|
---|
28 |
|
---|
29 | ###
|
---|
30 | MMCComp.o: MMCComp.h
|
---|
31 |
|
---|
32 | mclib.cpp: MMCComp.h
|
---|
33 | @echo "Generating dictionary ..."
|
---|
34 | @rootcint mclib.cpp -c MMCComp.h
|
---|
Note:
See
TracBrowser
for help on using the repository browser.