J'aimerai bien revoir le Makefile?
De plus, en lançant en dry-run (-n), qu'est-ce que ça donne en sortie;*Code:
$ make -n
Code:
pi@raspberrypi:~/gpiod_cpp $ make -nmake: rien à faire pour « all ».pi@raspberrypi:~/gpiod_cpp $ make -n BIB=bib2.a APP=main TARGET=tyto/usr/bin/ar -crs bib2.a BB_DS18B20.o gpioPin.o g++ -o tyto main.o bib2.a -lgpiod -lpthreadpi@raspberrypi:~/gpiod_cpp $ make clean/usr/bin/rm -rf test *.opi@raspberrypi:~/gpiod_cpp $ make -ng++ -Wall -g --pedantic -Os -c essai.cppg++ -Wall -g --pedantic -Os -c BB_DS18B20.cppg++ -Wall -g --pedantic -Os -c gpioPin.cpp/usr/bin/ar -crs minilib.a BB_DS18B20.o gpioPin.o g++ -o test essai.o minilib.a -lgpiod -lpthread
b) trop ouvert (je peux redefinir RM, GCC et faire des executables et des bibliotheques statiques plein partout)
a) Sans manip supplementaire (édition de MAkefile, avec risque d'introduire des fautes de frappe), il ne peut faire une bibliotheque statique qu'avec 2 fichiers bien écrits par danjperron....
Statistics: Posted by dbrion1 — Thu Feb 08, 2024 8:05 pm