2008-05-27 17:27:30 +02:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|
2007-04-03 15:50:34 +02:00
|
|
|
SUBDIRS = xml id-ff id-wsf saml-2.0 id-wsf-2.0
|
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
|
|
|
|
2005-01-12 18:42:01 +01:00
|
|
|
liblassoinclude_HEADERS = export.h lasso.h lasso_config.h errors.h
|
2004-12-21 15:00:17 +01:00
|
|
|
BUILT_SOURCES = types.c symbols.sym
|
2004-03-23 18:00:23 +01:00
|
|
|
|
2005-01-12 18:42:01 +01:00
|
|
|
liblasso_la_SOURCES = lasso.c errors.c
|
2004-12-04 14:38:34 +01:00
|
|
|
|
2005-01-27 12:51:59 +01:00
|
|
|
if WSF_ENABLED
|
|
|
|
SYMBOLS_ARGS = -wsf
|
|
|
|
endif
|
|
|
|
|
2005-02-24 20:13:04 +01:00
|
|
|
types.c:
|
|
|
|
$(PYTHON) $(srcdir)/extract_types.py $(srcdir) $(SYMBOLS_ARGS)
|
|
|
|
|
2004-12-21 15:00:17 +01:00
|
|
|
symbols.sym:
|
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
|
|
|
|
2004-12-04 16:01:33 +01:00
|
|
|
clean-local:
|
2004-12-21 15:00:17 +01:00
|
|
|
-rm types.c symbols.sym
|
2004-12-04 16:01:33 +01:00
|
|
|
|
add a new headers <lasso/utils.h> with macros to handle memory like assigning a
gobject field (work flow, is you augment ref of the new value, decrease the one
from the old, and then assign), assigning strings, releasing lists of strings, of
gobjects,etc..
the free macros are all called g_release_somehting and they set the released
variable to NULL.
add a macro to validate GObject parameter types
This header is intended to concentre every bit of wisdom for handling pointers
and memory, try to use thoses macros in your code.
They are not intended to work with weak references (references you do not own),
so always g_object_ref in this case (or use g_assign_gobject that does it,
when your variable is not needed anymore to g_assign_gobject(var, NULL));
2008-05-22 16:54:13 +02:00
|
|
|
EXTRA_DIST = utils.h extract_types.py extract_symbols.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
|
|
|
|
|
2005-02-05 17:13:12 +01:00
|
|
|
.PHONY: types.c symbols.sym
|