1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-13 10:49:13 +02:00
openwrt/scripts/config/lxdialog/Makefile
Felix Fietkau c5c7a2e5ab add openbsd compatibility patch (thanks, wbx)
SVN-Revision: 5749
2006-12-10 20:58:51 +00:00

28 lines
664 B
Makefile

# Makefile to build lxdialog package
#
all: lxdialog
# Use reursively expanded variables so we do not call gcc unless
# we really need to do so. (Do not call gcc as part of make mrproper)
CFLAGS := $(shell sh check-lxdialog.sh -ccflags)
LIBS := $(shell sh check-lxdialog.sh -ldflags gcc)
# workaround for OpenBSD, which does not use symlinks to libncurses.so
OS := $(shell uname -s)
ifeq ($(strip $(OS)),OpenBSD)
LIBS := -lncurses
endif
always := $(hostprogs-y) dochecklxdialog
%.o: %.c
$(CC) -c $(CFLAGS) -o $@ $<
lxdialog: checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o msgbox.o
$(CC) -o $@ $^ $(LIBS)
clean:
rm -f *.o lxdialog