xref: /dragonfly/usr.bin/dsynth/Makefile (revision a361ab312536a661d74caf5630c7ae20bcd8e3e4)
1#
2#
3
4PROG=     dsynth
5SRCS=     dsynth.c subs.c pkglist.c config.c bulk.c build.c repo.c mount.c
6SRCS+=    status.c numa.c
7SRCS+=    runstats.c ncurses.c monitor.c html.c
8SRCS+=    icrc32.c
9
10SCRIPTS=mktemplate.sh
11SCRIPTSDIR= ${SHAREDIR}/dsynth
12
13# NOTE: The HTML support was directly transplanted from synth, written by
14#       John R. Marino <draco@marino.st>.
15#
16FILESDIR= ${SCRIPTSDIR}
17FILES= favicon.png progress.html progress.css progress.js dsynth.png
18
19# CFLAGS+=          -DSYSCAP_UNAVAILABLE
20CFLAGS+=  -pthread
21CFLAGS+=  -DSCRIPTDIR=${SHAREDIR}/dsynth
22LDADD+=             -lpthread -lutil
23DPADD+=             ${LIBPTHREAD} ${LIBUTIL}
24
25# ncurses, md5, for DragonFlyBSD
26#
27CFLAGS+=        -I${_SHLIBDIRPREFIX}/usr/include/priv/ncurses
28CFLAGS+=  ${PRIVATELIB_CFLAGS}
29LDFLAGS+=       ${PRIVATELIB_LDFLAGS}
30LDADD+=             -lprivate_ncurses
31LDADD+=             -lprivate_crypto
32DPADD+=             ${LIBNCURSES}
33DPADD+=             ${LIBCRYPTO}
34
35LDADD+=             -lm
36DPADD+=             ${LIBM}
37
38beforeinstall:
39          mkdir -p ${DESTDIR}${SCRIPTSDIR}
40
41.include <bsd.prog.mk>
42