Blame


1 40de210a 2023-08-29 thomas bin_PROGRAMS = gotctl
2 40de210a 2023-08-29 thomas
3 40de210a 2023-08-29 thomas include $(top_builddir)/Makefile.common
4 40de210a 2023-08-29 thomas
5 40de210a 2023-08-29 thomas AM_CPPFLAGS += -I$(top_builddir)/gotd
6 40de210a 2023-08-29 thomas
7 40de210a 2023-08-29 thomas gotctl_SOURCES = gotctl.c \
8 40de210a 2023-08-29 thomas $(top_srcdir)/gotd/imsg.c \
9 40de210a 2023-08-29 thomas $(top_srcdir)/lib/error.c \
10 4efc8dcb 2023-08-29 thomas $(top_srcdir)/lib/hash.c \
11 4efc8dcb 2023-08-29 thomas $(top_srcdir)/lib/object_qid.c \
12 40de210a 2023-08-29 thomas $(top_srcdir)/lib/path.c \
13 4efc8dcb 2023-08-29 thomas $(top_srcdir)/lib/pollfd.c
14 40de210a 2023-08-29 thomas
15 40de210a 2023-08-29 thomas gotctl_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
16 40de210a 2023-08-29 thomas EXTRA_DIST = gotctl.8
17 40de210a 2023-08-29 thomas
18 40de210a 2023-08-29 thomas man8_MANS = gotctl.8
19 40de210a 2023-08-29 thomas
20 40de210a 2023-08-29 thomas LDADD = -L$(top_builddir)/compat -L$(top_builddir)/gotd -lopenbsd-compat -lm
21 4efc8dcb 2023-08-29 thomas LDADD += $(libutil_LIBS) \
22 4efc8dcb 2023-08-29 thomas $(zlib_LIBS) \
23 4efc8dcb 2023-08-29 thomas $(libbsd_LIBS) \
24 4efc8dcb 2023-08-29 thomas $(libevent_LIBS)
25 4efc8dcb 2023-08-29 thomas
26 40de210a 2023-08-29 thomas if HOST_FREEBSD
27 40de210a 2023-08-29 thomas LDADD += -lmd
28 40de210a 2023-08-29 thomas endif
29 4efc8dcb 2023-08-29 thomas
30 4efc8dcb 2023-08-29 thomas AM_CPPFLAGS += $(libutil_CFLAGS) \
31 4efc8dcb 2023-08-29 thomas $(libbsd_CFLAGS) \
32 4efc8dcb 2023-08-29 thomas $(zlib_CFLAGS) \
33 4efc8dcb 2023-08-29 thomas $(libevent_CFLAGS)