Date: Tue, 4 Apr 2000 13:56:09 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Patrik Willbo cc: djgpp AT delorie DOT com Subject: Re: make files In-Reply-To: <8cao98$sr9$1@zingo.tninet.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 3 Apr 2000, Patrik Willbo wrote: > I'm trying to create a make file with game.cpp and gamefunc.cpp > both of them has to have gamefunc.h game.h and items.h included > how do I write a make file so it will compile it with allegro????? Is the following what you want? CFLAGS = -Wall -O2 -g game.exe: game.o gamefunc.o gpp -g -o $@ $^ -lalleg game.o gamefunc.o: gamefunc.h game.h items.h