-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) · 704 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (17 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
GPP=mingw32-g++
CXXFLAGS= -fshow-column -fshow-column -fno-diagnostics-show-caret -g2 -O0 -std=gnu++11 -D_DEBUG -std=c++11
LDFLAGS= -static-libstdc++ -static-libgcc
OBJS=Debug\main.o Debug\Cromosoma.o Debug\GeneticAlgorithm.o
all: Debug Debug\CO2_GeneticAlgorithm.exe
clean:
del ${OBJS} Debug\CO2_GeneticAlgorithm.exe
Debug\CO2_GeneticAlgorithm.exe: ${OBJS}
${GPP} ${OBJS} ${LDFLAGS} -o $@
Debug:
mkdir Debug
Debug\main.o: main.cpp
${GPP} ${CXXFLAGS} -c main.cpp -o $@
Debug\Cromosoma.o: Cromosoma.cpp Cromosoma.h
${GPP} ${CXXFLAGS} -c Cromosoma.cpp -o $@
Debug\GeneticAlgorithm.o: GeneticAlgorithm.cpp GeneticAlgorithm.h Cromosoma.h
${GPP} ${CXXFLAGS} -c GeneticAlgorithm.cpp -o $@