From 15b7fc321087729ec9665b654f308a17b45dea8e Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sun, 9 Dec 2001 17:18:15 +0000 Subject: [PATCH] Use of autoconf/automake. --- AUTHORS | 2 ++ Makefile.am | 13 ++++++++++++ NEWS | 2 ++ README | 2 ++ ansel/Makefile.am | 15 ++++++++++++++ configure.in | 37 ++++++++++++++++++++++++++++++++++ doc/Makefile.am | 10 +++++++++ gedcom/Makefile.am | 49 +++++++++++++++++++++++++++++++++++++++++++++ include/Makefile.am | 4 ++++ t/Makefile.am | 18 +++++++++++++++++ 10 files changed, 152 insertions(+) create mode 100644 AUTHORS create mode 100644 Makefile.am create mode 100644 NEWS create mode 100644 README create mode 100644 ansel/Makefile.am create mode 100644 configure.in create mode 100644 doc/Makefile.am create mode 100644 gedcom/Makefile.am create mode 100644 include/Makefile.am create mode 100644 t/Makefile.am diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..44ca7de --- /dev/null +++ b/AUTHORS @@ -0,0 +1,2 @@ +# $Id$ +# $Name$ diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..f3b4d3d --- /dev/null +++ b/Makefile.am @@ -0,0 +1,13 @@ +## Process this file with automake to produce Makefile.in +# $Id$ +# $Name$ +SUBDIRS = ansel gedcom . t doc include +INCLUDES = -I $(srcdir)/include + +pkgdata_DATA = gedcom.enc +noinst_PROGRAMS = testgedcom + +testgedcom_SOURCES = standalone.c +testgedcom_LDFLAGS = -L gedcom/.libs -lgedcom + +EXTRA_DIST = $(pkgdata_DATA) diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..44ca7de --- /dev/null +++ b/NEWS @@ -0,0 +1,2 @@ +# $Id$ +# $Name$ diff --git a/README b/README new file mode 100644 index 0000000..44ca7de --- /dev/null +++ b/README @@ -0,0 +1,2 @@ +# $Id$ +# $Name$ diff --git a/ansel/Makefile.am b/ansel/Makefile.am new file mode 100644 index 0000000..10898c8 --- /dev/null +++ b/ansel/Makefile.am @@ -0,0 +1,15 @@ +## Process this file with automake to produce Makefile.in +# $Id$ +# $Name$ +CFLAGS = -g +libdir = $(pkgdatadir) + +pkgdata_DATA = gconv-modules + +lib_LTLIBRARIES = ANSI_Z39.47.la + +ANSI_Z39_47_la_LDFLAGS = -module -avoid-version +ANSI_Z39_47_la_SOURCES = ANSI_Z39.47.c +EXTRA_DIST = loop.c \ + skeleton.c \ + $(pkgdata_DATA) diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..d566173 --- /dev/null +++ b/configure.in @@ -0,0 +1,37 @@ +# Process this file with autoconf to produce a configure script. +# $Id$ +# $Name$ +AC_INIT(standalone.c) + +dnl ============================================================= +dnl Global variables +NAME=gedcom-parse +VERSION=0.10 +LIBVERSION=0:1 +SHELL=/bin/sh +AC_SUBST(NAME) +AC_SUBST(VERSION) +AC_SUBST(SHELL) +AC_SUBST(LIBVERSION) + +dnl ============================================================= +AM_INIT_AUTOMAKE(${NAME},${VERSION}) + +AC_PROG_CC +AM_PROG_LIBTOOL +AM_PROG_LEX +AC_PROG_YACC +if test "$YACC" = "bison -y"; then + AC_MSG_WARN([We'll remove the -y option here]) + YACC=bison +else + AC_MSG_ERROR([Sorry, bison is needed]) +fi +AM_WITH_DMALLOC + +AC_OUTPUT(Makefile + gedcom/Makefile + ansel/Makefile + t/Makefile + doc/Makefile + include/Makefile) diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..4da9c18 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,10 @@ +## Process this file with automake to produce Makefile.in +# $Id$ +# $Name$ + +EXTRA_DIST=parser.html + +dist-hook: + mkdir $(distdir)/images + cp -p $(srcdir)/images/schema.obj $(srcdir)/images/schema.png \ + $(distdir)/images diff --git a/gedcom/Makefile.am b/gedcom/Makefile.am new file mode 100644 index 0000000..4edd802 --- /dev/null +++ b/gedcom/Makefile.am @@ -0,0 +1,49 @@ +## Process this file with automake to produce Makefile.in +# $Id$ +# $Name$ + +INCLUDES = -I $(srcdir)/../include -DPKGDATADIR=\"$(pkgdatadir)\" +YFLAGS = --debug --defines --name-prefix=gedcom_ +LFLAGS = -8 +CFLAGS = -g -O2 -W -Wall -pedantic + +lib_LTLIBRARIES = libgedcom.la +libgedcom_la_SOURCES = lex.gedcom_1byte_.c \ + lex.gedcom_hilo_.c \ + lex.gedcom_lohi_.c \ + gedcom.tab.c \ + message.c \ + multilex.c \ + encoding.c \ + interface.c +libgedcom_la_LDFLAGS = -version-info $(LIBVERSION) +BUILT_SOURCES = lex.gedcom_1byte_.c \ + lex.gedcom_hilo_.c \ + lex.gedcom_lohi_.c \ + gedcom.tab.c \ + gedcom.tab.h +noinst_HEADERS = encoding.h \ + gedcom_internal.h \ + interface.h \ + multilex.h +EXTRA_DIST = gedcom.y \ + gedcom_1byte.lex \ + gedcom_hilo.lex \ + gedcom_lohi.lex \ + gedcom_lex_common.c + +gedcom.tab.c gedcom.tab.h: gedcom.y + $(YACC) $(YFLAGS) --name-prefix=gedcom_ $< + +lex.gedcom_1byte_.c: gedcom_1byte.lex + $(LEX) $(LFLAGS) -Pgedcom_1byte_ $< + +lex.gedcom_hilo_.c: gedcom_hilo.lex + $(LEX) $(LFLAGS) -Pgedcom_hilo_ $< + +lex.gedcom_lohi_.c: gedcom_lohi.lex + $(LEX) $(LFLAGS) -Pgedcom_lohi_ $< + +lex.gedcom_1byte_.c: gedcom.tab.h +lex.gedcom_hilo_.c: gedcom.tab.h +lex.gedcom_lohi_.c: gedcom.tab.h diff --git a/include/Makefile.am b/include/Makefile.am new file mode 100644 index 0000000..180b31f --- /dev/null +++ b/include/Makefile.am @@ -0,0 +1,4 @@ +## Process this file with automake to produce Makefile.in +# $Id$ +# $Name$ +include_HEADERS = gedcom.h diff --git a/t/Makefile.am b/t/Makefile.am new file mode 100644 index 0000000..e8ebd64 --- /dev/null +++ b/t/Makefile.am @@ -0,0 +1,18 @@ +## Process this file with automake to produce Makefile.in +# $Id$ +# $Name$ + +TEST_SCRIPT=test_script + +TESTS_ENVIRONMENT=$(srcdir)/$(TEST_SCRIPT) +TESTS = allged.ged \ + ansel.ged \ + uhlbomcl.ged \ + uhlcl.ged \ + ulhbomcl.ged \ + ulhc.ged \ + ulhcl.ged \ + ulhl.ged \ + ulhlc.ged + +EXTRA_DIST=$(TEST_SCRIPT) $(TESTS) -- 2.30.2