forked from turi-code/GraphLab-Create-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 684 Bytes
/
Makefile
File metadata and controls
33 lines (24 loc) · 684 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
33
.PHONY: doc clean all
CXX := g++
CXXFLAGS := -std=c++11 -I . -shared -fPIC
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
CXXFLAGS += --stdlib=libc++ -undefined dynamic_lookup
endif
ifeq ($(UNAME_S),Linux)
ADDITIONAL_LIBRARIES += -L. -lunity_shared -lunity_prop_server
endif
#### SDK Examples #####
EXAMPLE_SRCS := $(wildcard sdk_example/*.cpp)
EXAMPLE_TARGETS := $(EXAMPLE_SRCS:%.cpp=%.so)
sdk_example : $(EXAMPLE_TARGETS)
sdk_example/%.so: sdk_example/%.cpp
$(CXX) -o $@ $(CXXFLAGS) $^ $(ADDITIONAL_LIBRARIES)
#### Doxygen Documentation #####
doc:
cd doxygen && doxygen
#### Clean Target ####
clean:
rm sdk_example/*.so
#### All targets ####
all: sdk_example