From 8049d751271b37d8f66ea482f96c09a286b9b06c Mon Sep 17 00:00:00 2001 From: Tadas Vilkeliskis Date: Thu, 11 Jun 2026 21:09:47 -0400 Subject: build: convert project to standard libtool library with pkg-config - Update tests and examples to link against libcsv_parser.la instead of compiling raw sources directly. - Add csv_parser.pc.in to generate pkg-config file for standard linking and library discovery by other projects. --- examples/Makefile.am | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/Makefile.am b/examples/Makefile.am index e5d43ab..8988ab2 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -2,10 +2,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/src bin_PROGRAMS = parser bench -parser_SOURCES = ../src/csv_parser.c \ - ../src/csv_parser.h \ - parser.c +parser_SOURCES = parser.c +parser_LDADD = $(top_builddir)/src/libcsv_parser.la -bench_SOURCES = ../src/csv_parser.c \ - ../src/csv_parser.h \ - bench.c +bench_SOURCES = bench.c +bench_LDADD = $(top_builddir)/src/libcsv_parser.la -- cgit v1.2.3