84823cc708
Improvements and changes to integrate bsddialog(1) with scripts in BASE. Overview: * New options. --and-widget, --keep-tite, --calendar. * Change output format. Menus and --print-maxsize. * Redefine sizing. Fixed rows, cols and menurows became at the most. * Add DIAGNOSTICS. Error messages for bad arguments and options. * Add keys. Space for --menu, fast keys for --msgbox and --yesno. * Text. Change default text modification, add --cr-wrap. See /usr/src/contrib/bsddialog/CHANGELOG '2022-09-24 Version 0.4' for more detailed information. Merge commit '9f24fda5a8e7ab8243e71473c7e2dc98b4877e64'
32 lines
857 B
Plaintext
32 lines
857 B
Plaintext
# PUBLIC DOMAIN - NO WARRANTY, see:
|
|
# <http://creativecommons.org/publicdomain/zero/1.0/>
|
|
#
|
|
# Written in 2021 by Alfonso Sabato Siciliano
|
|
|
|
VERSION = 0.4
|
|
LIBRARY = bsddialog
|
|
LIBRARY_SO = lib${LIBRARY:=.so}
|
|
HEADERS = bsddialog.h bsddialog_theme.h bsddialog_progressview.h
|
|
SOURCES = barbox.c calendarbox.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 -D_XOPEN_SOURCE -D_GNU_SOURCE -Wall -Wextra \
|
|
-Wno-implicit-fallthrough -Werror -fpic
|
|
LDFLAGS = -lncursesw -ltinfo
|
|
LIBFLAG = -shared
|
|
|
|
RM = rm -f
|
|
LN = ln -s -f
|
|
|
|
all : $(LIBRARY)
|
|
|
|
$(LIBRARY): $(OBJECTS)
|
|
$(CC) $(LIBFLAG) $^ -o $(LIBRARY_SO).$(VERSION) $(LDFLAGS)
|
|
${LN} ${LIBRARY_SO}.${VERSION} ${LIBRARY_SO}
|
|
|
|
%.o: %.c $(HEADERS)
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
clean:
|
|
$(RM) $(LIBRARY_SO)* *.o *~
|