From: Thadeu Lima de Souza Cascardo Date: Sun, 27 Jan 2008 01:35:29 +0000 (-0200) Subject: Autoconf and automake building support. X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fatompub.git;a=commitdiff_plain;h=793b50fdd4ace03e841ccf6d0116ad0f955c970e Autoconf and automake building support. --- diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..9f33783 --- /dev/null +++ b/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = include config backend atom iri src diff --git a/atom/Makefile.am b/atom/Makefile.am new file mode 100644 index 0000000..6b8838a --- /dev/null +++ b/atom/Makefile.am @@ -0,0 +1,3 @@ +noinst_LTLIBRARIES = libatom.la +libatom_la_SOURCES = entry.c +libatom_la_CFLAGS = -I$(top_srcdir)/include $(GLIB_CFLAGS) diff --git a/backend/Makefile.am b/backend/Makefile.am new file mode 100644 index 0000000..21c53b6 --- /dev/null +++ b/backend/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = files diff --git a/backend/files/Makefile.am b/backend/files/Makefile.am new file mode 100644 index 0000000..f890b09 --- /dev/null +++ b/backend/files/Makefile.am @@ -0,0 +1,3 @@ +noinst_LTLIBRARIES = libgiochannel.la +libgiochannel_la_SOURCES = giochannel.c +libgiochannel_la_CFLAGS = -I$(top_srcdir)/include $(GLIB_CFLAGS) diff --git a/config/Makefile.am b/config/Makefile.am new file mode 100644 index 0000000..f778d19 --- /dev/null +++ b/config/Makefile.am @@ -0,0 +1,3 @@ +noinst_LTLIBRARIES = libgkeyfile.la +libgkeyfile_la_SOURCES = gkeyfile.c +libgkeyfile_la_CFLAGS = -I$(top_srcdir)/include $(GLIB_CFLAGS) diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..607525c --- /dev/null +++ b/configure.ac @@ -0,0 +1,16 @@ +AC_INIT(atompub, 0.1, cascardo@holoscopio.com) +AM_INIT_AUTOMAKE +AC_PROG_INSTALL +AC_PROG_CC +AM_PROG_CC_C_O +AC_PROG_LIBTOOL +AM_PATH_GLIB_2_0(2.14.0, , AC_MSG_ERROR(Could not find GLib)) +AC_OUTPUT(Makefile + src/Makefile + include/Makefile + include/atompub/Makefile + config/Makefile + backend/Makefile + backend/files/Makefile + atom/Makefile + iri/Makefile) diff --git a/include/Makefile.am b/include/Makefile.am new file mode 100644 index 0000000..cf7748e --- /dev/null +++ b/include/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = atompub diff --git a/include/atompub/Makefile.am b/include/atompub/Makefile.am new file mode 100644 index 0000000..706ad3d --- /dev/null +++ b/include/atompub/Makefile.am @@ -0,0 +1 @@ +include_HEADERS = atom.h config.h ctx.h entry.h error.h feed.h iri.h diff --git a/iri/Makefile.am b/iri/Makefile.am new file mode 100644 index 0000000..bedcb44 --- /dev/null +++ b/iri/Makefile.am @@ -0,0 +1,3 @@ +noinst_LTLIBRARIES = libiri.la +libiri_la_SOURCES = iri.c +libiri_la_CFLAGS = -I$(top_srcdir)/include $(GLIB_CFLAGS) diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..ae7253e --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,9 @@ +bin_PROGRAMS = atompub +atompub_SOURCES = main.c config.c ctx.c +atompub_CFLAGS = -I$(top_srcdir)/include +atompub_CFLAGS += $(GLIB_CFLAGS) +atompub_LDADD = -L$(top_builddir)/backend/files -lgiochannel +atompub_LDADD += -L$(top_builddir)/config -lgkeyfile +atompub_LDADD += -L$(top_builddir)/atom -latom +atompub_LDADD += -L$(top_builddir)/iri -liri +atompub_LDADD += $(GLIB_LIBS)