mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
New features overview: * Unicode. User interface handles multi-column characters. API can handle char* like a multibyte character string. Internally wide characters are used for keyboard input, to adapt word wrapping and dynamic text auto-sizing for multi-column characters. * Forms refactoring. Complete rewrite deleting libformw dependency. * Theme. New utility options to save and load custom theme at run-time. * TUI navigation. Added keys to navigate input components. Changed default focus behavior of input dialogs to be LGPL-dialog-like; a new option can set the previous whiptail-like behavior. See /usr/src/contrib/bsddialog/CHANGELOG '2022-08-29 Version 0.3' for more detailed information. Merge commit '2c9fd7655ba54e7239f528e1af9fe09662de9b03'
75 lines
2 KiB
Makefile
75 lines
2 KiB
Makefile
# PUBLIC DOMAIN - NO WARRANTY, see:
|
|
# <http://creativecommons.org/publicdomain/zero/1.0/>
|
|
#
|
|
# Written in 2021 by Alfonso Sabato Siciliano
|
|
|
|
VERSION = 0.3
|
|
LIBRARY = bsddialog
|
|
LIBRARY_SO = lib${LIBRARY:=.so}
|
|
LIBRARY_A = lib${LIBRARY:=.a}
|
|
HEADERS = bsddialog.h bsddialog_theme.h bsddialog_progressview.h
|
|
SOURCES = barbox.c formbox.c infobox.c libbsddialog.c lib_util.c menubox.c \
|
|
messagebox.c textbox.c theme.c timebox.c
|
|
OBJECTS = ${SOURCES:.c=.o}
|
|
CFLAGS += -D_XOPEN_SOURCE_EXTENDED -fPIC -Wall -Wextra
|
|
LDFLAGS += -fstack-protector-strong -shared -Wl,-x -Wl,--fatal-warnings \
|
|
-Wl,--warn-shared-textrel -Wl,-soname,${LIBRARY_SO}.${VERSION} \
|
|
-L/usr/lib -lncursesw -ltinfow
|
|
|
|
.if defined(DEBUG)
|
|
# `make -DDEBUG`
|
|
CFLAGS = -g -D_XOPEN_SOURCE_EXTENDED -fPIC -Wall -Wextra
|
|
.else
|
|
CFLAGS += -std=gnu99 -fstack-protector-strong
|
|
.endif
|
|
|
|
LOCALBASE = /usr/local
|
|
LN = ln -s -f
|
|
RM = rm -f
|
|
CP = cp
|
|
GZIP = gzip -cn
|
|
LDCONFIG = /sbin/ldconfig -m
|
|
MAN = ${OUTPUT}.3
|
|
GZIP = gzip -cn
|
|
MANDIR = ${LOCALBASE}/share/man/man3
|
|
INSTALL = install
|
|
RM = rm -f
|
|
|
|
all : man ${LIBRARY}
|
|
|
|
${LIBRARY}: ${LIBRARY_SO} ${LIBRARY_A}
|
|
|
|
${LIBRARY_SO}.${VERSION}: ${OBJECTS}
|
|
${CC} ${LDFLAGS} ${.ALLSRC} -o ${LIBRARY_SO}.${VERSION}
|
|
|
|
${LIBRARY_SO}: ${LIBRARY_SO}.${VERSION}
|
|
${LN} ${LIBRARY_SO}.${VERSION} ${LIBRARY_SO}
|
|
|
|
${LIBRARY_A}: ${OBJECTS}
|
|
${AR} cr ${.TARGET} ${OBJECTS}
|
|
${RANLIB} ${.TARGET}
|
|
|
|
.c.o:
|
|
${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
|
|
|
man:
|
|
${GZIP} ${LIBRARY}.3 > ${LIBRARY}.3.gz
|
|
|
|
clean:
|
|
${RM} ${LIBRARY_SO}* *.o *~ *.gz ${LIBRARY_A}
|
|
|
|
|
|
install:
|
|
${INSTALL} -m 644 ${HEADERS} ${LOCALBASE}/include
|
|
${INSTALL} -m 644 -s ${LIBRARY_SO}.${VERSION} ${LOCALBASE}/lib/
|
|
${INSTALL} -l rs ${LOCALBASE}/lib/${LIBRARY_SO}.${VERSION} ${LOCALBASE}/lib/${LIBRARY_SO}
|
|
${INSTALL} -m 644 ${LIBRARY_A} ${LOCALBASE}/lib
|
|
${LDCONFIG} ${LOCALBASE}/lib
|
|
${INSTALL} -m 644 ${LIBRARY}.3.gz ${MANDIR}
|
|
|
|
unistall:
|
|
${RM} ${LOCALBASE}/include/${LIBRARY}*.h
|
|
${RM} ${LOCALBASE}/lib/${LIBRARY_SO}
|
|
${RM} ${LOCALBASE}/lib/${LIBRARY_SO}.${VERSION}
|
|
${LDCONFIG} ${LOCALBASE}/lib
|
|
${RM} ${MANDIR}/${LIBRARY}.3.gz
|