> Date: Sat, 31 Jul 2010 15:30:22 +0800
> From: EdwardXu <[email protected]>
> 
> I'm trying to using parallel execution futures on my 4 cores computer(-j4
> option). In my opinion, GNU make only can processes different objects
> parallelly, for example:
> all: a.o  b.o c.o d.o e.o f.o
> a.o:
>     (CC) a.c
> b.o:
>     (CC) b.c
>  c.o:
>     (CC) c.c
> d.o:
>     (CC) d.c
>  e.o:
>     (CC) e.c
> f.o:
>     (CC) f.c
> 
> GNUmake will treat above objects parallel, make will create 4 CC process to
> compile a b c d e f objects, so there is  something cofused me, how make
> treat wildcard object? for example:
> all:%.o
> %.o:%.c
>     (CC) %.c

The parallelization is not on the object level.  It is on the job
level.  That is, when Make decides there's a job (i.e. command) to
run, and the number of already running jobs is less than 4, it will
launch another job.

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to