lasso/lasso/Makefile.am

92 lines
3.0 KiB
Makefile
Raw Normal View History

SUBDIRS = xml id-ff saml-2.0
if WSF_ENABLED
SUBDIRS += id-wsf-2.0 id-wsf
endif
2004-03-23 18:00:23 +01:00
liblassoincludedir = $(includedir)/lasso
INCLUDES = -I$(top_builddir) -I$(top_srcdir) $(LASSO_CORE_CFLAGS)
2004-03-23 18:00:23 +01:00
## Added to activate libtool 1.5.6 windows resources partial support
LTRCCOMPILE = $(LIBTOOL) --tag=RC --mode=compile $(RC) \
`echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) |\
sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
## Added to activate libtool 1.5.6 windows resources partial support
lasso.rc.lo: $(top_srcdir)/win32/lasso.rc
$(LTRCCOMPILE) -i $< -o $@
lib_LTLIBRARIES = liblasso.la
2004-03-23 18:00:23 +01:00
liblassoinclude_HEADERS = export.h lasso.h lasso_config.h errors.h \
registry.h
nodist_liblassoinclude_HEADERS = debug.h utils.h registry-private.h
BUILT_SOURCES = types.c errors.c symbols.sym
2004-03-23 18:00:23 +01:00
liblasso_la_SOURCES = lasso.c errors.c registry.c utils.c debug.h
if WSF_ENABLED
SYMBOLS_ARGS = -wsf
endif
types.c: $(srcdir)/*.h $(srcdir)/*/*.h $(srcdir)/*/*/*.h
$(PYTHON) $(srcdir)/extract_types.py $(srcdir) $(SYMBOLS_ARGS)
symbols.sym: $(srcdir)/*.h $(srcdir)/*/*.h $(srcdir)/*/*/*.h
$(PYTHON) $(srcdir)/extract_symbols.py $(srcdir) $(SYMBOLS_ARGS) > symbols.sym
MAINTAINERCLEANFILES = \
Makefile.in \
lasso_config.h.in
clean-local:
-rm -f types.c symbols.sym errors.c
EXTRA_DIST = utils.h extract_types.py extract_symbols.py build_strerror.py \
Docs: change the doc production and lot of other fixes * lasso/Makefile.am: distribute extract_sections.py * docs/references/lasso/lasso.types.in: add missing class (mainly SAML2 and ID-WSF 1.0/2.0) from docs/references/lasso.types.in * lasso/xml/strings.h: add lots of documentation, or at least documentation template to strings constants. * id-ff/login.h: * saml-2.0/assertion_query.h: * xml/xml.h: document undocumented enumerations. * lasso/errors.h: add proper documentation about error codes. * lasso/errors.c: new version of the lasso_strerror function * lasso/build_strerror.py: update the script that generater lasso_strerror from the documentation comments. Remove usage of OFTYPE * lasso/id-ff/session.c: * lasso/id-ff/session.h: remove usage of oftype, prefer gtk-introspection annotations instead. * lasso/id-wsf/data_service.h: * lasso/id-wsf/data_service.c: do the same. Add a script to build lasso-sections.txt * lasso/extract_sections.py: this script parses header files and generated lasso-sections.txt content for GObject class descriptions. Add a template file for the lasso-section.txt file * docs/references/lasso-sections.txt.in: this file serves as a base for the generation of lasso-sections.txt Update docs/references/Makefile.am for generating lasso-sections.txt * docs/references/Makefile.am: always rebuild template, using out of source build directory is too weird without it. call new script extract_sections.py to regenerate lasso-sections.txt if header files changed. Update lasso.sgml file with all missing sections * docs/reference/lasso.sgml: add all missing sections, mainly objects from XML schemas. * docs/reference/lasso-sections.txt: update it * *.c: add section documentation to some files. * lasso/xml/strings.h: fix bad usage or docbook markup
2009-08-26 17:15:07 +02:00
registry-private.h errors.c.in backward_comp.h extract_sections.py
2004-03-23 18:00:23 +01:00
if WSF_ENABLED
WSF_LIB_FILE = $(top_builddir)/lasso/id-wsf/liblasso-id-wsf.la
2007-04-03 15:50:34 +02:00
WSF2_LIB_FILES = $(top_builddir)/lasso/id-wsf-2.0/liblasso-id-wsf2.la \
$(top_builddir)/lasso/xml/id-wsf-2.0/liblasso-xml-id-wsf-2.la \
$(top_builddir)/lasso/xml/ws/liblasso-xml-ws.la
2007-04-03 15:50:34 +02:00
endif
if MINGW
liblasso_la_LIBADD = \
$(top_builddir)/lasso/xml/liblasso-xml.la \
$(top_builddir)/lasso/xml/saml-2.0/liblasso-xml-saml2.la \
$(top_builddir)/lasso/id-ff/liblasso-id-ff.la \
$(top_builddir)/lasso/saml-2.0/liblasso-saml-20.la \
$(WSF_LIB_FILE) \
2007-04-03 15:50:34 +02:00
$(WSF2_LIB_FILES) \
$(LASSO_LIBS) \
lasso.rc.lo
# Just make damn sure the ABI stays the same between
# upgrades.
# Obviously if you don't, fixing the situation up again can be painful.
liblasso_la_LDFLAGS = -no-undefined -version-info @LASSO_VERSION_INFO@ \
-Wl,--add-stdcall-alias
else
2004-03-23 18:00:23 +01:00
liblasso_la_LIBADD = \
2004-04-06 00:36:03 +02:00
$(top_builddir)/lasso/xml/liblasso-xml.la \
$(top_builddir)/lasso/xml/saml-2.0/liblasso-xml-saml2.la \
$(top_builddir)/lasso/id-ff/liblasso-id-ff.la \
$(top_builddir)/lasso/saml-2.0/liblasso-saml-20.la \
$(WSF_LIB_FILE) \
2007-04-03 15:50:34 +02:00
$(WSF2_LIB_FILES) \
$(LASSO_LIBS)
# Just make damn sure the ABI stays the same between
# upgrades.
# Obviously if you don't, fixing the situation up again can be painful.
2005-09-12 00:52:28 +02:00
liblasso_la_LDFLAGS = -no-undefined -version-info @LASSO_VERSION_INFO@ \
-export-symbols symbols.sym
endif
errors.c: $(srcdir)/errors.h
2008-08-01 16:08:54 +02:00
python $(srcdir)/build_strerror.py $(srcdir) >$(srcdir)/.errors.c.new
if ! cmp -s $(srcdir)/errors.c $(srcdir)/.errors.c.new; then \
mv -f $(srcdir)/.errors.c.new $(srcdir)/errors.c; else \
rm $(srcdir)/.errors.c.new; fi