4 CFLAGS
= $(HOSTCFLAGS
) -DLOCALE
8 ifeq (/usr
/include/ncurses
/ncurses.h
, $(wildcard /usr
/include/ncurses
/ncurses.h
))
9 CFLAGS
+= -I
/usr
/include/ncurses
-DCURSES_LOC
="<ncurses.h>"
11 ifeq (/usr
/include/ncurses
/curses.h
, $(wildcard /usr
/include/ncurses
/curses.h
))
12 CFLAGS
+= -I
/usr
/include/ncurses
-DCURSES_LOC
="<ncurses/curses.h>"
14 ifeq (/usr
/include/ncurses.h
, $(wildcard /usr
/include/ncurses.h
))
15 CFLAGS
+= -DCURSES_LOC
="<ncurses.h>"
17 CFLAGS
+= -DCURSES_LOC
="<curses.h>"
23 OBJS
= checklist.o menubox.o textbox.o yesno.o inputbox.o \
24 util.o lxdialog.o msgbox.o
33 @echo
"main() {}" > lxtemp.c
34 @if
$(CC
) -lncurses lxtemp.c
; then \
35 rm -f lxtemp.c a.out
; \
39 echo
">> Unable to find the Ncurses libraries." ;\
41 echo
">> You must have Ncurses installed in order" ;\
42 echo
">> to use 'make menuconfig'" ;\
48 rm -f core
*.o
*~ lxdialog