-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (22 loc) · 767 Bytes
/
Makefile
File metadata and controls
33 lines (22 loc) · 767 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
25
26
27
28
29
30
31
32
CXX = g++
CFLAGS = -g -O2 -DDEBUG -fPIC -std=c++0x #-Wall
ARIA_INCLUDE=-I/usr/local/Aria/include
ARIA_LINK=-L/usr/local/Aria/lib -lAria -lpthread -ldl -lrt
LFLAGS = $(ARIA_LINK) -lglut -lGL -lfreeimage
OBJS = thinning.o Utils.o Grid.o GlutClass.o PioneerBase.o BVP.o Planning.o Robot.o GeoAssistant.o main.o
MKDIR_P = mkdir -p
OUT_DIR=../build-make
PREFIX_OBJS = $(patsubst %.o,${OUT_DIR}/%.o,$(OBJS))
EXEC = program
all: ${OUT_DIR} $(EXEC)
${OUT_DIR}:
${MKDIR_P} ${OUT_DIR}
%.o: src/%.cpp $(DEPS)
@echo "Compilando $@"
@$(CXX) $(CFLAGS) $(ARIA_INCLUDE) -c $< -o ${OUT_DIR}/$@
$(EXEC): $(OBJS)
@echo "\nLinkando $(EXEC)\n"
@$(CXX) -o ${OUT_DIR}/$(EXEC) $(PREFIX_OBJS) $(LFLAGS)
clean:
@echo "Limpando..."
@rm -f $(PREFIX_OBJS) ${OUT_DIR}/$(EXEC) *~