Blob


1 SUBDIRS = kamictl kamid kamiftp kamirepl ninepscript
3 EXTRA_DIST = compat/imsg.h \
4 compat/ohash.h \
5 compat/queue.h \
6 compat/tree.h \
7 compat/vis.h
9 AM_CPPFLAGS += -DKAMID_VERSION='"@VERSION"' \
10 -I$(top_srcdir)/lib \
11 -I$(top_srcdir)/compat
13 LDADD = $(LIBOBJS)
15 AM_CFLAGS += -Wall
16 AM_CFLAGS += -Wextra
17 AM_CFLAGS += -Wmissing-prototypes
18 AM_CFLAGS += -Wstrict-prototypes
19 AM_CFLAGS += -Wwrite-strings
20 AM_CFLAGS += -Wno-unused-parameter
22 SUDO ?= sudo
23 HAVE_LISP ?= no
25 $(top_builddir)/ninepscript/ninepscript:
26 ${MAKE} -C $(top_builddir)/ninepscript
28 test: $(top_builddir)/ninepscript/ninepscript
29 "${SUDO}" "$(top_builddir)"/ninepscript/ninepscript \
30 -r $(top_srcdir)/regress/root \
31 $(top_srcdir)/regress/ninepscript/*-suite.9ps
32 @if [ "${HAVE_LISP}" = yes ]; then \
33 export PATH="$$(cd $(top_builddir)/kamid/; pwd):$$PATH"; \
34 cd "$(top_srcdir)"/regress/lisp && \
35 SUDO="${SUDO}" ./run.sh; \
36 else \
37 echo "skipping lisp suite (HAVE_LISP=yes to run it)."; \
38 fi