]> saetta.ns0.it Git - solipa/organigramma/commitdiff
Compilazione come libreria (closes #103).
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Tue, 27 Nov 2012 14:44:11 +0000 (15:44 +0100)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Tue, 27 Nov 2012 14:44:11 +0000 (15:44 +0100)
.gitignore
Makefile.am
configure.ac
liborganigramma.pc.in [new file with mode: 0644]
libreria/Makefile.am [new file with mode: 0644]

index 5fbe73017dd1418e8849ee88cc4306fd9e559f51..b43314307e77de06309e0b9815ae6c65455cb8dd 100644 (file)
@@ -1,6 +1,7 @@
 *.o
 *~
-*.in
+config.h.in
+liborganigramma.pc
 src/organigramma
 COPYING
 INSTALL
@@ -17,7 +18,12 @@ configure
 depcomp
 install-sh
 missing
-src/.deps/
+.deps
+.libs
+*.la
+*.lo
+libtool
+ltmain.sh
 stamp-h1
 .anjuta*
 *exe
index db05b3fbd90906b68d5258a62915588bee2aaf99..7563e9bb19ea43f457ddc33e78799c645c1e9f1e 100644 (file)
@@ -1,10 +1,15 @@
-SUBDIRS = src data docs
+SUBDIRS = src libreria data docs
 
 distclean-local:
        if test "$(srcdir)" = "."; then :; else \
                rm -f ChangeLog; \
        fi
 
+EXTRA_DIST = liborganigramma.pc.in
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = liborganigramma.pc
+
 ChangeLog:
        @echo Creating $@
        @if test -d "$(srcdir)/.git"; then \
index 7a5d4354418f4e7dc188dc0b48042e3540310ab9..65bd891189a5f539c01ea5f1078d657477b62037 100644 (file)
@@ -14,8 +14,14 @@ AM_MAINTAINER_MODE
 
 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(ORGANIGRAMMA, [gio-2.0 >= 2.20
@@ -33,8 +39,10 @@ AC_SUBST(ORGANIGRAMMA_LIBS)
 # Checks for library functions.
 
 AC_CONFIG_FILES([
+       liborganigramma.pc
        Makefile
        src/Makefile
+       libreria/Makefile
        data/Makefile
        data/organigramma/Makefile
        data/organigramma/form/Makefile
diff --git a/liborganigramma.pc.in b/liborganigramma.pc.in
new file mode 100644 (file)
index 0000000..4da5e93
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: @PACKAGE_NAME@
+Description: Libreria con l'interfaccia per la gestione dell'organigramma.
+Version: @PACKAGE_VERSION@
+Requires: glib-2.0 gtk+-2.0 libgda-ui-4.0 libgdaex libgtkform libgtkformui libaute libautoz libsolipa
+Libs: -L${libdir} -lorganigramma
+Cflags: -I${includedir}
diff --git a/libreria/Makefile.am b/libreria/Makefile.am
new file mode 100644 (file)
index 0000000..5e81ca0
--- /dev/null
@@ -0,0 +1,89 @@
+guidir = $(datadir)/$(PACKAGE)/gui
+formdir = $(datadir)/$(PACKAGE)/form
+
+AM_CPPFLAGS = $(ORGANIGRAMMA_CFLAGS) \
+              -DGUIDIR=\""$(guidir)"\" \
+              -DFORMDIR=\""$(formdir)"\" \
+              -DG_LOG_DOMAIN=\"Organigramma\"
+
+LIBS = $(ORGANIGRAMMA_LIBS) \
+       -export-dynamic
+
+lib_LTLIBRARIES = liborganigramma.la
+
+liborganigramma_la_SOURCES = \
+                ../src/nodi.c \
+                ../src/nodo.c \
+                ../src/persona.c \
+                ../src/persone.c \
+                ../src/personaincarico.c \
+                ../src/personanodo.c \
+                ../src/personanodorecapito.c \
+                ../src/personarecapito.c \
+                ../src/personaufficio.c \
+                ../src/personaufficiorecapito.c \
+                ../src/posizioneeconomica.c \
+                ../src/posizionieconomiche.c \
+                ../src/profiliprofessionali.c \
+                ../src/profiloprofessionale.c \
+                ../src/struttura.c \
+                ../src/strutturaindirizzo.c \
+                ../src/strutture.c \
+                ../src/tipinodo.c \
+                ../src/tipiprestazione.c \
+                ../src/tipirapportolavoro.c \
+                ../src/tipirecapito.c \
+                ../src/tiponodo.c \
+                ../src/tipoprestazione.c \
+                ../src/tiporapportolavoro.c \
+                ../src/tiporecapito.c \
+                ../src/titoli.c \
+                ../src/titolo.c \
+                ../src/uffici.c \
+                ../src/ufficio.c \
+                ../src/ufficionodo.c \
+                ../src/ufficioorario.c \
+                ../src/ufficiorecapito.c \
+                ../src/ufficiostanza.c \
+                ../src/vie.c
+
+liborganigramma_la_LDFLAGS = -no-undefined
+
+liborganigramma_include_HEADERS = \
+                ../src/commons.h \
+                ../src/nodi.h \
+                ../src/nodo.h \
+                ../src/persona.h \
+                ../src/persone.h \
+                ../src/personaincarico.h \
+                ../src/personanodo.h \
+                ../src/personanodorecapito.h \
+                ../src/personarecapito.h \
+                ../src/personaufficio.h \
+                ../src/personaufficiorecapito.h \
+                ../src/posizioneeconomica.h \
+                ../src/posizionieconomiche.h \
+                ../src/profiliprofessionali.h \
+                ../src/profiloprofessionale.h \
+                ../src/struttura.h \
+                ../src/strutturaindirizzo.h \
+                ../src/strutture.h \
+                ../src/tipinodo.h \
+                ../src/tipiprestazione.h \
+                ../src/tipirapportolavoro.h \
+                ../src/tipirecapito.h \
+                ../src/tiponodo.h \
+                ../src/tipoprestazione.h \
+                ../src/tiporapportolavoro.h \
+                ../src/tiporecapito.h \
+                ../src/titoli.h \
+                ../src/titolo.h \
+                ../src/uffici.h \
+                ../src/ufficio.h \
+                ../src/ufficionodo.h \
+                ../src/ufficioorario.h \
+                ../src/ufficiorecapito.h \
+                ../src/ufficiostanza.h \
+                ../src/vie.h
+
+liborganigramma_includedir = $(includedir)/liborganigramma