Problème avec un makefile c++
Bonjour,
Excusez moi pour cette question. Mais je n'arrive pas à faire fonctionner mon makefile.
j'ai les fichiers sources suivants:
- main.cpp
- FenPrincipale.cpp
- FenCodeGenerer.cpp
- FenPrincipale.h
je vous montre mon fichier makefile:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
CXX = g++
CFLAGS = -w -Wall -ansi -pedantic
LDFLAGS =
EXEC = Generateur
all: main.o FenPrincipale.o FenCodeGenerer.o
$(CXX) $^ -o $@ $(CFLAGS)
main.o: main.cpp FenPrincipale.h FenCodeGenerer.h
$(CXX) -c $< -o $@ $(CFLAGS)
%.o: %.cpp
$(CXX) -o $@ -c $< $(CFLAGS)
.PHONY: clean mrproper
clean:
rm *.o
mrproper: clean
rm $(EXEC) |
Mon code contient des applications QT
Merci de me dire comment améliorer mon fichier makefile parce que lors de la compilation il me dit que des applications qt sont manquantes pourtant tout y est.
Merci