bueno quedaron asi los make file pero ahi algo que no me cierra (ya compila)
configure.ac
Code:
dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta application wizard.
AC_INIT(gtk_lcdspicer, 0.1, http://lcdspicer.sourceforge.net/)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
AC_ISC_POSIX
AC_PROG_CXX
AM_PROG_CC_STDC
AC_HEADER_STDC
dnl ***************************************************************************
dnl Internatinalization
dnl ***************************************************************************
GETTEXT_PACKAGE=gtk_lcdspicer
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL([0.35.0])
AM_PROG_LIBTOOL
PKG_CHECK_MODULES(GTK_LCDSPICER, [gtkmm-2.4 >= 2.8 libglademm-2.4 >= 2.6 ], , [
AC_MSG_RESULT(no)
AC_MSG_ERROR([
You must have the gtkmm 2.4 development headers installed to build.
If you have these installed already you may need to install pkg-config so
I can find them.
])])
PKG_CHECK_MODULES(PLUGIN_SYSTEM, [libstatgrab >= 0.16 libgtop-2.0 >= 2.24 glib-2.0 >= 2.18], , [
AC_MSG_RESULT(no)
AC_MSG_ERROR([
You must have the libstatgrab 0.16, libgtop 2.0 and glib 2.0 development headers installed to build.
If you have these installed already you may need to install pkg-config so
I can find them.
])])
PKG_CHECK_MODULES(DBCOMM, [sqlite3 >= 3.5.9], , [
AC_MSG_RESULT(no)
AC_MSG_ERROR([
You must have the sqlite3 3.5.9 development headers installed to build.
If you have these installed already you may need to install pkg-config so
I can find them.
])])
AC_OUTPUT([
Makefile
shared/Makefile
po/Makefile.in
plugins/Makefile
gtk_lcdspicer/Makefile
])
makefile raiz:
Code:
## Process this file with automake to produce Makefile.in
## Created by Anjuta
SUBDIRS = po \
shared \
gtk_lcdspicer \
plugins
gtk_lcdspicerdocdir = ${prefix}/doc/gtk_lcdspicer
gtk_lcdspicerdoc_DATA = \
README\
COPYING\
AUTHORS\
ChangeLog\
INSTALL\
NEWS
configdir = $(sysconfdir)
desktopdir = $(datadir)/applications
#Configuration fike
config_DATA = gtk_lcdspicer.conf
#Menu item
desktop_DATA = gtk_lcdspicer.desktop
EXTRA_DIST = \
$(gtk_lcdspicerdoc_DATA) \
$(config_DATA) \
$(desktop_DATA)
INCLUDES = -I$(top_srcdir)/libs -I$(top_srcdir)/plugins \
-I$(top_srcdir)/gtk_lcdspicer
# Copy all the spec files. Of cource, only one is actually used.
dist-hook:
for specfile in *.spec; do \
if test -f $$specfile; then \
cp -p $$specfile $(distdir); \
fi \
done
makefile gtk_lcdspicer
Code:
## Process this file with automake to produce Makefile.in
## Created by Anjuta
INCLUDES = \
-I$(top_srcdir)/gtk_lcdspicer \
-I$(top_srcdir)/shared
#AM
gtk_lcdspicer_CPPFLAGS = \
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
$(GTK_LCDSPICER_CFLAGS)
lcdspicer_CPPFLAGS = \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
-DPACKAGE_DATA_DIR=\""$(datadir)"\"
AM_CFLAGS =\
-Wall\
-g
bin_PROGRAMS = \
gtk_lcdspicer \
lcdspicer
lcdspicer_SOURCES = \
datos.cpp \
datos.hpp \
lcd.cpp \
lcd.hpp \
lcd_writer.cpp \
lcd_writer.hpp \
plugin.cpp \
plugin.hpp \
lcdspicer.cpp \
lcdspicer.hpp
lcdspicer_LDADD = \
$(top_builddir)/shared/libsocks.a \
$(top_builddir)/shared/libscreens.a \
$(top_builddir)/shared/libwidgets.a \
$(top_builddir)/shared/libdatabase.a \
-ldl \
-lsqlite3
gtk_lcdspicer_SOURCES = \
gtk_lcdspicer.cpp\
gtk_lcdspicer.hpp \
gui.cpp \
gui.hpp
gtk_lcdspicer_LDADD = \
$(GTK_LCDSPICER_LIBS)
SUBDIRS = \
glade
makefile gtk_lcdspicer/glade
Code:
## File created by the gnome-build tools
gladedir = $(datadir)/gtk_lcdspicer/glade
imagesdir = $(datadir)/gtk_lcdspicer/glade
glade_DATA = gtk_lcdspicer.glade
images_DATA = \
lcdspicericon120.png\
LCDSpicerLogo.png
EXTRA_DIST = \
$(images_DATA) \
$(glade_DATA)
## = $(datadir)/pixmaps/pidgin/buttons
makefile shared
Code:
lib_LIBRARIES = \
libdatabase.a \
libwidgets.a \
libscreens.a \
libarchivos.a \
libsocks.a
libdatabase_a_SOURCES = \
database.cpp \
database.hpp
libdatabase_a_LIBADD = \
$(DBCOMM_CFLAGS)
libsocks_a_SOURCES = \
socks.cpp \
socks.hpp
libarchivos_a_SOURCES = \
archivo.cpp \
archivo.hpp
libscreens_a_SOURCES = \
screens.cpp \
screens.hpp
libscreens_a_LIBADD = \
$(top_builddir)/shared/libdatabase.a
libwidgets_a_SOURCES = \
widget.cpp \
widget.hpp
libwidgets_a_LIBADD = \
$(top_builddir)/shared/libdatabase.a
## File created by the gnome-build tools
makefile plugin
Code:
## File created by the gnome-build tools
INCLUDES = -I$(top_srcdir)/shared
pluginsdir = \
$(datadir)/gtk_lcdspicer/plugins
plugins_LTLIBRARIES = \
system.la
system_la_SOURCES = \
system.cpp \
system.hpp
system_la_LIBADD = \
$(top_builddir)/shared/libarchivos.a \
$(PLUGIN_SYSTEM_LIBS)
system_la_LDFLAGS = \
-module \
-avoid-version
AM_CPPFLAGS = \
$(PLUGIN_SYSTEM_CFLAGS)
lo que no me cierra es porque si libdatabase.a compila bien, despues en lcdspicer me pide que ponga libdatabase.a y -lsqlite3, si no los pongo falla, pero libdatabase.a que es el que los usa compila 100%, no entiendo eso.
Bueno si ven algo que este mal me dicen voy a reparar unos errores de codigo (que se generaron por el toqueteo que le di )
Bookmarks