Xref: utzoo comp.os.msdos.apps:815 comp.os.msdos.misc:886 comp.os.msdos.programmer:2590 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!tut.cis.ohio-state.edu!snorkelwacker.mit.edu!bloom-beacon!deccrl!news.crl.dec.com!pa.dec.com!shlump.nac.dec.com!labc.enet.dec.com!wallis From: wallis@labc.enet.dec.com (Barry L. Wallis) Newsgroups: comp.os.msdos.apps,comp.os.msdos.misc,comp.os.msdos.programmer Subject: Re: TURBOC make with command lines > 127 chars - HOW? Message-ID: <18550@shlump.nac.dec.com> Date: 30 Dec 90 03:51:22 GMT Sender: newsdaemon@shlump.nac.dec.com Followup-To: comp.os.msdos.apps Organization: Digital Equipment Corporation Lines: 46 In article <15782.27753f1b@levels.sait.edu.au>, marwk@levels.sait.edu.au writes... |>I have a makefile which has: |>OBJS = a.obj b.obj c.obj \ |> (several more files here ...) \ |> x.obj y.obj z.obj |> |>$(EFILE): $(OBJS) |> tcc -c -m$(MM) $(OBJS) |> |> |>The tcc line gets converted to: |> |> tcc -emain.exe -ms a.obj b.obj ... |>x.obj y.obj z.obj |> |>and the message |>Fatal: Cammand arguments too long |>appears. |> |>In the reference manual Appendix D it states that the command line cannot |>be longer than 127 characters a DOS limitation. |> |>How can I produce the desired exe file using make with this limitation? |> If you have the latest version of Borland's make (V3.0) you can use the make && operator and a response file as follows: $(EFILE): $(OBJS) tcc -c -m$(MM) @&&! $(OBJS) ! The "@" tells tcc to read the next argument(s) from the given file. The "&&!" tells make to put everything (starting with the next line) in a temporary file until it hits the next "!". It then substitutes the filename after the "@" on the command line and executes the line. I have used this technique to get around the 127 character limit. And, yes, the "$(OBJJS)" macro is expanded. --- Barry L. Wallis USENET: wallis@labc.dec.com Database Consultant Prodigy (don't laugh): DNMX41A U.S. DECtp Resource Center DECUServe: EISNER::WALLIS (not on the net yet) Los Angeles, CA "No one voted for me, I represent myself" ---