source: branches/Mars_McMismatchStudy/MMCComp/Makefile@ 20115

Last change on this file since 20115 was 18094, checked in by ghughes, 10 years ago
change to include file paths
File size: 683 bytes
Line 
1##CXXFLAGS = -g -fPIC -I$(ROOTSYS)/include -L../../libmars.so
2CXXFLAGS = -g -fPIC -I$(ROOTSYS)/include
3LDFLAGS = -g -shared
4LD = g++ -fPIC
5
6TTT = ../libmars.so
7
8HDRS = MMCComp.h mclib.h
9
10SRCS = MMCComp.cpp mclib.cpp
11
12OBJS = MMCComp.o mclib.o
13
14ROOTLIB = $(shell root-config --glibs)
15
16PROGRAM = mclib.so
17
18all: $(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
27clean:; @rm -f $(OBJS) core
28
29###
30MMCComp.o: MMCComp.h
31
32mclib.cpp: MMCComp.h
33 @echo "Generating dictionary ..."
34 @rootcint mclib.cpp -c MMCComp.h
Note: See TracBrowser for help on using the repository browser.