31 lines
759 B
Plaintext
31 lines
759 B
Plaintext
# PUBLIC DOMAIN - NO WARRANTY, see:
|
|
# <http://creativecommons.org/publicdomain/zero/1.0/>
|
|
#
|
|
# Written in 2021 by Alfonso Sabato Siciliano
|
|
|
|
VERSION = 0.0.2
|
|
LIBRARY = bsddialog
|
|
LIBRARY_SO = lib${LIBRARY:=.so}
|
|
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 = -g -Wall -Werror -fpic
|
|
LDFLAGS = -lform -lncurses -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 *~
|