> This will break cross-compilation. sorry, it was not in my mind. > At the very least, we needs to use either HOSTCC (likes linux project), > HOST_CC or CC_FOR_BUILD (GNU Autotools' convention) to compile > makeheaders > > So, something like (not tested, whatsoever): > > CC_FOR_BUILD = $(CC) > CFLAGS_FOR_BUILD = $(CFLAGS) > LDFLAGS_FOR_BUILD = $(LDFLAGS) > QUIET_HOSTCC = echo ' ' HOSTCC $@; > QUIET_MAKEHEADERS = echo ' ' MAKEHEADERS $@; > > makeheaders: tools/makeheaders.c > $(QUIET_HOSTCC)$(CC_FOR_BUILD) -o $@ $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $< > > abspath.h: abspath.c makeheaders > $(QUIET_MAKEHEADERS)./makeheaders $< Ok, as you suggested above, I will modify the patch according to it. If anyone suggests it will be good or not, I have another way to do it. What if we put the makeheaders tool executable in an online platform and then put it in Makefile to download it over the internet according to the system.