-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (27 loc) · 920 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
38
39
40
41
42
CCX = g++ -std=c++11 -w
INCLUDES = -Isrc
LIBRARIES_OMPL = `pkg-config --cflags --libs ompl`
LIBRARIES_BOOST = -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread
LIBRARIES = $(LIBRARIES_OMPL) $(LIBRARIES_BOOST) -pthread -lm -w
SRC := $(shell find -name '*.cpp')
FILE_NAMES_SRC = $(SRC:.cpp=.o)
FILE_NAMES = $(FILE_NAMES_SRC)
EXEC = roboime-intel
.cpp.o:
@$(CCX) $(INCLUDES) $(LIBRARIES) -Wall -Wformat -c -o $@ $< -w
.cc.o:
@$(CCX) $(INCLUDES) $(LIBRARIES) -Wall -Wformat -c -o $@ $< -w
all: message_compiling $(EXEC)
@echo Done ...
message_compiling:
@echo Compiling roboime-intel ...
message_cleaning:
@echo Cleaning roboime-intel ...
run:
./$(EXEC)
$(EXEC): $(FILE_NAMES)
@$(CCX) -o $(EXEC) $(FILE_NAMES) $(LIBRARIES) $(INCLUDES)
clean: message_cleaning
@rm $(EXEC) $(FILE_NAMES)
move:
mv roboime-intel /home/johnathan/Repositories/roboime/roboime-next/cli/demos/intel