Mail Archives: djgpp/1998/02/17/03:18:02
>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 -