delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/06/20:09:09

Date: Tue, 4 Apr 2000 13:56:09 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Patrik Willbo <patrikw AT willbodata DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: make files
In-Reply-To: <8cao98$sr9$1@zingo.tninet.se>
Message-ID: <Pine.SUN.3.91.1000404135547.9459F-100000@is>
MIME-Version: 1.0
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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019