-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (26 loc) · 886 Bytes
/
Makefile
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
LEX = flex
YACC = bison -d
CXX = g++
# Commande pour lancer l'affichage -> gnuplot plot-csv.gnp
main: main.cpp populationsimulation.o entitysimulation.o molecule.o typemolecule.o reaction.o vec3.o parser.o lexer.o
$(CXX) main.cpp populationsimulation.o entitysimulation.o molecule.o typemolecule.o reaction.o vec3.o parser.o lexer.o -o main
lexer.o: lexer.c
$(CXX) -lfl -c lexer.c
parser.o: parser.c
$(CXX) -lfl -c parser.c
lexer.c: lexer.l
$(LEX) -o lexer.c lexer.l
parser.c: parser.y
$(YACC) -o parser.c parser.y
populationsimulation.o: populationsimulation.cpp
$(CXX) -c populationsimulation.cpp
entitysimulation.o: entitysimulation.cpp
$(CXX) -c entitysimulation.cpp
molecule.o: molecule.cpp
$(CXX) -c molecule.cpp
typemolecule.o: typemolecule.cpp
$(CXX) -c typemolecule.cpp
reaction.o: reaction.cpp
$(CXX) -c reaction.cpp
vec3.o: vec3.cpp
$(CXX) -c vec3.cpp