Xref: utzoo comp.os.msdos.apps:809 comp.os.msdos.misc:879 comp.os.msdos.programmer:2569 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!uunet!ns-mx!umaxc.weeg.uiowa.edu!williams From: williams@umaxc.weeg.uiowa.edu (Kent Williams) Newsgroups: comp.os.msdos.apps,comp.os.msdos.misc,comp.os.msdos.programmer Subject: Re: TURBOC make with command lines > 127 chars - HOW? Keywords: make Message-ID: <3745@ns-mx.uiowa.edu> Date: 28 Dec 90 18:27:09 GMT References: <15782.27753f1b@levels.sait.edu.au> <997@pdxgate.UUCP> Sender: news@ns-mx.uiowa.edu Reply-To: williams@umaxc.weeg.uiowa.edu.UUCP (Kent Williams) Followup-To: /dev/null Organization: U of Iowa, Iowa City, IA Lines: 38 Since no one else has jumped in, here's how to do long command lines in make. It requires invoking echo to create the response file -- tcc's make may be able to do the redirection internally. # # sample makefile # make rule for tcc. may not be necessary .c.obj: tcc -c $(CFLAGS) $*.c # split your objects into macros < 128 bytes O1=a.obj b.obj c.obj d.obj e.obj f.obj g.obj h.obj O2=i.obj j.obj k.obj l.obj m.obj n.obj o.obj p.obj O3=q.obj r.obj s.obj t.obj u.obj v.obj w.obj x.obj O4=y.obj z.obj # slam 'em back together for dependency OBJ = $O1 $O2 $O3 $O4 # # main program rule program.exe : $(OBJ) program.lnk tlink @program.lnk # # link response file -- depends on makefile, since makefile makes it program.lnk : makefile echo $(LIB)\c0$(MODEL).obj + > $@ echo $(O1) + >> $@ echo $(O2) + >> $@ echo $(O3) + >> $@ echo $(O4) >> $@ echo $*.exe >> $@ echo $*.map echo $(LIB)\math$(MODEL).lib $(LIB)\emu.lib $(LIB)\c$(MODEL).lib -- Kent Williams --- williams@umaxc.weeg.uiowa.edu "'Is this heaven?' --- 'No, this is Iowa'" - from the movie "Field of Dreams" "This isn't heaven, ... this is Cleveland" - Harry Allard, in "The Stupids Die"