Replace ld version script with libtool -export-symbols-regex.
[libtasn1.git] / lib / Makefile.am
blobcb6c65fe90ebb6d3a178ee135d43fbf49f066c48
1 include_HEADERS = libtasn1.h 
3 EXTRA_DIST = libtasn1.h der.h asn1-api.tex mem.h gstr.h errors.h \
4              defines.h int.h parser_aux.h structure.h errors_int.h \
5              element.h asn1-api.tex libtasn1.vers libtasn1-config.in \
6              libtasn1.m4
8 bin_SCRIPTS = libtasn1-config
10 m4datadir = $(datadir)/aclocal
11 m4data_DATA = libtasn1.m4
13 lib_LTLIBRARIES = libtasn1.la
15 # Separate so we can create the documentation
16 COBJECTS = ASN1.y decoding.c gstr.c errors.c parser_aux.c \
17            structure.c element.c coding.c
19 libtasn1_la_SOURCES = $(COBJECTS) 
21 libtasn1_la_LDFLAGS = -no-undefined \
22         -export-symbols-regex '^(_asn1|asn1|libtasn1).*' \
23         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
25 asn1-api.tex: $(COBJECTS)
26         @echo "% \\newpage" > asn1-api.tex
27         @for i in $(COBJECTS); \
28         do echo -n "Creating documentation for file $$i... " && $(PERL) ../doc/scripts/gdoc -tex $$i >> asn1-api.tex \
29         && echo "ok"; \
30         done
32 all-local: asn1-api.tex