Merge commit 'dfc115332c94a2f62058ac7f2bce7631fbd20b3d'
[unleashed/tickless.git] / lib / libncurses / panel / Makefile
blob90bfa6b2c400036a6bbf078edb53c23b19d5d818
1 .include "${.CURDIR:H}/config.mk"
3 SRCDIR= ${NCURSES_DIR}/panel
5 LIB= panel
7 .PATH: ${SRCDIR}
8 SRCS= \
9 ncurses_def.h \
10 p_above.c \
11 p_below.c \
12 p_bottom.c \
13 p_delete.c \
14 p_hidden.c \
15 p_hide.c \
16 p_move.c \
17 p_new.c \
18 p_replace.c \
19 p_show.c \
20 p_top.c \
21 p_update.c \
22 p_user.c \
23 p_win.c \
24 panel.c
26 CLEANFILES= ncurses_def.h
28 BSDOBJDIR?= ${.OBJDIR:tA:H:H}
29 CFLAGS+= -I${SRCDIR}
30 CFLAGS+= -I${.CURDIR:H}/ncurses
31 CFLAGS+= -I${BSDOBJDIR}/ncurses/ncurses
33 LDADD+= -L${BSDOBJDIR}/ncurses/ncurses -lncurses
34 SHLIB_LDADD+= ${LDADD}
36 INCS= ${SRCDIR}/panel.h
38 includes: incinstall
40 pc_files:
41 ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
42 -m 0644 ${NCURSES_DIR}/panel/panel.pc ${DESTDIR}/usr/lib/pkgconfig/
45 SHLIB_LDADD+= -M${SRCDIR}/mapfile
46 realbuild: ${MAPFILE}
49 .ifdef DESTDIR
50 afterinstall: includes pc_files
51 .endif
52 .include <bsd.lib.mk>