Ultrix 1.2 make suffix assumptions

Jan Morales janm at eliot.UUCP
Wed Aug 10 05:44:45 AEST 1988


Let's say I have a file called "foo.c" that compiles to "foo".
When I worked on a System V machine, I was able to type

    make foo

and make would know to run

    cc -O foo.c -o foo

to produce "foo".  Now I'm working on a MicroVAX II running
Ultrix 1.2 and when I say

    make foo

it says

    Make:  Don't know how to make foo.  Stop.

It turns out that make is assuming that executables' names end
in ".out" rather than the name of the source file minus the ".c"
or whatever suffix.  In other words, if I type

    make foo.out

it'll run

    cc foo.c -o foo.out

to produce "foo.out".  The default prerequisite suffixes are:

    .SUFFIXES: .out .o .c .e .r .f .y .l .s .p

My question is how can I change ".SUFFIXES" to include the case
of no suffix just before ".o"?  I assume the answer, if any, lies
in changing ".SUFFIXES".  I know it's no big deal; I'm asking mainly
out of curiosity.  Thanks in advance.

Jan

-- 
---------------------------------------------------------------------------
Jan Morales, Unitech Software, Inc., (703) 264-3301, uunet!pyrdc!eliot!janm



More information about the Comp.unix.questions mailing list