Bonjour
J'essaye de compiler un programme qui utilise les librairies gd. La
version install�e sur ma machine est la 1.8, fournie avec mandrake 7.1.
Mon programme ne se compile qu'avec la version 1.2, d'apr�s l'auteur.
J'ai donc t�l�charg� la version 1.2, que j'ai install�e dans un
sous-r�pertoire /gd12. Je voudrais maintenant pouvoir compiler, en
indiquant au programme d'utiliser la version 1.2. Pour cela, j'ai
rajout� le chemin dans ld.so.conf.
Je dois maintenant modifier le makefile pour qu'il prenne ces
librairies version 1.2 en compte, mais je ne sais pas o� l'indiquer. Il
n'y a pas de configure, aussi il me faut directement modifier le
makefile que je copie ci-dessous. Quelles modifications dois-je faire ?
Merci d'avance
**Voici le makefile en question : ******
wims_home=..
VERSION_DATE=`date '+%Y-%m-%d'`
all: webmath deposit interfaces misc oef2wims flydraw
clean:
rm -f webmath deposit insplot 2>/dev/null
cd Interfaces; make clean; cd ..
cd Misc; make clean; cd ..
cd Oef2wims; make clean; cd ..
cd Flydraw; make clean; cd ..
webmath: *.[ch]
gcc -D_GNU_SOURCE -O -DVERSION_DATE=\"$(VERSION_DATE)\" -Wall webmath.c -lm -o
webmath
strip webmath
./webmath table
./install_wims
deposit: deposit.c lines.c config.c webmath.h
gcc -O -Wall deposit.c -lm -o deposit
cp deposit $(wims_home)/bin/deposit.bin
chmod +s $(wims_home)/bin/deposit.bin
insplot: insplot.c
gcc -O -Wall insplot.c -lm -o insplot
strip insplot
# cp insplot $(wims_home)/public_html/bin
oef2wims:
cd Oef2wims; make all
interfaces:
cd Interfaces; make all
misc:
cd Misc; make all
flydraw:
cd Flydraw; make all
**** fin du makefile *************
****************************
Michel Gosse
[EMAIL PROTECTED]
[EMAIL PROTECTED]
****************************