2009-07-06 18:06:03 +02:00
|
|
|
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
|
|
|
|
|
2008-05-27 00:58:21 +02:00
|
|
|
INCLUDES = -I$(top_builddir) -I$(top_srcdir) $(LASSO_CORE_CFLAGS)
|
2004-03-23 18:00:23 +01:00
|
|
|
|
2004-08-03 17:12:45 +02: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
|
2004-08-23 19:17:34 +02:00
|
|
|
lasso.rc.lo: $(top_srcdir)/win32/lasso.rc
|
2004-08-03 17:12:45 +02:00
|
|
|
$(LTRCCOMPILE) -i $< -o $@
|
|
|
|
|
2004-08-20 11:46:17 +02:00
|
|
|
lib_LTLIBRARIES = liblasso.la
|
2004-03-23 18:00:23 +01:00
|
|
|
|
2008-08-26 14:49:02 +02:00
|
|
|
liblassoinclude_HEADERS = export.h lasso.h lasso_config.h errors.h \
|
|
|
|
registry.h
|
2008-10-13 13:44:09 +02:00
|
|
|
nodist_liblassoinclude_HEADERS = debug.h utils.h registry-private.h
|
2008-05-30 15:03:06 +02:00
|
|
|
BUILT_SOURCES = types.c errors.c symbols.sym
|
2004-03-23 18:00:23 +01:00
|
|
|
|
2008-11-05 12:23:27 +01:00
|
|
|
liblasso_la_SOURCES = lasso.c errors.c registry.c utils.c debug.h
|
2004-12-04 14:38:34 +01:00
|
|
|
|
2005-01-27 12:51:59 +01:00
|
|
|
if WSF_ENABLED
|
|
|
|
SYMBOLS_ARGS = -wsf
|
|
|
|
endif
|
|
|
|
|
2009-03-27 17:44:15 +01:00
|
|
|
types.c: $(srcdir)/*.h $(srcdir)/*/*.h $(srcdir)/*/*/*.h
|
2005-02-24 20:13:04 +01:00
|
|
|
$(PYTHON) $(srcdir)/extract_types.py $(srcdir) $(SYMBOLS_ARGS)
|
|
|
|
|
2009-03-27 17:44:15 +01:00
|
|
|
symbols.sym: $(srcdir)/*.h $(srcdir)/*/*.h $(srcdir)/*/*/*.h
|
2005-01-27 12:51:59 +01:00
|
|
|
$(PYTHON) $(srcdir)/extract_symbols.py $(srcdir) $(SYMBOLS_ARGS) > symbols.sym
|
2004-12-21 15:00:17 +01:00
|
|
|
|
2008-05-27 17:27:33 +02:00
|
|
|
MAINTAINERCLEANFILES = \
|
|
|
|
Makefile.in \
|
|
|
|
lasso_config.h.in
|
|
|
|
|
2004-12-04 16:01:33 +01:00
|
|
|
clean-local:
|
2009-08-26 17:14:56 +02:00
|
|
|
-rm -f types.c symbols.sym errors.c
|
2004-12-04 16:01:33 +01:00
|
|
|
|
2008-08-26 14:49:02 +02:00
|
|
|
EXTRA_DIST = utils.h extract_types.py extract_symbols.py build_strerror.py \
|
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
|
|
|
|
2005-03-18 21:58:34 +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 \
|
2007-07-10 10:50:56 +02:00
|
|
|
$(top_builddir)/lasso/xml/id-wsf-2.0/liblasso-xml-id-wsf-2.la \
|
2007-04-12 14:16:33 +02:00
|
|
|
$(top_builddir)/lasso/xml/ws/liblasso-xml-ws.la
|
2007-04-03 15:50:34 +02:00
|
|
|
endif
|
|
|
|
|
2004-08-03 17:12:45 +02:00
|
|
|
if MINGW
|
|
|
|
liblasso_la_LIBADD = \
|
|
|
|
$(top_builddir)/lasso/xml/liblasso-xml.la \
|
2005-11-20 16:38:19 +01:00
|
|
|
$(top_builddir)/lasso/xml/saml-2.0/liblasso-xml-saml2.la \
|
2004-11-15 11:40:37 +01:00
|
|
|
$(top_builddir)/lasso/id-ff/liblasso-id-ff.la \
|
2005-11-20 16:38:19 +01:00
|
|
|
$(top_builddir)/lasso/saml-2.0/liblasso-saml-20.la \
|
2005-03-18 21:58:34 +01:00
|
|
|
$(WSF_LIB_FILE) \
|
2007-04-03 15:50:34 +02:00
|
|
|
$(WSF2_LIB_FILES) \
|
2004-08-03 17:12:45 +02:00
|
|
|
$(LASSO_LIBS) \
|
2004-08-20 11:46:17 +02:00
|
|
|
lasso.rc.lo
|
2004-09-07 19:07:59 +02:00
|
|
|
# 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
|
2004-08-03 17:12:45 +02:00
|
|
|
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 \
|
2005-11-20 16:38:19 +01:00
|
|
|
$(top_builddir)/lasso/xml/saml-2.0/liblasso-xml-saml2.la \
|
2004-11-15 11:40:37 +01:00
|
|
|
$(top_builddir)/lasso/id-ff/liblasso-id-ff.la \
|
2005-11-20 16:38:19 +01:00
|
|
|
$(top_builddir)/lasso/saml-2.0/liblasso-saml-20.la \
|
2005-03-18 21:58:34 +01:00
|
|
|
$(WSF_LIB_FILE) \
|
2007-04-03 15:50:34 +02:00
|
|
|
$(WSF2_LIB_FILES) \
|
2004-08-20 11:46:17 +02:00
|
|
|
$(LASSO_LIBS)
|
2004-08-05 17:12:06 +02:00
|
|
|
# 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
|
2004-09-07 19:07:59 +02:00
|
|
|
endif
|
|
|
|
|
2009-08-26 17:15:03 +02:00
|
|
|
errors.c: $(srcdir)/errors.h
|
2008-08-01 16:08:54 +02:00
|
|
|
python $(srcdir)/build_strerror.py $(srcdir) >$(srcdir)/.errors.c.new
|
2008-05-30 15:03:06 +02:00
|
|
|
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
|