portable: CI: update FreeBSD image
[got-portable.git] / gotctl / Makefile.am
blobc97e7d0e69b77f321536159f10324e7fb857b421
1 bin_PROGRAMS = gotctl
3 include $(top_builddir)/Makefile.common
5 AM_CPPFLAGS += -I$(top_builddir)/gotd
7 gotctl_SOURCES = gotctl.c \
8         $(top_srcdir)/gotd/imsg.c \
9         $(top_srcdir)/lib/error.c \
10         $(top_srcdir)/lib/hash.c \
11         $(top_srcdir)/lib/object_qid.c \
12         $(top_srcdir)/lib/path.c \
13         $(top_srcdir)/lib/pollfd.c
14        
15 gotctl_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
16 EXTRA_DIST = gotctl.8
18 man8_MANS = gotctl.8
20 LDADD = -L$(top_builddir)/compat -L$(top_builddir)/gotd -lopenbsd-compat -lm
21 LDADD += $(libutil_LIBS) \
22          $(zlib_LIBS) \
23          $(libbsd_LIBS) \
24          $(libevent_LIBS)
26 if HOST_FREEBSD
27 LDADD += -lmd
28 endif
30 AM_CPPFLAGS += $(libutil_CFLAGS) \
31                $(libbsd_CFLAGS) \
32                $(zlib_CFLAGS) \
33                $(libevent_CFLAGS)