miller/c/Makefile.am
2016-12-02 20:07:02 -05:00

48 lines
1.3 KiB
Makefile

SUBDIRS= lib cli stream input dsl mapping containers output parsing experimental tools . 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 \
-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