Question on make
Bill Chimiak
chim at ncsu.UUCP
Sat Jun 30 08:22:05 AEST 1984
When composing a makefile, if I wish to
have a program, pgm, be dependent on an archive rather
than use the .o files in a macro statement,
how is this done? Let's say the makefile initially
reads:
OBJECTS = x.o y.o z.o
pgm: $(OBJECTS)
cc $(OBJECTS) -o pgm
x.o : defsx.h
y.o : defsy.h
but I want it to read instead something like:
pgm: file.a
cc file.a -o pgm
where x.o, y.o and z.o are in the archive file.a .
More information about the Comp.unix
mailing list