Mail Archives: djgpp/1993/10/11/08:33:43
>I use gcc with a makefile containing a gcc line for every file and a final
>gcc line for linking. The number of files which should be linked becomes more
>and more and by now I have serious problems with the constraint to 128
>characters of the MS-DOS command line.
>
>1) is it possible to specify a file, containing the names of
> the files to be linked ?
If you are using ndmake you can say:
e.g.:
target: $(OBJ)
>linkfile $(OBJ)
gcc -o target @linkfile -lm -lc
>2) is there any option to specify a directory, where to look for *.o files ?
> (like -Ixxxx for includes) this would at least reduce the length of the
> command line becouse I keep my *.o files in a subdirectory of my workdir.
I believe ndmake has VPATH for this.
There is also gnu make (some member of this list ported it some time ago,
I believe his name was Ygal (off memory), that's why his version was called
ygmake :) Then you could use GNU make's constructs for this (vpath %.c ...)
If you don't find it and if it's not on omnigate I can send you a version.
> At the moment I workaround with:
> cd bin
> gcc .....
> cd ..
>
>Any suggestions ?
>
>
>
>Tony
>
>
>=============================================================================
> **
>Institut fuer Nachrichtentechnik ** Dipl.-Ing.
>und Hochfrequenztechnik ** Anton HELM
>Guszhausstr. 25/389 ** Gratian-Marx Str. 7/27
>A-1040 Wien ** A-1110 Wien
>AUSTRIA ** AUSTRIA
> **
>Tel.: +43-1-58801-3524 **
>FAX : +43-1-5870583 **
> **
>=============================================================================
> ________ __ __ __ __ __ _______ __ __
> /__ __/ / / / / / / / / / / / _____/ / \ / /
> / / / / / / _____ / / __ / / / / / /____ / /\ \ / /
> / / / / / / /____/ / / / / / / / / / _____/ / / \ \ / /
> / / / /___/ / / /__/ /__/ / / / / /____ / / \ \/ /
> /__/ /_______/ /___________/ /_/ /______/ /_/ \__/
>
>============================================================================
>=
>
>
--Chris
----------------------------------------------------------------------------
Christoph P. U. Kukulies | BIX: chriskuku AT bix DOT com
kuku AT acds DOT physik DOT rwth-aachen DOT de | CIS: 73007,1525
My initials are CPU - nomen est omen |
----------------------------------------------------------------------------
- Raw text -