Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pacbell!rtech!gonzo!daveb From: daveb@gonzo.UUCP (Dave Brower) Newsgroups: comp.sources.wanted Subject: Re: Makefile Generator Wanted Summary: mkmf, or maybe AT&T nmake... Keywords: Automatic makefile Generation, Public Domain ? Message-ID: <487@gonzo.UUCP> Date: 17 Dec 88 17:04:41 GMT References: <2269@mergvax> Reply-To: daveb@gonzo.UUCP (Dave Brower) Organization: Gonzo Media Group Lines: 28 In article <2269@mergvax> rkxyv@mergvax (Rob Kedoin) writes: >Does anyone know of any Public Domain makefile generator ? > >My problem is that programmers(myself included) occasionally forget to >add dependencies into their Makefiles. I am looking for a tool that >will somehow create/verify a Makefile so I can be confident that no >dependencies have been forgotten. > >I would like information on non-public domain programs if anyone has >it. the "mkmf" package split out from "spms" on the 4.3 user contributed software tape is a good start. We used it for wuite a while before moving to AT&T's "nmake" program available from the toolchest. If you only need to add dependencies, rather than create the makefile from scratch, the 4.3 "cc" command has a -M option that spits out makefile dependiencies for the specified files to stdout. (This is actually a feature of /lib/cpp). The GNU C preprocessor also has a -M flag. Good luck, -dB -- If life was like the movies, the music would match the picture. {sun,mtxinu,hoptoad}!rtech!gonzo!daveb daveb@gonzo.uucp