On Wed, 7 Jan 2009 16:49:48 -0500 Lee, Sang wrote:
> COMMS = trg1 trg2 trg3

> if CC.HOSTTYPE == "linux*.*"
>       TRGS += $(COMMS) trg4
> if CC.HOSTTYPE == "sol*.*"
  ^^
  elif CC.HOSTTYPE == "sol*.*"
>       TRGS += $(COMMS)
> else
>       error 3 $(CC.HOSTTYPE): architecture not supported
> end

> :ALL: $(TRGS)

> trg1 :: a.C b.C
> trg2 :: c.C d.C
> trg3 :: e.C f.c
> Trg4 :: g.C h.C

> If I want to build trg3 for Linux platform, do you think the above
> Nmakefile will work?

but the :: assertion puts all targets on the :ALL: list, so it won't work
try something like:

:ALL:

trg1 :: a.C b.C
trg2 :: c.C d.C
trg3 :: e.C f.c
if CC.HOSTTYPE == "linux*.*"
trg4 :: g.C h.C
end

_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to