From: Samuel Martin Date: Sat, 10 Jan 2015 10:57:38 +0000 (+0100) Subject: use $(CC) instead of $(CPP) to generate .depend files X-Git-Tag: r0-52-19~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96772108c58574711f6e0bb448ead0b371b10434;p=thirdparty%2Fnewt.git use $(CC) instead of $(CPP) to generate .depend files Use $(CC) instead of $(CPP) to generate .depend file because '$(CPP) -M' call does not support multiple input files. This avoid the following error: make[1]: Entering directory `/opt/br/output/build/newt-0.51.0' /opt/br/output/host/usr/bin/arm-none-linux-gnueabi-cpp -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -M newt.c button.c form.c checkbox.c entry.c label.c listbox.c scrollbar.c textbox.c scale.c grid.c windows.c buttonbar.c checkboxtree.c > .depend arm-none-linux-gnueabi-cpp: too many input files make[1]: *** [depend] Error 1 Signed-off-by: Samuel Martin Signed-off-by: Yegor Yefremov Signed-off-by: Thomas Petazzoni --- diff --git a/Makefile.in b/Makefile.in index 7989203..17853e0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -121,7 +121,7 @@ clean: $(SHAREDDIR)/*.o *.$(SOEXT)* depend: - $(CPP) $(CFLAGS) $(CPPFLAGS) -M $(SOURCES) > .depend + $(CC) $(CFLAGS) $(CPPFLAGS) -M $(SOURCES) > .depend $(SHAREDDIR): mkdir -p $(SHAREDDIR)