24 lines
551 B
Makefile
Executable file
24 lines
551 B
Makefile
Executable file
CXX = g++
|
|
CXXFLAGS = -W -Wall -pedantic -g
|
|
|
|
|
|
|
|
main: main.o cellule.o figures.o file.o
|
|
$(CXX) $(CXXFLAGS) -o main main.o figures.o cellule.o file.o
|
|
|
|
figures.o: figures.cpp figures.h
|
|
$(CXX) $(CXXFLAGS) -c figures.cpp
|
|
|
|
cellule.o : cellule.cpp cellule.h
|
|
$(CXX) $(CXXFLAGS) -c cellule.cpp
|
|
|
|
file.o : file.cpp file.h
|
|
$(CXX) $(CXXFLAGS) -c file.cpp
|
|
|
|
main.o: main.cpp file.cpp cellule.cpp figures.cpp cellule.h figures.h file.h
|
|
$(CXX) $(CXXFLAGS) -c main.cpp figures.cpp cellule.cpp file.cpp
|
|
|
|
clean:
|
|
-rm file.o cellule.o figures.o main.o main
|
|
|
|
|