1 |
#***************************************************************************** |
#***************************************************************************** |
2 |
# |
# |
3 |
# FILE NAME: $Id: Makefile,v 1.2 2008/09/23 07:57:55 mocchiut Exp $ |
# FILE NAME: $Id: Makefile,v 1.11 2008-11-04 09:44:53 mocchiut Exp $ |
4 |
# VERSION: |
# VERSION: |
5 |
# AUTHOR: Nergal S.r.l. |
# AUTHOR: Nergal S.r.l. |
6 |
# DATE: |
# DATE: |
15 |
|
|
16 |
|
|
17 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
18 |
|
ifneq ($(MAKECMDGOALS),distclean) |
19 |
include $(BASEDIR)/event/Make.def |
include $(BASEDIR)/event/Make.def |
20 |
|
endif |
21 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
22 |
|
|
23 |
CFLAGS += -I $(EVNT_DIR_INC) -I $(ROOT_DIR_INC) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -DPIC |
CFLAGS += -I $(EVNT_DIR_INC) -I $(ROOT_DIR_INC) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -DPIC |
99 |
libyoda.so.0.0.0: $(TARGETLIB) $(EXTLIB) |
libyoda.so.0.0.0: $(TARGETLIB) $(EXTLIB) |
100 |
$(CXX) \ |
$(CXX) \ |
101 |
$(PAM_BIT) -o $@ \ |
$(PAM_BIT) -o $@ \ |
102 |
-shared -nostdlib \ |
-shared \ |
103 |
-Wl,-soname \ |
-Wl,-soname \ |
104 |
-Wl,libyoda.so.0 \ |
-Wl,libyoda.so.0 \ |
105 |
-Wl,--whole-archive \ |
-Wl,--whole-archive \ |
106 |
$^ \ |
$^ \ |
107 |
-Wl,--no-whole-archive |
-Wl,--no-whole-archive |
108 |
|
|
|
|
|
109 |
libyoda.a: $(TARGETLIB) $(EXTLIB) |
libyoda.a: $(TARGETLIB) $(EXTLIB) |
110 |
cd $(OBJDIR) ; \ |
cd $(OBJDIR) ; \ |
111 |
pwd ;\ |
pwd ;\ |
114 |
done ;\ |
done ;\ |
115 |
$(AR) -scrv libyoda.a *.o |
$(AR) -scrv libyoda.a *.o |
116 |
|
|
|
|
|
117 |
$(TARGETLIB) : ${OBJS} |
$(TARGETLIB) : ${OBJS} |
118 |
$(AR) -scrv $@ $? |
$(AR) -scrv $@ $? |
119 |
|
|
192 |
|
|
193 |
$(ROOTEVENTDICT).cpp: ${DICT_HEADER_FILES} |
$(ROOTEVENTDICT).cpp: ${DICT_HEADER_FILES} |
194 |
echo $(ROOTCINT) -f $@ -c ${INCLUDES} $^ ;\ |
echo $(ROOTCINT) -f $@ -c ${INCLUDES} $^ ;\ |
195 |
LD_LIBRARY_PATH=$(ROOT_LIB) $(ROOTCINT) -f $@ -c ${INCLUDES} $^ |
LD_LIBRARY_PATH=$(ROOT_LIB):$(LD_LIBRARY_PATH); $(ROOTCINT) -f $@ -c ${INCLUDES} $^ |
196 |
|
|
197 |
clean: clean-subdir |
clean: clean-subdir |
198 |
rm -f $(TARGETLIB) ${OBJS} $(OBJDIR)/.*.d libyoda* |
rm -f $(TARGETLIB) ${OBJS} $(OBJDIR)/.*.d libyoda* |