There are some object files say a.o
and b.o
created when the binary engine
is created.
Makefile
.PHONY all
all: engine cars
Now this second binary cars
needs .o files a.o
and b.o
created while creating binary engine
The problem here is I am using make -j
for compilation which in some situation results in the object files not created and hence undefined reference
errors. The issue is not seen with make -j 5
.
Is there someway I can make it run parallely with make -j