*.o
*~
-*.in
src/autoz-gui
COPYING
INSTALL
stamp-h1
.anjuta*
*.exe
+libautozgui.pc
+config.h.in
+libtool
+ltmain.sh
+.libs
+*.lo
+*.la
+.deps
-SUBDIRS = src data tests
+SUBDIRS = src library data tests
distclean-local:
if test "$(srcdir)" = "."; then :; else \
rm -f ChangeLog; \
fi
+EXTRA_DIST = libautozgui.pc.in
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libautozgui.pc
+
ChangeLog:
@echo Creating $@
@if test -d "$(srcdir)/.git"; then \
AC_CANONICAL_SYSTEM
+LT_INIT
+
+AC_LIBTOOL_WIN32_DLL
+
# Checks for programs.
AC_PROG_CC
+AC_PROG_LIBTOOL
+AC_PROG_RANLIB
# Checks for libraries.
PKG_CHECK_MODULES(AUTOZGUI, [libgda-ui-4.0 >= 4.1.0])
# Checks for library functions.
AC_CONFIG_FILES([
+ libautozgui.pc
Makefile
src/Makefile
+ library/Makefile
data/Makefile
data/autoz-gui/Makefile
data/autoz-gui/gui/Makefile
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: @PACKAGE_NAME@
+Description: Library with auto-gui interface.
+Version: @PACKAGE_VERSION@
+Requires: libgda-ui-4.0
+Libs: -L${libdir} -lautozgui
+Cflags: -I${includedir}
--- /dev/null
+guidir = $(datadir)/$(PACKAGE)/gui
+
+AM_CPPFLAGS = $(AUTOZGUI_CFLAGS) \
+ -DGUIDIR=\""$(guidir)"\" \
+ -DG_LOG_DOMAIN=\"AutozGui\"
+
+LIBS = $(AUTOZGUI_LIBS) \
+ -export-dynamic
+
+lib_LTLIBRARIES = libautozgui.la
+
+libautozgui_la_SOURCES = \
+ ../src/authorization.c \
+ ../src/authorizations.c \
+ ../src/resource.c \
+ ../src/resources.c \
+ ../src/role.c \
+ ../src/roles.c
+
+libautozgui_la_LDFLAGS = -no-undefined
+
+libautozgui_include_HEADERS = \
+ ../src/authorization.h \
+ ../src/authorizations.h \
+ ../src/commons.h \
+ ../src/resource.h \
+ ../src/resource.h \
+ ../src/role.h \
+ ../src/roles.h
+
+libautozgui_includedir = $(includedir)/libautozgui
p = strrchr (moddir, G_DIR_SEPARATOR);
if (p != NULL
- && g_ascii_strcasecmp (p + 1, "src") == 0)
+ && (g_ascii_strcasecmp (p + 1, "src") == 0
+ || g_ascii_strcasecmp (p + 1, ".libs") == 0))
{
commons->guidir = g_strdup (GUIDIR);
}