Date: Thu, 5 Jun 1997 16:27:28 -0400 (EDT) From: "Art S. Kagel" To: SteelGolem Cc: djgpp AT delorie DOT com Subject: Re: Make Info files confusing.. In-Reply-To: <5n69kf$2fe$3@thor.atcon.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 4 Jun 1997, SteelGolem wrote: > I can't understand how to make one (1) exe file out of many (multiple) c > or cc files.. why does it have to be so complicated?? if ya can't show > me that, at least show me how to make a library file (___.a), > PLEASE!!?!?! (although both would be nice.. =P) > thanks for ANY help!!! --email please! > I assume from your Subject that you need a makefile for an app and a lib. Here is a simple one: Myapp.exe: mymodule1.o mymodule2.o mymodule3.o libmylib.a gcc -o Myapp.exe mymodule1.o mymodule2.o mymodule3.o -lmylib libmylib.a: myutil1.o myutil2.o myutil3.o ar -rs libmylib.a $* ^^^^^^^^Make sure that each target command begins with a tab not spaces! Art S. Kagel, kagel AT bloomberg DOT com