Make into archive in XENIX

andre andre at targon.UUCP
Fri Dec 7 23:02:19 AEST 1990


In article <881 at zeusa.UUCP> hendrik at zeusa.UUCP (Hendrik Vermooten) writes:
>When I use the Makefile (listed below) under XENIX, it compiles modules
>that have changed twice. For instance, if I "touch strvalid.c" and then

Your Makefile is essentially in the form:

all: lib.a(obj.o)
	: make objects
	: put objects in library
	ranlib

but make already knows the dependencies (internally)

lib.a(obj.o): obj.o
obj.o: obj.c

so make will update this object by CC and AR'ing for you if
it finds the obj.c.

Therefore the make objects and ar objects lines are not necessary.
You can see what built in rules your make has by invoking make -np.

-- 
The mail|    AAA         DDDD  It's not the kill, but the thrill of the chase.
demon...|   AA AAvv   vvDD  DD        Ketchup is a vegetable.
hits!.@&|  AAAAAAAvv vvDD  DD                    {nixbur|nixtor}!adalen.via
--more--| AAA   AAAvvvDDDDDD    Andre van Dalen, uunet!hp4nl!targon!andre



More information about the Comp.unix.programmer mailing list