1# $FreeBSD$ 2 3.include <src.opts.mk> 4.include "${.CURDIR:H}/config.mk" 5 6SRCDIR= ${NCURSES_DIR}/panel 7 8LIB= panelw 9 10.PATH: ${SRCDIR} 11SRCS= \ 12 ncurses_def.h \ 13 p_above.c \ 14 p_below.c \ 15 p_bottom.c \ 16 p_delete.c \ 17 p_hidden.c \ 18 p_hide.c \ 19 p_move.c \ 20 p_new.c \ 21 p_replace.c \ 22 p_show.c \ 23 p_top.c \ 24 p_update.c \ 25 p_user.c \ 26 p_win.c \ 27 panel.c 28 29CLEANFILES= ncurses_def.h 30 31CFLAGS+= -I${SRCDIR} 32 33LIBADD+= ncursesw 34 35# generate MAN 36.PATH: ${NCURSES_DIR}/man 37MAN= \ 38 panel.3 39 40CLEANFILES+= ${MAN:M*.3} 41 42MLINKS= panel.3 bottom_panel.3 \ 43 panel.3 del_panel.3 \ 44 panel.3 hide_panel.3 \ 45 panel.3 move_panel.3 \ 46 panel.3 new_panel.3 \ 47 panel.3 panel_above.3 \ 48 panel.3 panel_below.3 \ 49 panel.3 panel_hidden.3 \ 50 panel.3 panel_userptr.3 \ 51 panel.3 panel_window.3 \ 52 panel.3 replace_panel.3 \ 53 panel.3 set_panel_userptr.3 \ 54 panel.3 show_panel.3 \ 55 panel.3 top_panel.3 \ 56 panel.3 update_panels.3 57 58# backward compat 59.if ${MK_INSTALLLIB} != "no" 60SYMLINKS+= libpanelw.a ${LIBDIR}/libpanel.a 61.endif 62.if !defined(NO_PIC) 63SYMLINKS+= libpanelw.so ${LIBDIR}/libpanel.so 64.endif 65.if ${MK_PROFILE} != "no" 66SYMLINKS+= libpanelw_p.a ${LIBDIR}/libpanel_p.a 67.endif 68 69INCS= panel.h 70.include <bsd.lib.mk> 71 72# Keep the .SUFFIXES line after the include of bsd.lib.mk 73.SUFFIXES: .3 .3x 74.3x.3: 75 cat ${.IMPSRC} > ${.TARGET} 76