From c90274f2cb20e88a79f625376abb5cb33d3a2462 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sun, 9 Dec 2001 15:32:06 +0000 Subject: [PATCH] Converted to automake/autoconf. --- Makefile | 43 --------------------------- ansel/Makefile | 20 ------------- gedcom/Makefile | 79 ------------------------------------------------- 3 files changed, 142 deletions(-) delete mode 100644 Makefile delete mode 100644 ansel/Makefile delete mode 100644 gedcom/Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index 87673b7..0000000 --- a/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -# $Id$ -# $Name$ - -DMALLOC_CFLAGS= -DMALLOC_LOADLIBES= -CFLAGS=-g -W -Wall -pedantic $(DMALLOC_CFLAGS) -CPPFLAGS=-I ./include -YFLAGS=--debug --defines -LFLAGS=-8 -LOADLIBES=$(DMALLOC_LOADLIBES) -LDFLAGS_GEDCOM=-Lgedcom/.libs - -all: ansel_module libgedcom gedcom_parse - -gedcom_parse: standalone.o - $(CC) $(LDFLAGS) $(LDFLAGS_GEDCOM) -lgedcom $^ $(LOADLIBES) $(LDLIBS) -o $@ - -libgedcom: - cd gedcom && $(MAKE) DMALLOC_CFLAGS=$(DMALLOC_CFLAGS) \ - DMALLOC_LOADLIBES=$(DMALLOC_LOADLIBES) - -ansel_module: - cd ansel && $(MAKE) - -.PHONY: clean -clean: - rm -f core gedcom_parse *.o logfile - cd gedcom && $(MAKE) clean - cd ansel && $(MAKE) clean - -# Test of parser - -test: all - @export GCONV_PATH=./ansel; \ - export LD_LIBRARY_PATH=gedcom/.libs; \ - for file in t/*.ged; do \ - echo "=== testing $$file"; \ - ./gedcom_parse -2 $$file; \ - done - -testmem: DMALLOC_CFLAGS=-DMALLOC -testmem: DMALLOC_LOADLIBES=-ldmalloc -testmem: clean test diff --git a/ansel/Makefile b/ansel/Makefile deleted file mode 100644 index da733bd..0000000 --- a/ansel/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# $Id$ -# $Name$ - -LIBTOOL=libtool -MODPATH=/usr/local/lib -MODULES=ANSI_Z39.47.so -CFLAGS=-g - -all: $(MODULES) - -%.so: %.lo - $(LIBTOOL) $(CC) -module -avoid-version $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $*.la -rpath $(MODPATH) - mv .libs/$@ $@ - -%.lo: %.c - $(LIBTOOL) $(CC) -c $(CPPFLAGS) $(CFLAGS) $^ - -clean: - rm -rf .libs - rm -f *.o *.lo *.la *.so diff --git a/gedcom/Makefile b/gedcom/Makefile deleted file mode 100644 index 5111379..0000000 --- a/gedcom/Makefile +++ /dev/null @@ -1,79 +0,0 @@ -# $Id$ -# $Name$ - -LIBTOOL=libtool -YACC=bison -LEX=flex - -LIBPATH=/usr/local/lib -DMALLOC_CFLAGS= -DMALLOC_LOADLIBES= -CFLAGS=-g -W -Wall -pedantic $(DMALLOC_CFLAGS) -CPPFLAGS=-I ../include -YFLAGS=--debug --defines -LFLAGS=-8 -LOADLIBES=$(DMALLOC_LOADLIBES) - -all: libgedcom.so - -libgedcom.so: lex.gedcom_1byte_.lo lex.gedcom_hilo_.lo lex.gedcom_lohi_.lo \ - gedcom.tab.lo message.lo multilex.lo encoding.lo interface.lo - $(LIBTOOL) $(CC) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o libgedcom.la -rpath $(LIBPATH) - rm -f libgedcom.so - ln -s .libs/libgedcom.so.0.0.0 libgedcom.so - -%.lo: %.c - $(LIBTOOL) $(CC) -c $(CPPFLAGS) $(CFLAGS) $^ - -lex.gedcom_1byte_.c: gedcom_1byte.lex gedcom.tab.h gedcom_internal.h \ - multilex.h ../include/gedcom.h \ - gedcom_lex_common.c encoding.h - $(LEX) $(LFLAGS) -Pgedcom_1byte_ gedcom_1byte.lex - -lex.gedcom_hilo_.c: gedcom_hilo.lex gedcom.tab.h gedcom_internal.h \ - multilex.h ../include/gedcom.h \ - gedcom_lex_common.c encoding.h - $(LEX) $(LFLAGS) -Pgedcom_hilo_ gedcom_hilo.lex - -lex.gedcom_lohi_.c: gedcom_lohi.lex gedcom.tab.h gedcom_internal.h \ - multilex.h ../include/gedcom.h \ - gedcom_lex_common.c encoding.h - $(LEX) $(LFLAGS) -Pgedcom_lohi_ gedcom_lohi.lex - -gedcom.tab.c gedcom.tab.h: gedcom.y gedcom_internal.h ../include/gedcom.h - $(YACC) $(YFLAGS) --name-prefix=gedcom_ gedcom.y -.PHONY: clean -clean: - rm -f lexer_* *.o *.lo *.la .libs/* lex.gedcom_* \ - gedcom.tab.* gedcom.output libgedcom.so - rm -rf .libs - -# Lexer test programs - -lexer_1byte: lex.gedcom_1byte_.test.o message.o encoding.o - $(CC) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@ - -lex.gedcom_1byte_.test.o: lex.gedcom_1byte_.c - $(CC) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $^ -o $@ - -test_1byte: lexer_1byte - cat t/allged.ged | ./lexer_1byte - -lexer_hilo: lex.gedcom_hilo_.test.o message.o encoding.o - $(CC) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@ - -lex.gedcom_hilo_.test.o: lex.gedcom_hilo_.c - $(CC) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $^ -o $@ - -test_hilo: lexer_hilo - cat t/uhlcl.ged | ./lexer_hilo - -lexer_lohi: lex.gedcom_lohi_.test.o message.o encoding.o - $(CC) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@ - -lex.gedcom_lohi_.test.o: lex.gedcom_lohi_.c - $(CC) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $^ -o $@ - -test_lohi: lexer_lohi - cat t/ulhcl.ged | ./lexer_lohi - -- 2.30.2