-
Notifications
You must be signed in to change notification settings - Fork 49
/
Makefile
70 lines (57 loc) · 2.33 KB
/
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
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
65
66
67
68
69
70
# This library is free and distributed under
# Mozilla Public License Version 2.0.
CXX:=g++
#CXX:=x86_64-w64-mingw32-g++
DEBUG_FLAG:= -g -O3
RELESE_FLAG:= -O3 -s -DNDEBUG
CURRENT_FLAGS:= $(RELESE_FLAG)
CURRENT_FLAGS += -std=c++11 -pthread -I./src -Wall -Wconversion -Wfatal-errors -Wextra
BIN:=./bin
LIBS:= # empty
G_LIBS:= -lGL -lGLU -lglut -lGLEW -lSDL -lSDL2main -lSDL2
all:
@echo "***********************************************"
@echo Run one of the following commandline examples:
@echo ""
@echo make ex_so1
@echo make ex_so_rastrigin
@echo make ex_so_bind
@echo make ex_so_mulisource
@echo make ex_init_solutions
@echo make ex_mo1
@echo make ex_mo_dtlz2
@echo make ex_iga_colors
@echo "***********************************************"
ex_so1:
$(CXX) $(CURRENT_FLAGS) examples/so-1/example_so1.cpp -o $(BIN)/example_so1 $(LIBS)
@echo "-----------------------------------------------"
$(BIN)/example_so1
ex_so_rastrigin:
$(CXX) $(CURRENT_FLAGS) examples/so-rastrigin/so-rastrigin.cpp -o $(BIN)/example_so-rastrigin $(LIBS)
@echo "-----------------------------------------------"
$(BIN)/example_so-rastrigin
ex_so_bind:
$(CXX) $(CURRENT_FLAGS) examples/so-bind/example_bind.cpp -o $(BIN)/example_bind $(LIBS)
@echo "-----------------------------------------------"
$(BIN)/example_bind
ex_so_mulisource:
$(CXX) $(CURRENT_FLAGS) examples/so-multi-source/multi-source-part1.cpp examples/so-multi-source/multi-source-part2.cpp examples/so-multi-source/multi-source-part3.cpp -o $(BIN)/example_multi-source $(LIBS)
$(BIN)/example_multi-source
ex_init_solutions:
$(CXX) $(CURRENT_FLAGS) examples/so-init-solutions/example_so-init-solutions.cpp -o $(BIN)/example_so-init-solutions $(LIBS)
@echo "-----------------------------------------------"
$(BIN)/example_so-init-solutions
ex_mo1:
$(CXX) $(CURRENT_FLAGS) examples/mo-1/example_mo1.cpp -o $(BIN)/example_mo1 $(LIBS)
@echo "-----------------------------------------------"
$(BIN)/example_mo1
ex_mo_dtlz2:
$(CXX) $(CURRENT_FLAGS) examples/mo-dtlz2/mo-dtlz2.cpp -o $(BIN)/example_mo-dtlz2 $(LIBS)
@echo "-----------------------------------------------"
$(BIN)/example_mo-dtlz2
ex_iga_colors:
$(CXX) $(CURRENT_FLAGS) examples/iga-colors/iga-colors.cpp -o $(BIN)/iga-colors $(LIBS) $(G_LIBS)
@echo "-----------------------------------------------"
$(BIN)/iga-colors
clean:
rm ./bin/example_*