Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ncsu.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!houxm!houxz!vax135!cornell!uw-beaver!tektronix!hplabs!zehntel!dual!amd!decwrl!decvax!mcnc!ncsu!chim From: chim@ncsu.UUCP (Bill Chimiak) Newsgroups: net.unix Subject: Question on make Message-ID: <2640@ncsu.UUCP> Date: Fri, 29-Jun-84 18:22:05 EDT Article-I.D.: ncsu.2640 Posted: Fri Jun 29 18:22:05 1984 Date-Received: Wed, 18-Jul-84 02:30:17 EDT Organization: N.C. State University, Raleigh Lines: 17 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 .