[Redbutton-devel] Redbutton-browser parallel makefile tweaks
Brought to you by:
skilvington
|
From: Andrew B. <b3...@gm...> - 2010-11-28 15:38:04
|
Hello, redbutton-browser compiles fine for me if I compile it with make -j1 but if I try 2 jobs or more it falls over itself so I asked for some help on linuxquestions http://www.linuxquestions.org/questions/programming-9/gnu-make-parallel-problem-846899/ The attached patch includes several fixes. Many of the object files depend on ISO13522-MHEG-5.c, ISO13522-MHEG-5.h and clone.c but the Makefile doesn't tell make that they do. This can be fixed with an OBJS target like this: ${OBJS}: ISO13522-MHEG-5.h clone.c make doesn't need to be called as a subprocess to compile xsd2c as long as the Makefile knows that ISO13522-MHEG-5.h, ISO13522-MHEG-5.c and dertest-mheg.c depend on xsd2c. With the patch applied redbutton browser compiles fine for me with make -j16. It still falls over itself if I try make -j64 so there is still some work to be done, but I think this patch is a step in the right direction. Andy |