Re: lxdialog annoyance

Raul Miller (rdm@test.legislate.com)
Thu, 1 Apr 1999 12:20:53 -0500


--Rgf3q3z9SdmXC6oT
Content-Type: text/plain; charset=us-ascii

Arvind Sankar <arvinds@mit.edu> wrote:
> ? HOSTCC is hardcoded to gcc in the Makefile. Where do you get DLOCALE from?

Not in my copy of the Makefile (see attached). -DLOCALE is the next word
on the line after $(CC) for the default rule to build a .o, and I'm presuming
that make eats the leading - for some reason that I'd probably understood
if I studied it enough.

-- 
Raul

--Rgf3q3z9SdmXC6oT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=Makefile

CC = $(HOSTCC) CPP = $(HOSTCC) -E

CFLAGS = $(HOSTCFLAGS) -DLOCALE LDFLAGS = -s -L . LDLIBS = -lncurses

ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h)) CFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" else ifeq (/usr/include/ncurses/curses.h, $(wildcard /usr/include/ncurses/curses.h)) CFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>" else ifeq (/usr/include/ncurses.h, $(wildcard /usr/include/ncurses.h)) CFLAGS += -DCURSES_LOC="<ncurses.h>" else CFLAGS += -DCURSES_LOC="<curses.h>" endif endif endif

OBJS = checklist.o menubox.o textbox.o yesno.o inputbox.o \ util.o lxdialog.o msgbox.o SRCS = $(OBJS:.o=.c)

all: ncurses lxdialog

lxdialog: $(OBJS)

ncurses: @x=`find /lib/ /usr/lib/ /usr/local/lib/ -maxdepth 1 -name 'libncurses.*'` ;\ if [ ! "$$x" ]; then \ echo -e "\007" ;\ echo ">> Unable to find the Ncurses libraries." ;\ echo ">>" ;\ echo ">> You must have Ncurses installed in order" ;\ echo ">> to use 'make menuconfig'" ;\ echo ;\ exit 1 ;\ fi

clean: rm -f core *.o *~ lxdialog

--Rgf3q3z9SdmXC6oT--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/