1 |
#***************************************************************************** |
#***************************************************************************** |
2 |
# |
# |
3 |
# FILE NAME: $Id: Makefile,v 1.2 2008/09/23 07:57:55 mocchiut Exp $ |
# FILE NAME: $Id: Makefile,v 1.8 2008/09/23 15:43:25 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 |
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crti.o \ |
104 |
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtbeginS.o \ |
105 |
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtendS.o \ |
106 |
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crtn.o \ |
107 |
-Wl,--whole-archive \ |
-Wl,--whole-archive \ |
108 |
$^ \ |
$^ \ |
109 |
-Wl,--no-whole-archive |
-Wl,--no-whole-archive |
110 |
|
|
|
|
|
111 |
libyoda.a: $(TARGETLIB) $(EXTLIB) |
libyoda.a: $(TARGETLIB) $(EXTLIB) |
112 |
cd $(OBJDIR) ; \ |
cd $(OBJDIR) ; \ |
113 |
pwd ;\ |
pwd ;\ |
114 |
for sub_lib in $(TARGETLIB) $(EXTLIB) ; do \ |
for sub_lib in $(TARGETLIB) $(EXTLIB) ; do \ |
115 |
$(AR) -x $$sub_lib ; \ |
$(AR) -x $$sub_lib ; \ |
116 |
done ;\ |
done ;\ |
117 |
$(AR) -scrv libyoda.a *.o |
$(AR) -scrv libyoda.a *.o \ |
118 |
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crti.o \ |
119 |
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtbeginS.o \ |
120 |
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/crtendS.o \ |
121 |
|
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crtn.o |
122 |
|
|
123 |
$(TARGETLIB) : ${OBJS} |
$(TARGETLIB) : ${OBJS} |
124 |
$(AR) -scrv $@ $? |
$(AR) -scrv $@ $? |