diff options
Diffstat (limited to 'scripts/lxdialog/Makefile')
-rw-r--r-- | scripts/lxdialog/Makefile | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/scripts/lxdialog/Makefile b/scripts/lxdialog/Makefile deleted file mode 100644 index c29b58d7b..000000000 --- a/scripts/lxdialog/Makefile +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | HOSTCFLAGS += -DLOCALE | ||
2 | LIBS = -lncurses | ||
3 | |||
4 | ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h)) | ||
5 | HOSTCFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" | ||
6 | else | ||
7 | ifeq (/usr/include/ncurses/curses.h, $(wildcard /usr/include/ncurses/curses.h)) | ||
8 | HOSTCFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>" | ||
9 | else | ||
10 | ifeq (/usr/include/ncurses.h, $(wildcard /usr/include/ncurses.h)) | ||
11 | HOSTCFLAGS += -DCURSES_LOC="<ncurses.h>" | ||
12 | else | ||
13 | HOSTCFLAGS += -DCURSES_LOC="<curses.h>" | ||
14 | endif | ||
15 | endif | ||
16 | endif | ||
17 | |||
18 | |||
19 | OBJS = checklist.o menubox.o textbox.o yesno.o inputbox.o \ | ||
20 | util.o lxdialog.o msgbox.o | ||
21 | |||
22 | %.o: %.c | ||
23 | $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $< | ||
24 | |||
25 | all: ncurses lxdialog | ||
26 | |||
27 | lxdialog: $(OBJS) | ||
28 | $(HOSTCC) -o lxdialog $(OBJS) $(LIBS) | ||
29 | |||
30 | .PHONY: ncurses | ||
31 | |||
32 | ncurses: | ||
33 | @echo "main() {}" > lxtemp.c | ||
34 | @if $(HOSTCC) lxtemp.c $(LIBS) ; then \ | ||
35 | rm -f lxtemp.c a.out; \ | ||
36 | else \ | ||
37 | rm -f lxtemp.c; \ | ||
38 | echo -e "\007" ;\ | ||
39 | echo ">> Unable to find the Ncurses libraries." ;\ | ||
40 | echo ">>" ;\ | ||
41 | echo ">> You must have Ncurses installed in order" ;\ | ||
42 | echo ">> to use 'make menuconfig'" ;\ | ||
43 | echo ;\ | ||
44 | exit 1 ;\ | ||
45 | fi | ||
46 | |||
47 | clean: | ||
48 | rm -f core *.o *~ lxdialog | ||