www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/17/03:18:02

From: G DOT DegliEsposti AT ads DOT it
To: djgpp AT delorie DOT com
Message-ID: <C12565AE.002D221A.00@vega.ads.it>
Date: Tue, 17 Feb 1998 09:16:18 +0100
Subject: Re: Makefile
Mime-Version: 1.0




>I saw the posting about makefiles in the allegro list earlier today, and
>decided to try and write my own for my game.  I have run into troubles
>though.  Here is my makefile.
>
>luth: characte.cc file.cc graphics.cc messeng.cc monster.cc raikner.cc
road.cc pit.cc
>Makefile
>    gxx -o luth characte.o file.o graphics.o messeng.o monster.o raikner.o
road.o pit.o
>-lalleg
>
>characte.cc:  characte.o
>    gxx -c characte.cc

You have to write the opposite:

file.exe: file1.o file2.o
     gxx -o file.exe file1.o file2.o -llibs

file.o: file.cc
     gxx -c file.cc

the makefile convention is:

<to build this>: <you need these files>
     <and have to execute these commands>

ciao
  Giacomo



- Raw text -


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