]> saetta.ns0.it Git - solipa/territorio/commitdiff
Utilizzo della libreria anche per l'eseguibile.
authorAndrea Zagli <azagli@libero.it>
Mon, 26 Dec 2016 18:35:18 +0000 (19:35 +0100)
committerAndrea Zagli <azagli@libero.it>
Mon, 26 Dec 2016 18:35:18 +0000 (19:35 +0100)
Makefile.am
libreria/Makefile.am
src/Makefile.am

index f03852c66752c7fb613f52bb14287665aa7aafed..937f2b4a9232c9b95f29c25b73df10f78dab66e9 100644 (file)
@@ -1,4 +1,4 @@
-SUBDIRS = src libreria data docs tests
+SUBDIRS = libreria src data docs tests
 
 distclean-local:
        if test "$(srcdir)" = "."; then :; else \
index a44251a8dba0afbef607f2822497cf98fd43edf0..19e154024398164a86d3b8ed7bfb161f4a2a0aa9 100644 (file)
@@ -1,9 +1,13 @@
 guidir = $(datadir)/$(PACKAGE)/gui
 formdir = $(datadir)/$(PACKAGE)/form
+imagesdir = $(datadir)/$(PACKAGE)/images
+queryeditordir = $(datadir)/$(PACKAGE)/queryeditor
 
 AM_CPPFLAGS = $(TERRITORIO_CFLAGS) \
               -DGUIDIR=\""$(guidir)"\" \
               -DFORMDIR=\""$(formdir)"\" \
+              -DIMAGESDIR=\""$(imagesdir)"\" \
+              -DQUERYEDITORDIR=\""$(queryeditordir)"\" \
               -DG_LOG_DOMAIN=\"Territorio\" \
               -DSOLIPA_FOUND=1
 
@@ -18,6 +22,10 @@ libterritorio_la_SOURCES = \
                 ../src/commons.c \
                 ../src/comune.c \
                 ../src/comuni.c \
+                ../src/importacapcomuniitaliani.c \
+                ../src/importacomuniistat.c \
+                ../src/importaregioniprovinceistat.c \
+                ../src/importaviecivilia.c \
                 ../src/province.c \
                 ../src/provincia.c \
                 ../src/regione.c \
@@ -42,6 +50,10 @@ libterritorio_include_HEADERS = \
                 ../src/commons.h \
                 ../src/comune.h \
                 ../src/comuni.h \
+                ../src/importacapcomuniitaliani.h \
+                ../src/importacomuniistat.h \
+                ../src/importaregioniprovinceistat.h \
+                ../src/importaviecivilia.h \
                 ../src/province.h \
                 ../src/provincia.h \
                 ../src/ricercacomuni.h \
index c0f3938ff6e1b0448e256651e550f46f5a52197b..ec6b88a03d347dd17657a41563f300fc21f51754 100644 (file)
@@ -1,16 +1,20 @@
 guidir = $(datadir)/$(PACKAGE)/gui
 formdir = $(datadir)/$(PACKAGE)/form
+imagesdir = $(datadir)/$(PACKAGE)/images
 queryeditordir = $(datadir)/$(PACKAGE)/queryeditor
 
 AM_CPPFLAGS = $(TERRITORIO_CFLAGS) \
               -DGUIDIR=\""$(guidir)"\" \
               -DFORMDIR=\""$(formdir)"\" \
+              -DIMAGESDIR=\""$(imagesdir)"\" \
               -DQUERYEDITORDIR=\""$(queryeditordir)"\" \
               -DSOLIPA_FOUND=1
 
 LIBS = $(TERRITORIO_LIBS) \
        -export-dynamic
 
+LDADD = $(top_builddir)/libreria/libterritorio.la
+
 .rc.o:
        $(WINDRES) $^ -o $@
 
@@ -20,55 +24,7 @@ resources.o: resources.rc
 bin_PROGRAMS = territorio
 
 territorio_SOURCES = \
-                aggregazioneterritoriale.c \
-                aggregazioneterritoriale.h \
-                aggregazioniterritoriali.c \
-                aggregazioniterritoriali.h \
-                commons.c \
-                commons.h \
-                comune.c \
-                comune.h \
-                comuni.c \
-                comuni.h \
-                importacapcomuniitaliani.c \
-                importacapcomuniitaliani.h \
-                importacomuniistat.c \
-                importacomuniistat.h \
-                importaregioniprovinceistat.c \
-                importaregioniprovinceistat.h \
-                importaviecivilia.c \
-                importaviecivilia.h \
-                main.c \
-                province.c \
-                province.h \
-                provincia.c \
-                provincia.h \
-                regione.c \
-                regione.h \
-                regioni.c \
-                regioni.h \
-                ricercacomuni.c \
-                ricercacomuni.h \
-                ricercaprovince.c \
-                ricercaprovince.h \
-                ricercavie.c \
-                ricercavie.h \
-                stati.c \
-                stati.h \
-                statiqe.c \
-                statiqe.h \
-                stato.c \
-                stato.h \
-                tipiaggregazioneterritoriale.c \
-                tipiaggregazioneterritoriale.h \
-                tipoaggregazioneterritoriale.c \
-                tipoaggregazioneterritoriale.h \
-                via.c \
-                via.h \
-                vie.c \
-                vie.h \
-                widget.c \
-                widget.h
+                main.c
 
 if PLATFORM_WIN32
 EXTRALDFLAGS=-mconsole -mwindows