summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libpanel/Makefile13
-rw-r--r--lib/ncurses/panel/Makefile13
2 files changed, 20 insertions, 6 deletions
diff --git a/lib/libpanel/Makefile b/lib/libpanel/Makefile
index 30d77fb..669d649 100644
--- a/lib/libpanel/Makefile
+++ b/lib/libpanel/Makefile
@@ -3,16 +3,23 @@
NCURSES=${.CURDIR}/../../contrib/ncurses
-.PATH: ${NCURSES}/panel
+.PATH: ${NCURSES}/panel ${NCURSES}/include
LIB= panel
+AWK?= awk
-SRCS= p_above.c p_below.c p_bottom.c p_delete.c p_hidden.c \
+SRCS= ncurses_def.h \
+ p_above.c p_below.c p_bottom.c p_delete.c p_hidden.c \
p_hide.c p_move.c p_new.c p_replace.c p_show.c p_top.c \
p_update.c p_user.c p_win.c panel.c
INCS= ${NCURSES}/panel/panel.h
-CFLAGS+= -I${.CURDIR}/../libncurses -I${NCURSES}/panel -I${NCURSES}/include \
+CLEANFILES+= ncurses_def.h
+CFLAGS+= -I. -I${.CURDIR}/../libncurses -I${NCURSES}/panel -I${NCURSES}/include \
-Wall -DNDEBUG -DHAVE_CONFIG_H
+ncurses_def.h: MKncurses_def.sh ncurses_defs
+ AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \
+ ${NCURSES}/include/ncurses_defs > ncurses_def.h
+
.include <bsd.lib.mk>
diff --git a/lib/ncurses/panel/Makefile b/lib/ncurses/panel/Makefile
index 30d77fb..669d649 100644
--- a/lib/ncurses/panel/Makefile
+++ b/lib/ncurses/panel/Makefile
@@ -3,16 +3,23 @@
NCURSES=${.CURDIR}/../../contrib/ncurses
-.PATH: ${NCURSES}/panel
+.PATH: ${NCURSES}/panel ${NCURSES}/include
LIB= panel
+AWK?= awk
-SRCS= p_above.c p_below.c p_bottom.c p_delete.c p_hidden.c \
+SRCS= ncurses_def.h \
+ p_above.c p_below.c p_bottom.c p_delete.c p_hidden.c \
p_hide.c p_move.c p_new.c p_replace.c p_show.c p_top.c \
p_update.c p_user.c p_win.c panel.c
INCS= ${NCURSES}/panel/panel.h
-CFLAGS+= -I${.CURDIR}/../libncurses -I${NCURSES}/panel -I${NCURSES}/include \
+CLEANFILES+= ncurses_def.h
+CFLAGS+= -I. -I${.CURDIR}/../libncurses -I${NCURSES}/panel -I${NCURSES}/include \
-Wall -DNDEBUG -DHAVE_CONFIG_H
+ncurses_def.h: MKncurses_def.sh ncurses_defs
+ AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \
+ ${NCURSES}/include/ncurses_defs > ncurses_def.h
+
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud