-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (29 loc) · 870 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
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
CXX = clang++
endif
GH_PATH=/opt/oblong/greenhouse
PATH:=/opt/oblong/deps-64-9/bin:$(PATH)
GH_PKG_CONFIG=$(PKG_CONFIG_PATH):$(GH_PATH)/lib/pkgconfig pkg-config
CXXFLAGS = -Wempty-body \
-fdiagnostics-show-option \
-Wall \
-Wpointer-arith \
-Wno-shadow \
-Wwrite-strings \
-Wno-overloaded-virtual \
-Wno-strict-overflow \
-Wno-error=unused-variable \
-Werror \
`PKG_CONFIG_PATH=$(GH_PKG_CONFIG) --cflags --static libGreenhouse` \
-g -O3 -std=gnu++0x
LDFLAGS=`PKG_CONFIG_PATH=$(GH_PKG_CONFIG) --libs --static libGreenhouse`
esc=`echo "\033"`
NO_COLOR=${esc}[0m
OK_COLOR=${esc}[36;21m
all: robot
clean:
-rm robot
robot: robot.cpp Robot.hpp
${CXX} $< -lGreenhouse ${LDFLAGS} ${CXXFLAGS} -lboost_thread -lboost_system -lboost_filesystem -o $@
@echo "$(OK_COLOR)$$EXP_STR$(NO_COLOR)"