[MINI2440] Initial board support
[openwrt/mini2440.git] / scripts / config / lxdialog / Makefile
blobaed08e0170e987e00ce73c655fa92a0634a28f9f
1 # Makefile to build lxdialog package
4 all: lxdialog
6 # Use reursively expanded variables so we do not call gcc unless
7 # we really need to do so. (Do not call gcc as part of make mrproper)
8 CFLAGS := $(shell sh check-lxdialog.sh -ccflags)
9 LIBS := $(shell sh check-lxdialog.sh -ldflags gcc)
11 # workaround for OpenBSD, which does not use symlinks to libncurses.so
12 OS := $(shell uname -s)
13 ifeq ($(strip $(OS)),OpenBSD)
14 LIBS := -lncurses
15 endif
18 always := $(hostprogs-y) dochecklxdialog
20 %.o: %.c
21 $(CC) -c $(CFLAGS) -o $@ $<
23 lxdialog: checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o msgbox.o
24 $(CC) -o $@ $^ $(LIBS)
26 clean:
27 rm -f *.o lxdialog