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 |
---|
10 | CXX = clang++ |
---|
11 | CXXFLAGSROOT := $(shell echo "`root-config --cflags`") |
---|
12 | CXXFLAGS = |
---|
13 | CXXFLAGS += -Wall -O2 -fPIC |
---|
14 | CXXFLAGS += $(CXXFLAGSROOT) |
---|
15 | |
---|
16 | COMPILE = $(CXX) $(CXXFLAGS) -c |
---|
17 | |
---|
18 | FF = g77 |
---|
19 | FFLAGS = -Wall -O2 -c |
---|
20 | |
---|
21 | LDFLAGSROOT = $(shell echo "`root-config --libs`") |
---|
22 | LDFLAGS = |
---|
23 | LDFLAGS += -Wall -O2 |
---|
24 | |
---|
25 | LD = $(CXX) |
---|
26 | |
---|
27 | SHFLAGS := -dynamiclib -twolevel_namespace -undefined dynamic_lookup -dynamic -single_module |
---|
28 | #SHFLAGS := -bundle |
---|
29 | |
---|
30 | # Programs, object files |
---|
31 | PROGRAMS = PlotScurvesAllMain libPlotScurvesAll-diffFit.so |
---|
32 | OBJS = PlotScurvesAllMain.o PlotScurvesAll-diffFit.o |
---|
33 | LIBS = libPlotScurvesAll-diffFit.so |
---|
34 | |
---|
35 | DEPS = $(OBJS:.o=.d) |
---|
36 | |
---|
37 | all: $(PROGRAMS) |
---|
38 | |
---|
39 | # Program dependencies |
---|
40 | PlotScurvesAllMain: $(OBJS) |
---|
41 | $(LD) $(LDFLAGS) $^ $(LDFLAGSROOT) -o $@ |
---|
42 | |
---|
43 | libPlotScurvesAll-diffFit.so : PlotScurvesAll-diffFit.o |
---|
44 | $(LD) $(SHFLAGS) -o $@ $^ |
---|
45 | |
---|
46 | |
---|
47 | |
---|
48 | # *********************************************************** |
---|
49 | # Generic part |
---|
50 | |
---|
51 | clean: |
---|
52 | rm -f $(DEPS) $(PROGRAMS) $(OBJS) $(LIBS) |
---|
53 | |
---|
54 | include $(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.