GNU Make (was Re: subdirs in system 5 make?)

Randal L. Schwartz @ Stonehenge merlyn at intelob.intel.com
Sat Apr 8 02:07:55 AEST 1989


In article <407 at lexicon.com>, cspencer at lexicon (Cliff Spencer) writes:
| Does anyone have a way to create *implicit* rules for system 5 make 
| (or BSD make for that matter) that utilize subdirectories? I want
| to do the following:
| 	file.c creates asm/file.asm
| 	obj/file.obj depends on asm/file.asm
| 	target depends on obj/$(objects)

Get GNU Make.  Its free, and it does nifties like this rather easily...

obj/%.obj: asm/%.asm; as $< -o $@
asm/%.asm: %.c; cc -S $< -o $@

Another satisfied GNU hacker,
-- 
/=====Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095========\
{        on contract to BiiN (for now :-) Hillsboro, Oregon, USA.             }
{<@intel-iwarp.arpa:merlyn at intelob.intel.com> ...!uunet!tektronix!biin!merlyn }
\=====Cute quote: "Welcome to Oregon... home of the California Raisins!"======/



More information about the Comp.unix.questions mailing list