Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!targon!andre From: andre@targon.UUCP (andre) Newsgroups: comp.unix.programmer Subject: Re: Make into archive in XENIX Message-ID: <1593@targon.UUCP> Date: 7 Dec 90 12:02:19 GMT References: <881@zeusa.UUCP> Reply-To: andre@targon.UUCP (andre) Organization: Siemens Nixdorf Informatiesystemen BV., Vianen, NL Lines: 27 In article <881@zeusa.UUCP> hendrik@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