mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-19 09:24:14 +00:00
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
SUBDIRS= lib cli stream input dsl mapping containers output parsing aux experimental . unit_test reg_test
|
|
|
|
AM_CPPFLAGS= -I${srcdir}
|
|
AM_CFLAGS= -Wall -std=gnu99
|
|
bin_PROGRAMS= mlr
|
|
noinst_PROGRAMS= mlrg \
|
|
mlrp
|
|
|
|
mlr_SOURCES= mlrmain.c
|
|
|
|
mlr_LDADD= \
|
|
cli/libcli.la \
|
|
containers/libcontainers.la \
|
|
stream/libstream.la \
|
|
input/libinput.la \
|
|
dsl/libdsl.la \
|
|
mapping/libmapping.la \
|
|
output/liboutput.la \
|
|
lib/libmlr.la \
|
|
parsing/libdsl.la \
|
|
aux/libaux.la \
|
|
-lm
|
|
|
|
# Other executable variants
|
|
|
|
# Debug version:
|
|
mlrg_CFLAGS= -g ${AM_CFLAGS}
|
|
mlrg_LDADD= ${mlr_LDADD}
|
|
mlrg_SOURCES= ${mlr_SOURCES}
|
|
|
|
# Profile version. Usage:
|
|
# * make mlrp
|
|
# * mlrp {arguments>
|
|
# * gprof mlrp gmon.out > myfile.txt
|
|
# Note: works on Linux; not on OSX. On FreeBSD it sounds like it'll need an
|
|
# extra -lc on the link line.
|
|
mlrp_CFLAGS= -g -pg ${AM_CFLAGS}
|
|
mlrp_LDADD= ${mlr_LDADD}
|
|
mlrp_SOURCES= ${mlr_SOURCES}
|
|
|
|
# ================================================================
|
|
# Run this after unit-test expected output has changed, and is verified to be
|
|
# OK. (Example: after adding new test cases in test/run.)
|
|
regtest-copy:
|
|
cp output/out reg_test/expected
|
|
|
|
# ================================================================
|
|
perfclean profclean:
|
|
@rm -vf gmon.out perf.data perf.data.old
|