1 |
#***************************************************************************** |
#***************************************************************************** |
2 |
# |
# |
3 |
# FILE NAME: $Id: Makefile,v 1.4 2008/09/23 11:06:38 mocchiut Exp $ |
# FILE NAME: $Id: Makefile,v 1.7 2008/09/23 15:22:21 mocchiut Exp $ |
4 |
# VERSION: |
# VERSION: |
5 |
# AUTHOR: Nergal S.r.l. |
# AUTHOR: Nergal S.r.l. |
6 |
# DATE: |
# DATE: |
100 |
-shared -nostdlib \ |
-shared -nostdlib \ |
101 |
-Wl,-soname \ |
-Wl,-soname \ |
102 |
-Wl,libyoda.so.0 \ |
-Wl,libyoda.so.0 \ |
103 |
-Wl,--whole-archive \ |
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtbeginS.o \ |
104 |
$^ \ |
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtendS.o \ |
105 |
-Wl,--no-whole-archive |
-Wl,--whole-archive \ |
106 |
|
$^ \ |
107 |
|
-Wl,--no-whole-archive |
108 |
|
|
109 |
libyoda.a: $(TARGETLIB) $(EXTLIB) |
libyoda.a: $(TARGETLIB) $(EXTLIB) |
110 |
cd $(OBJDIR) ; \ |
cd $(OBJDIR) ; \ |
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 \ |
116 |
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtbeginS.o \ |
117 |
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtendS.o |
118 |
|
|
119 |
$(TARGETLIB) : ${OBJS} |
$(TARGETLIB) : ${OBJS} |
120 |
$(AR) -scrv $@ $? |
$(AR) -scrv $@ $? |