/[PAMELA software]/chewbacca/PamOffLineSW/Makefile
ViewVC logotype

Diff of /chewbacca/PamOffLineSW/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mocchiut, Tue Sep 23 14:02:31 2008 UTC revision 1.9 by mocchiut, Tue Aug 4 13:58:08 2009 UTC
# Line 1  Line 1 
1  #*****************************************************************************  #*****************************************************************************
2  #  #
3  # FILE NAME:    $Id: Makefile,v 1.2 2008/09/23 07:57:54 mocchiut Exp $      # FILE NAME:    $Id: Makefile,v 1.8 2009/07/29 16:13:13 mocchiut Exp $    
4  # VERSION:        # VERSION:      
5  # AUTHOR:       Nergal S.r.l.  # AUTHOR:       Nergal S.r.l.
6  # DATE:  # DATE:
# Line 15  Line 15 
15    
16    
17  #------------------------------------------------------------------------------  #------------------------------------------------------------------------------
18    ifneq ($(MAKECMDGOALS),distclean)
19  include $(BASEDIR)/PamOffLineSW/Make.def  include $(BASEDIR)/PamOffLineSW/Make.def
20    endif
21    ifeq ($(GCC4),1)
22    export LG2C=-lgfortran
23    else    
24    export  LG2C=-lg2c
25    endif
26  #------------------------------------------------------------------------------  #------------------------------------------------------------------------------
27    
28    
# Line 47  EXECUTABLES=chewbacca Line 54  EXECUTABLES=chewbacca
54  all: $(EXECUTABLES)  all: $(EXECUTABLES)
55    
56  $(EXECUTABLES): $(TARGETLIB) $(EXTLIB)  $(EXECUTABLES): $(TARGETLIB) $(EXTLIB)
57          $(CXX) $(PAM_BIT) -shared -o  $@    -L ../event -lyoda -lg2c `root-config --libs` -lRMySQL $^  ifeq ($(verbose),)
58            @$(CXX) $(PAM_BIT) -o  $@    -L ../event -lyoda ${LG2C} `root-config --libs` -lRMySQL $^
59    else
60            $(CXX) $(PAM_BIT) -o  $@    -L ../event -lyoda ${LG2C} `root-config --libs` -lRMySQL $^
61    endif
62    
63  $(EXTLIB): $(EXTDIR)  $(EXTLIB): $(EXTDIR)
64    ifeq ($(verbose),)
65            @for sub_dir in $(EXTDIR) ; do \
66                    (${EGREEN} "Make all in $$sub_dir "; ${RESET});\
67                    $(MAKE) -s -C $$sub_dir libs ; \
68            done
69    else
70          for sub_dir in $(EXTDIR) ; do \          for sub_dir in $(EXTDIR) ; do \
71                  $(MAKE) -C $$sub_dir libs ; \                  $(MAKE) -C $$sub_dir libs ; \
72          done          done
73    endif
74    
75  libs: $(TARGETLIB)  libs: $(TARGETLIB)
76    
77  $(TARGETLIB) : ${OBJS}  $(TARGETLIB) : ${OBJS}
78    ifeq ($(verbose),)
79            @$(AR) -scrv $@ ${OBJS} &>/dev/null
80    else
81          $(AR) -scrv $@ ${OBJS}          $(AR) -scrv $@ ${OBJS}
82    endif
83    
84  SUBPACKET_HEADER_FILES = \  SUBPACKET_HEADER_FILES = \
85    
# Line 128  DICT_HEADER_FILES = \ Line 150  DICT_HEADER_FILES = \
150          LinkDef.h          LinkDef.h
151    
152  $(ROOTEVENTDICT).cpp: ${DICT_HEADER_FILES}  $(ROOTEVENTDICT).cpp: ${DICT_HEADER_FILES}
153    ifeq ($(verbose),)
154            @echo   "Calling ROOTCINT" ;\
155            LD_LIBRARY_PATH=$(ROOT_LIB):$(LD_LIBRARY_PATH); $(ROOTCINT) -f $@ -c ${INCLUDES} $^
156    else
157          echo    $(ROOTCINT) -f $@ -c ${INCLUDES} $^ ;\          echo    $(ROOTCINT) -f $@ -c ${INCLUDES} $^ ;\
158          LD_LIBRARY_PATH=$(ROOT_LIB) $(ROOTCINT) -f $@ -c ${INCLUDES} $^          LD_LIBRARY_PATH=$(ROOT_LIB):$(LD_LIBRARY_PATH); $(ROOTCINT) -f $@ -c ${INCLUDES} $^
159    endif
160    
161  clean: clean-subdir  clean: clean-subdir
162    ifeq ($(verbose),)
163            @rm -f $(TARGETLIB) ${OBJS} $(OBJDIR)/.*.d $(EXECUTABLES)
164    else
165          rm -f $(TARGETLIB) ${OBJS} $(OBJDIR)/.*.d $(EXECUTABLES)          rm -f $(TARGETLIB) ${OBJS} $(OBJDIR)/.*.d $(EXECUTABLES)
166    endif
167    
168  clean-subdir: $(EXTDIR)  clean-subdir: $(EXTDIR)
169    ifeq ($(verbose),)
170            @for sub_dir in $(EXTDIR) ; do \
171                    $(MAKE) -s -C $$sub_dir clean ; \
172            done
173    else
174          for sub_dir in $(EXTDIR) ; do \          for sub_dir in $(EXTDIR) ; do \
175                  $(MAKE) -C $$sub_dir clean ; \                  $(MAKE) -C $$sub_dir clean ; \
176          done          done
177    endif
178    
179  distclean: distclean-sub distclean-subdir clean  distclean: distclean-sub distclean-subdir clean
180    ifeq ($(verbose),)
181            @rm -f $(ROOTEVENTDICT).{cpp,h}
182            @$(MAKE) -s -C techmodel/ clean
183    else
184          rm -f $(ROOTEVENTDICT).{cpp,h}          rm -f $(ROOTEVENTDICT).{cpp,h}
185    endif
186    
187  distclean-subdir:  distclean-subdir:
188    ifeq ($(verbose),)
189            @for sub_dir in $(EXTDIR) ; do \
190                    $(MAKE) -s -C $$sub_dir distclean-sub ; \
191            done
192    else
193          for sub_dir in $(EXTDIR) ; do \          for sub_dir in $(EXTDIR) ; do \
194                  $(MAKE) -C $$sub_dir distclean-sub ; \                  $(MAKE) -C $$sub_dir distclean-sub ; \
195          done          done
196    endif
197    
198  -include $(DEPEND)  #-include $(DEPEND)
199    
200    
201  #------------------------------------------------------------------------------  #------------------------------------------------------------------------------

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23