4 ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h))
5 HOSTCFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"
7 ifeq (/usr/include/ncurses/curses.h, $(wildcard /usr/include/ncurses/curses.h))
8 HOSTCFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"
10 ifeq (/usr/include/ncurses.h, $(wildcard /usr/include/ncurses.h))
11 HOSTCFLAGS += -DCURSES_LOC="<ncurses.h>"
13 HOSTCFLAGS += -DCURSES_LOC="<curses.h>"
19 OBJS = checklist.o menubox.o textbox.o yesno.o inputbox.o \
20 util.o lxdialog.o msgbox.o
23 $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
28 $(HOSTCC) -o lxdialog $(OBJS) $(LIBS)
31 @echo "main() {}" > lxtemp.c
32 @if $(HOSTCC) -lncurses lxtemp.c ; then \
33 rm -f lxtemp.c a.out; \
37 echo ">> Unable to find the Ncurses libraries." ;\
39 echo ">> You must have Ncurses installed in order" ;\
40 echo ">> to use 'make menuconfig'" ;\
46 rm -f core *.o *~ lxdialog