95 |
$(CC) -shared -Wl,-soname=$@ -o $@ \ |
$(CC) -shared -Wl,-soname=$@ -o $@ \ |
96 |
$(rpath) $(CFLAGS) $(LDFLAGS) $(libstore_$*.so-LDFLAGS) $^ |
$(rpath) $(CFLAGS) $(LDFLAGS) $(libstore_$*.so-LDFLAGS) $^ |
97 |
|
|
98 |
# Each libstore_TYPE.a is in fact a linker script so that `-lstore_TYPE' |
# Each libstore_TYPE.a is in fact an object file script so that `-lstore_TYPE' |
99 |
# just has the same effect as `-u store_TYPE_class'. |
# just has the same effect as `-u store_TYPE_class'. |
100 |
$(store-types:%=libstore_%.a): libstore_%.a: $(srcdir)/Makefile |
$(store-types:%=libstore_%.a): libstore_%.a: $(srcdir)/Makefile |
101 |
(echo '/* This forces the module to be linked in from libstore.a. */';\ |
$(CC) -r -nostdlib -nostartfiles -x c /dev/null \ |
102 |
echo 'EXTERN(store_$*_class);') > $@T |
-o $@ -u store_$*_class |
|
mv -f $@T $@ |
|
103 |
|
|
104 |
# XXX need to install these |
# XXX need to install these |
105 |
all: $(store-types:%=libstore_%.a) |
all: $(store-types:%=libstore_%.a) |