pkgconf/Makefile.am

21 lines
839 B
Makefile
Raw Normal View History

libdir = @libdir@
datarootdir = @datarootdir@
datadir = @datadir@
includedir = @includedir@
system_includedir = @SYSTEM_INCLUDEDIR@
system_libdir = @SYSTEM_LIBDIR@
pkgconfigdir = @PKGCONFIGDIR@
CFLAGS = -Wall -Wextra -Wformat=2 -std=gnu99
bin_PROGRAMS = pkgconf
2015-09-03 08:56:07 +00:00
noinst_HEADERS = bsdstubs.h getopt_long.h iter.h pkg.h stdinc.h
pkgconf_SOURCES = main.c cache.c pkg.c bsdstubs.c getopt_long.c fragment.c argvsplit.c fileio.c tuple.c dependency.c queue.c
pkgconf_CPPFLAGS = -DLIBDIR=\"${libdir}\" -DINCLUDEDIR=\"${includedir}\" -DPKG_DEFAULT_PATH=\"${pkgconfigdir}\" -DSYSTEM_INCLUDEDIR=\"${system_includedir}\" -DSYSTEM_LIBDIR=\"${system_libdir}\"
pkgconf_MANS = pkgconf.1
dist_doc_DATA = README.md AUTHORS
check: pkgconf
$(SHELL) tests/run.sh ./pkgconf