Switch to autoconf/automake/libtool.

libtool is included as future preparation for exporting a library.
This commit is contained in:
Jeff Garzik
2016-07-29 06:27:45 -04:00
parent 32043a11c3
commit e1e9c6558c
9 changed files with 174 additions and 41 deletions

26
Makefile.am Normal file
View File

@ -0,0 +1,26 @@
ACLOCAL_AMFLAGS = -I build-aux/m4
AM_CFLAGS = -DYYDEBUG=1
bin_PROGRAMS = sql
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libsqlpars.pc
# TESTS = test/unitester
# noinst_PROGRAMS = $(TESTS)
EXTRA_DIST=sql.y sql.l
sql_SOURCES = exec.c sql-parser.h
nodist_sql_SOURCES = sql.c sql.tab.c sql.tab.h sql.lex.h
BUILT_SOURCES = $(nodist_sql_SOURCES)
CLEANFILES = $(nodist_sql_SOURCES) sql.output
sql.tab.c sql.tab.h: sql.y Makefile
${BISON} -vd $<
sql.c sql.lex.h: sql.l Makefile
${LEX} -o $@ $<