portable: object_qid.c make portable
[got-portable.git] / libexec / got-read-tree / Makefile.am
bloba09561fac19fe4a5aecabce759d01eb1d8fbd59c
1 libexec_PROGRAMS = got-read-tree
3 include $(top_builddir)/Makefile.common
5 got_read_tree_SOURCES = got-read-tree.c \
6         $(top_srcdir)/lib/error.c \
7         $(top_srcdir)/lib/hash.c \
8         $(top_srcdir)/lib/inflate.c \
9         $(top_srcdir)/lib/object_parse.c \
10         $(top_srcdir)/lib/path.c \
11         $(top_srcdir)/lib/pollfd.c \
12         $(top_srcdir)/lib/privsep.c
14 got_read_tree_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
16 LDADD = -L$(top_builddir)/compat -lopenbsd-compat
17 LDADD += $(zlib_LIBS) $(libbsd_LIBS) $(libutil_LIBS) $(libmd_LIBS)
18 if HOST_FREEBSD
19 LDADD += -lmd
20 endif
22 AM_CPPFLAGS += $(zlib_CFLAGS) $(libbsd_CFLAGS) $(libmd_CFLAGS)