Commit 67a314c1 by ziheng Committed by GitHub

Improve makefile (#165)

* Improve makefile

* Fix
parent 9962fdca
...@@ -15,6 +15,14 @@ include $(config) ...@@ -15,6 +15,14 @@ include $(config)
BUILD_TARGETS ?= lib/libtvm.so lib/libtvm_runtime.so BUILD_TARGETS ?= lib/libtvm.so lib/libtvm_runtime.so
all: ${BUILD_TARGETS} all: ${BUILD_TARGETS}
ifndef DMLC_CORE_PATH
DMLC_CORE_PATH = $(ROOTDIR)/dmlc-core
endif
ifndef DLPACK_PATH
DLPACK_PATH = $(ROOTDIR)/dlpack
endif
# The source code dependencies # The source code dependencies
LIB_HALIDEIR = HalideIR/lib/libHalideIR.a LIB_HALIDEIR = HalideIR/lib/libHalideIR.a
...@@ -44,7 +52,7 @@ RUNTIME_DEP = $(RUNTIME_OBJ) ...@@ -44,7 +52,7 @@ RUNTIME_DEP = $(RUNTIME_OBJ)
# The flags # The flags
LDFLAGS = -pthread -lm -ldl LDFLAGS = -pthread -lm -ldl
CFLAGS = -std=c++11 -Wall -O2\ CFLAGS = -std=c++11 -Wall -O2\
-Iinclude -Idlpack/include -Idmlc-core/include -IHalideIR/src -fPIC -Iinclude -I$(DLPACK_PATH)/include -I$(DMLC_CORE_PATH)/include -IHalideIR/src -fPIC
LLVM_CFLAGS= -fno-rtti -DDMLC_ENABLE_RTTI=0 LLVM_CFLAGS= -fno-rtti -DDMLC_ENABLE_RTTI=0
FRAMEWORKS = FRAMEWORKS =
OBJCFLAGS = -fno-objc-arc OBJCFLAGS = -fno-objc-arc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment