Use of autoconf/automake.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 9 Dec 2001 17:18:15 +0000 (17:18 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 9 Dec 2001 17:18:15 +0000 (17:18 +0000)
AUTHORS [new file with mode: 0644]
Makefile.am [new file with mode: 0644]
NEWS [new file with mode: 0644]
README [new file with mode: 0644]
ansel/Makefile.am [new file with mode: 0644]
configure.in [new file with mode: 0644]
doc/Makefile.am [new file with mode: 0644]
gedcom/Makefile.am [new file with mode: 0644]
include/Makefile.am [new file with mode: 0644]
t/Makefile.am [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
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 (file)
index 0000000..f3b4d3d
--- /dev/null
@@ -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 (file)
index 0000000..44ca7de
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,2 @@
+# $Id$
+# $Name$
diff --git a/README b/README
new file mode 100644 (file)
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 (file)
index 0000000..10898c8
--- /dev/null
@@ -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 (file)
index 0000000..d566173
--- /dev/null
@@ -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 (file)
index 0000000..4da9c18
--- /dev/null
@@ -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 (file)
index 0000000..4edd802
--- /dev/null
@@ -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 (file)
index 0000000..180b31f
--- /dev/null
@@ -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 (file)
index 0000000..e8ebd64
--- /dev/null
@@ -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)