-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (23 loc) · 1009 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
CC=gcc
CFLAGS=-g -Wall
INCLUDE=-I./include/
ifeq ($(shell uname), Linux)
LIBS=-lGL -lGLU -lglut -lpthread
else
LIBS=-framework OpenGL -framework GLUT
endif
obj/%.o: src/%.c
$(CC) -c -o $@ $< $(CFLAGS) $(INCLUDE)
all: smartgoku geneticpath
smartgoku: obj/smartgoku.o obj/ghsgraphics.o obj/agent.o obj/pathexploresearch.o obj/rateexploresearch.o obj/tspsearch.o obj/pathsearch.o obj/astar.o obj/ghsdata.o obj/pqueue.o obj/stack.o obj/linkedlist.o
$(CC) -o build/$@ $^ $(CFLAGS) $(LIBS)
geneticpath: obj/geneticpath.o obj/agent.o obj/pathexploresearch.o obj/rateexploresearch.o obj/tspsearch.o obj/pathsearch.o obj/astar.o obj/ghsdata.o obj/pqueue.o obj/stack.o obj/linkedlist.o
$(CC) -o build/$@ $^ $(CFLAGS) -lpthread
run:
build/smartgoku -m build/Mapa01.txt -r
run_path:
build/smartgoku -m build/Mapa01.txt -p build/genetic_path.bin
run_geneticpath:
build/geneticpath -g 40 -p 100 -e 10 -m 5.0 -o build/genetic_path.bin build/Mapa01.txt build/saved_genetic_generation.bin
clean:
rm obj/*.o