Index: Makefile =================================================================== --- Makefile (revision 36175) +++ Makefile (working copy) @@ -152,7 +152,7 @@ # *CLI> show memory summary [filename] ifneq ($(findstring MALLOC_DEBUG,$(MENUSELECT_CFLAGS)),) TOPDIR_CFLAGS+=-include include/asterisk/astmm.h - MOD_SUBDIR_CFLAGS+=-include ../include/asterisk/astmm.h + MOD_SUBDIR_CFLAGS+=-include $(PWD)/include/asterisk/astmm.h endif MOD_SUBDIR_CFLAGS+=-fPIC @@ -879,7 +879,7 @@ -@menuselect/menuselect ${GLOBAL_MAKEOPTS} ${USER_MAKEOPTS} menuselect.makeopts && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!" menuselect/menuselect: menuselect/menuselect.c menuselect/menuselect_curses.c menuselect/menuselect.h menuselect/linkedlists.h config.status mxml/libmxml.a $(MENUSELECT_OBJS) - @CFLAGS="-include ../include/asterisk/autoconfig.h" $(MAKE) -C menuselect menuselect + @CFLAGS="-include $(PWD)/include/asterisk/autoconfig.h" PARENTSRC=$(PWD) $(MAKE) -C menuselect menuselect mxml/libmxml.a: @cd mxml && unset CFLAGS LIBS && test -f config.h || ./configure