1 |
#***************************************************************************** |
#***************************************************************************** |
2 |
# |
# |
3 |
# FILE NAME: $Id: Makefile,v 1.1.1.1 2008/09/23 07:19:54 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 \ |
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crti.o \ |
|
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtbeginS.o \ |
|
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtendS.o \ |
|
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crtn.o \ |
|
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 ;\ |
112 |
for sub_lib in $(TARGETLIB) $(EXTLIB) ; do \ |
for sub_lib in $(TARGETLIB) $(EXTLIB) ; do \ |
113 |
$(AR) -x $$sub_lib ; \ |
$(AR) -x $$sub_lib ; \ |
114 |
done ;\ |
done ;\ |
115 |
$(AR) -scrv libyoda.a *.o \ |
$(AR) -scrv libyoda.a *.o |
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crti.o \ |
|
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtbeginS.o \ |
|
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtendS.o \ |
|
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crtn.o |
|
|
# $(AR) -scrv libyoda.a *.o |
|
|
|
|
116 |
|
|
117 |
$(TARGETLIB) : ${OBJS} |
$(TARGETLIB) : ${OBJS} |
118 |
$(AR) -scrv $@ $? |
$(AR) -scrv $@ $? |
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* |