Switch to autoconf/automake/libtool.
libtool is included as future preparation for exporting a library.
This commit is contained in:
26
Makefile.am
Normal file
26
Makefile.am
Normal 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 $@ $<
|
||||
|
Reference in New Issue
Block a user