[latexila] Autotools: compile gedit source code as a static library
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Autotools: compile gedit source code as a static library
- Date: Tue, 4 Sep 2012 20:03:25 +0000 (UTC)
commit f0d31bc53fbd3bac1082bd1fb721186ea6bb489d
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Thu Aug 30 18:03:53 2012 +0200
Autotools: compile gedit source code as a static library
configure.ac | 1 +
src/Makefile.am | 8 ++++----
src/gedit/Makefile.am | 8 ++++++++
3 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 48a7d2b..1cce234 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,6 +89,7 @@ AC_DEFINE([DESKTOP_SCHEMAS],
# Generate files
AC_CONFIG_FILES([Makefile
src/Makefile
+ src/gedit/Makefile
src/resources/Makefile
README])
diff --git a/src/Makefile.am b/src/Makefile.am
index a78b98f..520fd76 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = resources
+SUBDIRS = gedit resources
bin_PROGRAMS = latexila
@@ -34,8 +34,6 @@ latexila_SOURCES = \
encodings.vala \
error_entry.vala \
file_browser.vala \
- gedit/gedit-close-button.c \
- gedit/gedit-close-button.h \
latexila.vala \
latex_menu.vala \
latex_post_processor.vala \
@@ -76,6 +74,8 @@ latexila_CPPFLAGS = \
latexila_LDFLAGS = $(LATEXILA_LIBS)
-latexila_LDADD = resources/libresources.la
+latexila_LDADD = \
+ gedit/libgedit.la \
+ resources/libresources.la
INCLUDES = -include config.h
diff --git a/src/gedit/Makefile.am b/src/gedit/Makefile.am
new file mode 100644
index 0000000..63ad3f4
--- /dev/null
+++ b/src/gedit/Makefile.am
@@ -0,0 +1,8 @@
+noinst_LTLIBRARIES = libgedit.la
+
+libgedit_la_CPPFLAGS = $(LATEXILA_CFLAGS)
+libgedit_la_LDFLAGS = $(LATEXILA_LIBS)
+
+libgedit_la_SOURCES = \
+ gedit-close-button.c \
+ gedit-close-button.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]