95da5e131a
dialog.h defines MIN and MAX (making sure to undefine the previous macros if it already exists), but sys/param.h also defines those macros (without guards) and is included after dialog.h resulting in both gcc and clang complaining about macro redefiniton While clang do accept -Wno-macro-redefined to ignore the redefinition warning, gcc does not [1] Undefine both macros prior inclusion of sys/param.h to avoid the warning Reported by: arichardson
23 lines
659 B
Makefile
23 lines
659 B
Makefile
# $FreeBSD$
|
|
|
|
DIALOG= ${SRCTOP}/contrib/dialog
|
|
|
|
LIB= dialog
|
|
SHLIB_MAJOR= 9
|
|
SRCS= argv.c arrows.c buildlist.c buttons.c calendar.c checklist.c \
|
|
columns.c dlg_keys.c editbox.c fselect.c formbox.c guage.c \
|
|
help.c inputbox.c inputstr.c menubox.c mixedform.c \
|
|
mixedgauge.c mouse.c mousewget.c msgbox.c pause.c prgbox.c \
|
|
progressbox.c rangebox.c rc.c tailbox.c textbox.c timebox.c \
|
|
trace.c treeview.c ttysize.c ui_getc.c util.c version.c yesno.c
|
|
INCS= dialog.h dlg_colors.h dlg_config.h dlg_keys.h
|
|
MAN= dialog.3
|
|
|
|
LIBADD= ncursesw m
|
|
|
|
CFLAGS+= -I${.CURDIR} -I${DIALOG} -D_XOPEN_SOURCE_EXTENDED
|
|
.PATH: ${DIALOG}
|
|
WARNS?= 1
|
|
|
|
.include <bsd.lib.mk>
|