diff options
| author | Tadas Vilkeliskis <vilkeliskis.t@gmail.com> | 2026-06-11 21:09:47 -0400 |
|---|---|---|
| committer | Tadas Vilkeliskis <vilkeliskis.t@gmail.com> | 2026-06-11 21:09:47 -0400 |
| commit | 8049d751271b37d8f66ea482f96c09a286b9b06c (patch) | |
| tree | 91d0543a867cd408d531084000436676f47e3538 /examples/Makefile.am | |
| parent | 761d4f8d38cc0e1f5e438cad4a2d33e2ece37a68 (diff) | |
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.
Diffstat (limited to 'examples/Makefile.am')
| -rw-r--r-- | examples/Makefile.am | 10 |
1 files changed, 4 insertions, 6 deletions
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 |
