Relocate readline and ncurses headers to /usr/include/priv
[dragonfly.git] / games / backgammon / backgammon / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 5/31/93
2 # $FreeBSD: src/games/backgammon/backgammon/Makefile,v 1.2.14.1 2001/04/25 09:28:44 ru Exp $
3
4 PROG=   backgammon
5 CFLAGS+=-I${.CURDIR}/../common_source
6 SRCS=   allow.c board.c check.c extra.c fancy.c init.c main.c move.c \
7         odds.c one.c save.c subs.c table.c text.c version.c
8 MAN=    backgammon.6
9 DPADD=  ${LIBNCURSES}
10 LDADD=  -lprivate_ncurses
11
12 CFLAGS+=        -I${_SHLIBDIRPREFIX}/usr/include/priv/ncurses
13 LDFLAGS+=       ${PRIVATELIB_LDFLAGS}
14 HIDEGAME=       hidegame
15
16 .PATH:  ${.CURDIR}/../common_source
17
18 # XXX: mismatches between types for static init
19 init.o: init.c
20         ${CC} ${CFLAGS:N-flto} -c -o ${.TARGET} ${.IMPSRC}
21
22 .include "../../Makefile.inc"
23 .include <bsd.prog.mk>