1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| CC=gcc
cpp=g++
CFLAGS=-W -Wall -ansi
CFXXLAGS=-W -Wall -ansi -c -g
# LDFLAGS=
EXEC=toto
#SRC=point.cpp main.cpp
SRC= $(wildcard *.cpp) #gérer la liste des fichiers sources de manière automatique et pour realiser cette tache on utilise un joker *.cpp avec la commande wildcard
OBJ= $(SRC:.cpp=.o) #Génération de la liste des fichiers objets
all: $(EXEC)
toto:main.o McharImage.o MCorrelation.o MDetecteur.o MFloatImage.o MHomographie.o MListePI.o MParamsIntrinseques.o MShortImage.o MSignedShortImage.o MUtils.o Matrix33.o jtmatrix.o
$(cpp) -o $@ $^
McharImage.o:McharImage.cc MCharImage.h MDetecteur.h MListePI.h MListeCouples.h MUtils.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
MCorrelation.o:MCorrelation.cc MCorrelation.h MCharImage.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
MDetecteur.o:MDetecteur.cc MDetecteur.h MListePI.h MCharImage.h MShortImage.h MRGBImage.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
MFloatImage.o:MFloatImage.cc MFloatImage.h MListePI.h MUtils.h MCharImage.h MSignedShortImage.h jtmatrix.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
MHomographie.o:MHomographie.cc MHomographie.h MUtils.h MathUtils.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
MListePI.o:MListePIcc MListePI.h MCharImage.h MFloatImage.h MUtils.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
MParamsIntrinseques.o:MParamsIntrinseques.cc MParamsIntrinseques.h MathUtils.h DiversUtils.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
MShortImage.o:MShortImage.cc MShortImage.h MUtils.h Mmx.h Sse.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
MSignedShortImage.o:MSignedShortImage.cc MSignedShortImage.h Mmx.h Sse.h MUtils.h MCharImage.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
MUtils.o:MUtils.cc MUtils.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
Matrix33.o:Matrix33.cc Matrix33.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
jtmatrix.o:jtmatrix.cc jtmatrix.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
main.o:main.c MCharImage.h MDetecteur.h MListePI.h MUtils.h
$(Cpp) -o $@ -c $< $(CFXXLAGS)
clean:
rm *.o
#mrproper: clean
# rm $(EXEC) |