SunOS make question

Shankar Unni shankar at hpclscu.HP.COM
Wed Nov 16 09:27:57 AEST 1988


> 
> .SUFFIXES: .u.o .t.o .s.o
> 
> and implied translation things that look like this:
> 
> .c.u.o:
>     $(uCC) -c $*.c
>     mv $*.o $*.u.o

Pretty close.

"ld" is not too picky about the suffix of its input files. Make, on the other
hand, often gets confused by stuff like the one above: it keys off the "."'s.

Try

  .SUFFIXES: .uo .to .so

  .c.uo:
      $(uCC) -c $*.c
      mv $*.o $*.uo
   
   ...

---
Shankar.



More information about the Comp.unix.wizards mailing list