source: JEM-EUSO/equalization_gain/branches/analclass-Sylvie/src/Makefile @ 196

Last change on this file since 196 was 196, checked in by dagoret, 11 years ago

add the developpment branch of the class to avoid pertrubation on the main Plost Scurve function, this is only developpement

File size: 1.3 KB
Line 
1# ***********************************************************
2# Makefile for EUSO-BALLOON for S-curve fitting
3#
4# Sylvie Dagoret-Campagne
5#
6# 24 09 2013
7# ***********************************************************
8
9# Compiler flags
10CXX = clang++
11CXXFLAGSROOT := $(shell echo "`root-config --cflags`")
12CXXFLAGS =
13CXXFLAGS += -Wall -O2 -fPIC
14CXXFLAGS += $(CXXFLAGSROOT)
15
16COMPILE = $(CXX) $(CXXFLAGS) -c
17
18FF = g77
19FFLAGS = -Wall -O2 -c
20
21LDFLAGSROOT = $(shell echo "`root-config --libs`")
22LDFLAGS =
23LDFLAGS += -Wall -O2
24
25LD = $(CXX)
26
27SHFLAGS := -dynamiclib -twolevel_namespace -undefined dynamic_lookup -dynamic -single_module
28#SHFLAGS := -bundle
29
30# Programs, object files
31PROGRAMS = PlotScurvesAllMain libPlotScurvesAll-diffFit.so
32OBJS = PlotScurvesAllMain.o PlotScurvesAll-diffFit.o
33LIBS = libPlotScurvesAll-diffFit.so
34
35DEPS = $(OBJS:.o=.d)
36
37all: $(PROGRAMS)
38
39# Program dependencies
40PlotScurvesAllMain: $(OBJS)
41        $(LD) $(LDFLAGS) $^ $(LDFLAGSROOT)  -o $@
42
43libPlotScurvesAll-diffFit.so : PlotScurvesAll-diffFit.o
44        $(LD) $(SHFLAGS) -o $@ $^
45
46
47
48# ***********************************************************
49# Generic part
50
51clean:
52        rm -f $(DEPS) $(PROGRAMS) $(OBJS) $(LIBS)
53
54include $(DEPS)
55
56%.d : %.cc
57        set -e; $(CXX) -MM $(CXXFLAGS) $< \
58        | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
59        [ -s $@ ] || rm -f $@
60
61%.o : %.cc
62        $(COMPILE) $< -o $@
63
64%.o : %.f
65        $(FF) $(FFLAGS) $< -o $@
66
Note: See TracBrowser for help on using the repository browser.