On 01/02/2015 14:02, WPB wrote:
   g++ -M $(CPPFLAGS) $(SRC) > $(DEPSFILE)

This generates output in $(DEPSFILE) that looks like this:

   vertex.o: src/vertex.cpp \
    
/HostFS::HostFS.$$/AppsInUse/Dev/GCC474r1/!GCC/bin/../lib/gcc/arm-unknown-riscos/4.7.4/../../../../include/c++/4.7.4/iostream
\
    
/HostFS::HostFS.$$/AppsInUse/Dev/GCC474r1/!GCC/bin/../lib/gcc/arm-unknown-riscos/4.7.4/../../../../include/c++/4.7.4/arm-unknown-riscos/bits/c++config.h
\
    
/HostFS::HostFS.$$/AppsInUse/Dev/GCC474r1/!GCC/bin/../lib/gcc/arm-unknown-riscos/4.7.4/../../../../include/c++/4.7.4/arm-unknown-riscos/bits/os_defines.h
\

   etc., etc.


You could try using my 'make' port http://homepage.ntlworld.com/duncan-moore/riscos/zip/make-3-81-ro1.zip. I always use these dependency files myself, and have tweaked 'make' to handle these sorts of things more easily on RISC OS. The diff file contains the Makefile for 'make' itself (at the end), so you can see how I write Makefiles. You'd best read the ReadMe file first, to see what I've changed. Feel free to email me privately if you need to ask any questions about it.

Hope that helps.

Duncan

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to