From dfa5725cacd5afef4fcba2cdf1b321ca42eed8bc Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Mon, 10 Dec 2001 20:00:08 +0000 Subject: [PATCH] Support for the lexer test programs. --- gedcom/Makefile.am | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/gedcom/Makefile.am b/gedcom/Makefile.am index 4edd802..ee66964 100644 --- a/gedcom/Makefile.am +++ b/gedcom/Makefile.am @@ -44,6 +44,26 @@ lex.gedcom_hilo_.c: gedcom_hilo.lex 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 +lex.gedcom_1byte_.c: gedcom.tab.h gedcom_lex_common.c +lex.gedcom_hilo_.c: gedcom.tab.h gedcom_lex_common.c +lex.gedcom_lohi_.c: gedcom.tab.h gedcom_lex_common.c + +# Lexer test programs + +EXTRA_PROGRAMS = lexer_1byte lexer_hilo lexer_lohi +lexer_1byte_SOURCES = +lexer_1byte_LDADD = lex.gedcom_1byte_.test.o message.o encoding.o +lexer_hilo_SOURCES = +lexer_hilo_LDADD = lex.gedcom_hilo_.test.o message.o encoding.o +lexer_lohi_SOURCES = +lexer_lohi_LDADD = lex.gedcom_lohi_.test.o message.o encoding.o + +lex.gedcom_1byte_.test.o: lex.gedcom_1byte_.c + $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@ +lex.gedcom_hilo_.test.o: lex.gedcom_hilo_.c + $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@ +lex.gedcom_lohi_.test.o: lex.gedcom_lohi_.c + $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@ + +clean-local: + rm -f $(EXTRA_PROGRAMS) -- 2.30.2