From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: makefile Date: 22 May 2002 16:36:04 GMT Organization: Aachen University of Technology (RWTH) Lines: 27 Message-ID: References: NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1022085364 4056 137.226.32.75 (22 May 2002 16:36:04 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 22 May 2002 16:36:04 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Rafal 'Raf256' Maj wrote: > 1) what should I do when there will bo to much objects, so last command > line (ar crs upi.a u_mem.o 2.o 3.o etc...) will be longer then 255 > characters ? Stop using a .bat file for this. A true 'Makefile' to be run by 'make' is what you should use --- it's really easy once you understand what you want to do, and how to tell 'make' about it. Or, if you really want to stick with a .bat: use a response file that holds the list of .o's for you: ar rcs libfoo.a @ofiles.lst where "ofiles.lst" is a text file that holds the full list of .o files you want to link. > 2) I looked into final .a file, it had many imho unnecessary informations, > how can I shrink it ? You had better leave it to the GCC and binutils authors to decide what is necessary and what isn't, in an .o or .a file. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.