Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-lcc!ames!oliveb!amiga!jimm From: jimm@amiga.UUCP (Jim Mackraz) Newsgroups: comp.sys.amiga.tech Subject: Re: Manx make Keywords: precompiled include aztec manx make xcopy Message-ID: <2676@amiga.UUCP> Date: 27 Jul 88 18:47:57 GMT References: <3047@tekig4.TEK.COM> Reply-To: jimm@cloyd.UUCP (Jim Mackraz) Organization: Commodore-Amiga Inc, Los Gatos CA Lines: 46 In article <3047@tekig4.TEK.COM> brianr@tekig4.TEK.COM (Brian Rhodefer) writes: )In using Manx' make utility, I keep wishing it were possible )to set up a makefile so that compilations use precompiled )include files from RAM:, with the makefile automatically )creating the precompiled includes. I'm never able to pull it off, )though, and have to do the include file by hand. Can anyone )suggest a way to achieve total make nirva... I mean, automation? ) Here's my current way. Hack to suit. Note the use of sysall.h, my compendium of includes that I won't be changing much. PREDIR=RAM: JUNKDIR=RAM: PRE=foo.pre CFLAGS=+I$(PREDIR)$(PRE) LFLAGS=-lc # this might be what the default does, hence unecessary .c.o: cc $(CFLAGS) -o $*.o $*.c # a file filled with includes and nothing else PRESRC=sysall.h # this line get p.pre copied to ram before foo is made all: $(PREDIR)$(PRE) foo foo: foo.o ln foo.o $(LFLAGS) -o $@ #this stuff hangs out at the bottom of all my makefiles # here is the copying action itself $(PREDIR)$(PRE): $(PRE) copy $(PRE) $(PREDIR) # and the building of the .pre $(PRE): $(PRESRC) cc -A -o $(JUNKDIR)pre_garbage.asm +H$(PRE) $(PRESRC) -- Jim Mackraz, I and I Computing amiga!jimm BIX:jmackraz Opinions are my own. Comments regarding the Amiga operating system, and all others, are not to be taken as Commodore official policy.