how to determine if we are building lib32 in Makefile?



I'm working on wide character support in base's ncurses. For some
reason, I have to make lib/ncurses/ncursesw to include ncurses.h from
its object directory. However, current lib32 uses something like

cc ... -I${LIB32TMP}/usr/includes ... -IFROM_NCURSES_MAKEFILE ...

Right now, I have the following:

.if ${.TARGET} == "installincludes" && !empty(${DESTDIR:M*/lib32/*})
INCS= ${HEADERS} ${SRCHDRS}
INCSLINKS= curses.h ${INCLUDEDIR}/ncurses.h
.endif

It works, but it's really ugly. Is there any other way to do this?

Thanks,
Rong-En Fan
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"