problem with make suffix rules
Guy Harris
guy at auspex.auspex.com
Wed Jul 18 04:00:21 AEST 1990
>In the ucb universe,
Some UNIX flavors have "ucb" and "att" "universes". Others don't. You
might want to indicate which UNIX flavor you have (although in this case
the answer might be guessable without it).
>When I say
>`make program' for example,
>
>make says
>"Don't know how to make program"
>
>Shouldn't it try to apply the second suffix rule to generate program.o and
>then the first one to generate program from program.o ?
Probably not in the UCB universe, given that the first rule uses a
feature of "make" that first crawled into a "make" available outside
AT&T in System III. The V7 "make" that comes with 4.xBSD doesn't
support single-suffix rules like
.o:
cc -o $@ $< misc.a
>
>In the att universe,
>make tries
> cc -O program.c -o program
>instead of
> cc -c program.c
>which is what the suffix rule tells it to do.
while the System V "make" that comes with, well, System V does.
More information about the Comp.unix.questions
mailing list